---
title: Deploy SiYuan with AI on Blossom
url: "/deploy/siyuan/"
canonical_url: https://blossom88.com/deploy/siyuan/
markdown_url: https://blossom88.com/deploy/siyuan.md
summary: Run a private SiYuan workspace and keep your notes and attachments through
  an app update.
categories:
- deployment
- productivity
stack:
- Go
- TypeScript
---

# Deploy SiYuan with AI on Blossom

[SiYuan](https://github.com/siyuan-note/siyuan) is an open-source note
workspace. Organize documents into notebooks and keep images, files,
and other material with the notes that use them.

## Ask Your Agent

> **Ask your AI agent:** Deploy SiYuan privately on Blossom. Help me make a notebook and attach a file to my first note.
>
> Follow this guide: https://blossom88.com/deploy/siyuan/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| SiYuan | Serve the note editor and store the workspace | Blossom Persistent Service |

## Deploy SiYuan

Use one Persistent Service with a workspace Volume. Keep Blossom
Account access enabled and save a private SiYuan access code.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use a maintained official SiYuan image and its normal entrypoint.
Run `serve --workspace=/siyuan/workspace` on port 6806 and mount the
Volume at `/siyuan/workspace`. Set `SIYUAN_ACCESS_AUTH_CODE` in runtime
Environment variables. The native `/api/system/version` route is
available for HTTP readiness.
[Upstream Docker hosting](https://github.com/siyuan-note/siyuan#docker-hosting).

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data siyuan-plan.yml
    blossom service:create --data siyuan-service.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Write Your First Note

Open SiYuan over HTTPS and enter your access code. Create a notebook,
add a note, and attach a file you want to keep with it.

![Open a private note and its attached layout.](/deploy/assets/images/siyuan/siyuan-note.webp)

> **Ask your AI agent:** Help me write a note and attach this file to it.

> Follow this guide: https://blossom88.com/deploy/siyuan/



## Reopen It After an Update

Update SiYuan using the same Volume. Sign in and open the note and its
attachment again.

![Preview the same attachment after Container replacement.](/deploy/assets/images/siyuan/siyuan-attachment.webp)


> **Ask your AI agent:** Update SiYuan and check that my note and attachment still open.

> Follow this guide: https://blossom88.com/deploy/siyuan/



## What You Get

- A private workspace you can open in a browser
- Notes and attached files in one place
- A Volume that keeps your workspace through updates

Tested on Blossom: The same note and exact attachment bytes remained after replacing the Container on its original workspace Volume.
