Self-host SiYuan
v3.8.9Privacy-first block-based Markdown knowledge management
docker run -d -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -e PUID=1001 -e PGID=1002 b3log/siyuan serve --workspace=/siyuan/workspace/ --accessAuthCode=xxx- Stars
- 47 140
- Port
- 6806 (SiYuan web UI and kernel HTTP API, reached from a browser)
b3log/siyuanWhat is SiYuan?
SiYuan is a personal knowledge management application that puts privacy first and treats everything you write as a content block. Because paragraphs, headings and list items are individually addressable, notes reference each other at block granularity through two-way links and backlinks, while the editor keeps Markdown in a what-you-see-is-what-you-get view. Around the editor sit list outlines, database table views, embedded SQL queries, flashcards driven by spaced repetition, template snippets, JavaScript/CSS snippets, a multi-tab interface with split screen, web clipping and PDF annotation links; formulas, charts, flowcharts, Gantt and timing charts and staves render inline, and million-word documents stay editable. Output goes to PDF, Word, HTML or standard Markdown with assets, and blocks can be copied into WeChat MP, Zhihu or Yuque. Writing assistance and question-answering chat work through the OpenAI API, images can be read with Tesseract OCR, plugins and widgets come from a community marketplace, and an HTTP API plus a built-in command-line tool expose workspace data even when no server is running.
Self-hosting is documented for Docker with the b3log/siyuan image listening on port 6806, plus Kubernetes through a community-maintained Helm chart and templates for Unraid and TrueNAS. The workspace is volume-mounted, and access is guarded by a lock-screen code that can be replaced by OIDC sign-in with a custom, Google, Microsoft or GitHub provider. Desktop packages cover Windows, macOS and Linux, and native Android, iOS and HarmonyOS apps exist.
Notable limits: the container build is browser-only, so desktop and mobile apps cannot connect to it, PDF/HTML/Word export and Markdown file import are unavailable there, and syncing via a third-party sync disk is unsupported. Most functionality is free even for commercial use; encrypted sync against your own S3 or WebDAV storage is a paid member privilege, and a subscription adds 8 GB of official cloud storage and hosted asset backup.
SiYuan alternatives
NexidionNexidion is an open-source, self-hosted knowledge base for sensitive data with multi-user vaults, hierarchical notes, version history, PDF ingestion, and an AI agent.CompareNexidion with SiYuan
siliconSilicon Notes is a self-hosted, open-source personal knowledge base with Markdown editing, bi-directional links, full-text search, and page history.Comparesilicon with SiYuan
open-silongOpen-source, self-hosted Notion/Obsidian-inspired workspace with block editor, databases, and knowledge graph for teams who want full data ownership.Compareopen-silong with SiYuan
ocean-brainSelf-hosted knowledge base with backlinks, properties, views, reminders, calendar, graph, and MCP integration. Run via Docker or npx.Compareocean-brain with SiYuan
Trilium NotesSelf-hosted, open-source Trilium Notes builds a big personal knowledge base from hierarchical, clonable notes with sync, per-note encryption, scripting and a REST API.CompareTrilium Notes with SiYuan
QCueQCue is a self-hosted, open-source capture-first second brain that turns thoughts into a living Markdown wiki using your own LLM keys.CompareQCue with SiYuan
EdgeEverSelf-hosted open-source knowledge base replacing Evernote & Obsidian. Classic three-pane layout with AI agent protocols (MCP/ACP), instant sync on Cloudflare or Docker.CompareEdgeEver with SiYuan
react-glass-keepSelf-hosted notes app similar to Google Keep with dark mode, real-time collaboration, private AI assistant, and native apps for Windows, macOS, Android.Comparereact-glass-keep with SiYuan
Should you self-host SiYuan?
SiYuan scores 82/100 on selfhost.directory (how scoring works) and ranks #4 of 42 in Knowledge Management. It has 47 140 GitHub stars, +509 in the last 30 days.
It shipped 14 stable releases in the past year. The latest, v3.8.9, came out on 29 October 2026. New versions land roughly every 8 days.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is Project N.O.M.A.D. (86/100, 42 898 stars). It scores higher overall, so compare the two before you pick. See SiYuan vs Project N.O.M.A.D. side by side.
Features
- AI writing and chat
- Block-level references and backlinks
- Command Line Interface
- Database table view
- Document exportNot supported in the Docker deployment
- Embedded SQL queries
- Encrypted multi-device syncThird-party S3/WebDAV sync is a paid PRO/subscription feature; official sync needs the subscription with 8 GB storage
- Flashcards with spaced repetition
- HTTP API
- Markdown WYSIWYG editing
- Multi-tab workspace with split screen
- OCR
- Plugin and widget marketplace
- Template and code snippets
- Web clipping and PDF links
SiYuan README
FAQ
What is the difference between official and third-party data sync?
The subscription bundles 8 GB of official cloud storage that works out of the box, while the S3 and WebDAV integrations in PRO Features and subscriptions require you to supply and configure your own storage service.
How is the renewal price calculated after a subscription interruption?
The renewal price stays fixed at the price of your first subscription for life, even if you resubscribe later.
Why is the official sync storage limited to 8GB?
Official sync costs more traffic than plain cloud-note services, so 8 GB per user is the current affordable limit; more space means using the third-party S3 integration.
Are refunds available after subscribing?
Refunds are not available once you subscribe, so the project suggests enabling the trial subscription in the desktop app's account settings first.
What should I do if the data repo key is lost?
If the key was initialised consistently it is identical on every device and can be copied from Settings - Account & Sync - Local Data Repo; otherwise back up the data and reset the data repo, then reinitialise and re-import the key on the other devices.
What if some blocks (such as paragraph blocks in list items) cannot find the block icon?
The block icon is intentionally omitted for the first sub-block of a list item; move the cursor into that block and press Ctrl+/ to open its block menu.
How to upgrade to a new version?
App-store installs update through the store, desktop installs can auto-download the newest package from Settings - About, and manual installs just need the package downloaded again.
Does it support data synchronization through a third-party sync disk?
No, syncing through third-party sync disks is not supported because it can corrupt data; member accounts may instead connect third-party cloud storage.
How does SiYuan store data?
Everything lives in the workspace data folder: assets, emojis, snippets, storage, templates, widgets, plugins and public data have their own subfolders, while each notebook folder holds documents as JSON files with the .sy suffix.
More in Knowledge Management
SourceWeftOpen-source, self-hostable AI workstation with multi-agent collaboration, skill library, MCP integrations, and cited knowledge — an alternative to ChatGPT and NotebookLM.
storydenSelf-hosted open-source forum and knowledge library for communities to own their conversations and data with optional AI features.
StruInfoStruInfo is a self-hosted, open-source personal knowledge workspace that turns documents into a traceable, searchable knowledge graph with optional AI.
SwarmVaultBuild a personal knowledge graph and searchable wiki from your files and code. Runs locally with no cloud dependency and includes a visual graph explorer.
SymphonySelf-hosted open-source Java community platform for forums, Q&A and social networking, with a big admin backend, themes and a Docker image.
TagSpacesOpen-source, offline-first file manager for tagging, notes and search over local folders or S3 buckets, shipped as desktop apps and a self-hosted web app.
TalkyardSelf-hosted open-source community platform combining forum, chat, Q&A, and blog comments — alternative to StackOverflow, Slack, Discourse, Reddit, Disqus.
terminusdbOpen-source knowledge graph database with built-in version control for branching, merging, and time-travel queries using Datalog.
tesseraeSelf-hosted, open-source server for e-ink wall dashboards: compose pages in a browser, render them headlessly, push frames over MQTT or REST. Home Assistant friendly.
ThesysSelf-hosted open-source research workspace for searching papers, uploading PDFs, on-PDF highlights with citations, reader mode Q&A, paper comparison, and citation export.
ThoughtDAGThoughtDAG is an open-source, self-hostable AI chat canvas: every exchange is a graph node, and its wires decide the context your model receives next.
TiddlyWikiA self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.





0 comments