SiYuan

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents collaborate.

Stars
★ 48k
Last updated
today v3.8.12
FARS reviewed
Nov 07, 2026 +3 new
License
AGPL-3.0
Primary language
TypeScript

At a glance

How it runs
Desktop appSelf-hosted serviceCLI
Works with
Universal · cross-platform
Cost
Free tier plus a paid hosted plan
Setup effort
Medium · a few setup steps
You'll need
DockerNetwork accessLocal filesystem
Typical use
Knowledge workers who want complete control over their notes, storing data locally and syncing via encrypted repositories without relying on third-party cloud services.
Not a fit if
  • Teams that need every feature without any paid membership
  • Users who want to sync via third-party sync disks, which may corrupt data
  • Docker users needing desktop/mobile app connections or PDF/Word/HTML export
Website
b3log.org/siyuan ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v3.8.12 (2026-11-24)+17.0 ★/day over 7 days

What does this agent do, and when should you use it?

SiYuan is an open-source (AGPL-3.0), privacy-first personal knowledge management system that supports fine-grained block-level reference and Markdown WYSIWYG editing. Data is stored locally by default in a workspace folder, with an optional end-to-end encrypted data repository and cloud sync (member privilege). It features a full desktop (Electron) and mobile app, can be self-hosted via Docker, and provides a command-line interface (CLI) for direct access to workspace data without a running server. The ecosystem includes a plugin API (petal), community marketplace (bazaar), Chrome clipper extension, and Android/iOS/HarmonyOS apps. The core editor engine is Lute, and the data repository is handled by dejavu. Features include block-level links, database views, flashcard spaced repetition, AI writing via OpenAI API, and OCR.

SiYuan stores content as JSON (.sy files) in the workspace's data folder, including assets, templates, plugins, and notebook folders. The core kernel program (SiYuan-Kernel) runs as an HTTP server, providing an API and WebSocket interface. The built-in CLI (via the siyuan command) directly reads and writes data, e.g., siyuan notebook list -w ~/SiYuan, siyuan search "keyword" -w ~/SiYuan -f json, and siyuan export md --id <block-id> -w ~/SiYuan. The editor supports block-level references, bidirectional links, SQL query embeds, Markdown WYSIWYG, and exports to Markdown, PDF, Word, and HTML. It offers AI writing and Q/A chat via OpenAI API, and Tesseract OCR. Deployment options include desktop installers, Docker images (b3log/siyuan), and the CLI.

  1. Knowledge workers who want complete control over their notes, storing data locally and syncing via encrypted repositories without relying on third-party cloud services.
  2. Teams that need a self-hosted knowledge base, deployed on internal servers via Docker and protected behind an NGINX reverse proxy.
  3. Researchers who require fine-grained block references and bidirectional links to build complex knowledge graphs.
  4. Users who track projects or literature with database views and embed SQL queries within notes.
  5. Language learners using flashcard spaced repetition to review content.
  6. Writers who need offline, local-first tools with export to Markdown or Word and web clipping capabilities.

How do you install or deploy this agent?

Multiple installation methods:
- Desktop: Download from the official site (b3log.org/siyuan) or GitHub Releases, or via Microsoft Store (Windows), App Store (iOS), Google Play/F-Droid (Android).
- Docker self-hosting: Use the image b3log/siyuan. Run 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. Ensure the workspace folder ownership matches PUID/PGID.
- CLI: The binary is located at <install-dir>/resources/kernel/SiYuan-Kernel; Windows installer adds it to PATH automatically; macOS and Linux require creating a symlink.

How do you use this agent?

After installation, launch the desktop app or start the Docker container with docker run. Access http://localhost:6806 in a browser (Docker) or open the desktop client. Set workspace path and lock screen password on first run. Use the editor to create notes with Markdown shortcuts and block operations. The CLI can be used: siyuan notebook list -w ~/SiYuan to list notebooks, siyuan search "keyword" -w ~/SiYuan -f json to search full-text, and siyuan export md --id <block-id> -w ~/SiYuan to export. For synchronization and encryption, configure the data repository key in settings.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Fine-grained block-level references and bidirectional links enable building complex knowledge networks.
  • Local-first and privacy-preserving, storing data locally with optional end-to-end encrypted sync.
  • Self-hostable via Docker, offering complete control over your data.
  • Rich features: database views, flashcard spaced repetition, AI writing, and OCR.
Limitations
  • Third-party sync disks are not supported as they may corrupt data; sync is a paid member feature.
  • Some features (like cloud sync and certain export options) require a paid membership.
  • The Docker version does not support desktop/mobile app connections and only works in browsers; it lacks PDF/Word/HTML export and Markdown import.
  • Configuration of reverse proxy and permissions (PUID/PGID) adds complexity for non-technical users.

How does this agent compare with similar options?

SiYuan competes with tools like Obsidian and Notion in the block-reference and knowledge management space, but the README does not explicitly name specific competitors.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
SiYuan This agent 40 · Major gaps Desktop appFreemium ★ 48k today TypeScript —
Eclaire 57 · Major gaps Self-hosted serviceFree ★ 929 6mo ago TypeScript OpenAI API
Presenton – Open-Source AI Presentation Generator & API 65 · Some gaps Self-hosted serviceFreemium ★ 12k 1d ago TypeScript —
Zooid 53 · Major gaps CLIFree + model costs ★ 72 16d ago TypeScript Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
40/ 100 5-point scale 2.0 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 3 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 10/29
Reliability 6/14
Adaptability 6/18
Convention 11/18
Effectiveness 4/13
Verifiability 3/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

The materials show AI writing and Q&A chat, plus plugins, cloud services, and self-hosted deployment. The supplied application entry point does not establish an Agent permission model, data recipients, sensitive-data handling, or confirmation for external effects, so these criteria receive 1. Repository-key and encrypted-notebook references and backup advice are present, but the packet does not show that Agent actions are covered by those protections or can be reliably rolled back.

Reliability6 / 14 · 2.1/5

The application code shows error logging for settings refresh and plugin reload. Supplied tests cover static behavior such as Agent question-card reload, streaming Markdown, and welcome layout, and the README includes deployment guidance; this supports some internal consistency, scored 2. The packet does not show Agent model dependency configuration, service availability handling, or the full failure-message implementation, so those criteria receive 1.

Adaptability6 / 18 · 1.7/5

The README describes a personal knowledge-management system and lists AI writing and Q&A, but does not sufficiently define Agent users, suitable tasks, or excluded tasks; audience/scenarios and capability boundaries receive 1. No Agent trigger conditions or trigger precision are shown, so that criterion receives 0. Desktop, mobile, browser, and Docker environments are documented, including the browser-only Docker limitation, earning environment fit 2.

Convention11 / 18 · 3.1/5

The README has a contents section, installation guidance, CLI examples, FAQ, deployment limitations, and a changelog link, supporting scores of 2 for information architecture, install notes, examples/FAQ, known limitations, and versioning/changelog. The AGPL-3.0 metadata agrees with the LICENSE text, earning 3 for license. Agent-specific naming conventions and maintenance responsibility are not established by the packet, so each receives 1.

Effectiveness4 / 13 · 1.5/5

Agent chat UI and Markdown rendering tests indicate that the product includes an interactive presentation, but the packet does not show typical Agent task outputs, evidence of output quality, or gains over manual knowledge work. Output usability, marginal value, and cost-benefit each receive 1.

Verifiability3 / 8 · 1.9/5

The README, application entry point, Agent tests, and license file support some product and repository facts, but the supplied files do not directly show core Agent execution, model configuration, or data flow, limiting corroboration. The tests are source evidence and do not establish that they ran successfully; fact/inference separation is also limited. Each verifiability criterion receives 1.

Risks and how to mitigate them
  • This assessment uses an incomplete static packet. Unprovided files are unknown and cannot be treated as either absent or implemented.
  • The README's privacy-first and self-hosting claims are not sufficiently corroborated by the supplied Agent execution code; verify what model requests contain, who receives them, and which cloud services are involved before use.
  • Docker guidance stresses setting access authentication and calls out data-volume, backup, encryption-key, and upgrade/recovery risks; check those points when deploying.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision d3af9d578208 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/siyuan.svg)](https://followagents.com/en/agents/siyuan)
<a href="https://followagents.com/en/agents/siyuan"><img src="https://followagents.com/badge/siyuan.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v3.9.0-beta.2 Pre-release
    Release notes excerpt
    <p align="center"> <a href="https://github.com/siyuan-note/siyuan/actions/workflows/cd.yml"><img src="https://img.shields.io/github/actions/workflow/status/siyuan-note/siyuan/cd.yml?logo=github&label=cd.yml%20Action" style="cursor:pointer;height: 30px;margin: 3px auto;"/></a> <a href="https://github.com/siyuan-note/siyuan/releases/v3.9.0-beta.2/"><img src="https://img.shields.io/github/downloads/siyuan-note/siyuan/v3.9.0-beta.2/total?logo=github" style="cursor:pointer;height: 30px;margin: 3px auto;"/></a> …
    View on GitHub ↗
  2. v3.8.12
  3. v3.8.11

FAQ

Is SiYuan completely free?
Most features are free, even for commercial use, but some member features like cloud sync require payment. See the pricing page for details.
Where is my data stored and how can I back it up?
Data is stored locally in the workspace folder (e.g., data). You can back up by exporting data or copying the entire data directory.
What if I lose my data repository key?
If properly initialized, the key is the same across all devices and can be copied in settings. If all devices are unavailable, you must reset the repository and reinitialize.
Can I use third-party sync services?
Third-party sync disks are not supported and may corrupt data. However, members can sync via cloud storage services.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts