wenlan is a free, open source note taking & knowledge management project written in Rust and released under Apache-2.0. It has 502 GitHub stars, 8 forks and 10 open issues, and was last pushed 11 hours ago. On this registry it ranks #64 of 68 tracked projects in Note Taking & Knowledge Management, with 5 head-to-head comparisons available. It gained 1 stars over the last 8 tracked days.

What is wenlan?

Wenlan is an open-source, local-first knowledge base that keeps a single shared set of docs, skills and rules for every AI tool and teammate, built for people who use several AI assistants daily and for small engineering or mixed teams.

What it is

Wenlan is a Rust project released under the Apache-2.0 licence and distributed as an MCP server, a CLI and a desktop application for macOS, Windows and Linux. It stores knowledge as plain Markdown files, with a database used only as an index, and it connects to Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and other MCP-capable tools through a plugin that adds commands such as /capture and /recall. The homepage is wenlan.app, and the repository carries topics including ai-memory, llm-wiki, second-brain, knowledge-base, local-first and claude-code-plugin.

The problem it addresses is fragmentation of AI context. Each AI tool keeps its own memory and its own rules, so a per-tool rules file such as AGENTS.md, CLAUDE.md or .cursor/rules is enough for one tool in one repository and nothing more; beyond that, teams copy the same file per tool and keep the copies in step by hand, and old rules linger after their source changes. Wenlan replaces that manual duplication: what is settled in one tool is sorted into docs, skills and rules, and the connected tools read from that one copy. It also checks citations, refusing a page when most cited sources do not match the sentence they support.

Key capabilities

  • Citation checking on save: Wenlan verifies that each cited source supports its sentence and refuses a page when most citations do not match.
  • One copy of skills and rules that runs in every connected AI tool and platform, rather than one rules file per tool.
  • Overnight sorting of settled knowledge into docs and rules, after which the rules are written into the AI tools' own rules files, including AGENTS.md, CLAUDE.md and .cursor/rules.
  • Plugin commands /capture and /recall for saving a decision in one tool and asking for it in another, plus CLI commands such as wenlan connect cursor, wenlan sources add ~/notes and wenlan open.
  • Change control: every change is visible, reversible, and a page can be locked so the AI asks before editing it.
  • Ingestion of Markdown, text, text-based PDFs and DOCX files, one-off or kept in sync, along with Obsidian and Logseq vaults, web links pasted into a page, and ChatGPT or Claude export ZIPs.
  • Pages that can be plain text or a web page the AI is asked to draw, and OKF folders are supported.

Who uses it and how

  • Individuals running several AI tools daily start with one command, save a decision through one tool, and ask for it in another immediately.
  • Small teams run a single Wenlan server; each person connects with their own key and gets view-only or edit access per Space, and members join from an invite link using their own AI tool.
  • Teams with existing note collections keep Obsidian or Logseq in sync or import once, with imported notes starting on "Ask me first" so the AI asks before touching them.
  • Engineering teams point an AI tool at a code repository so it reads the code and writes docs tied to it.
  • Desktop users on macOS, Windows and Linux get imports and one-press connections, with team desktop apps syncing by themselves.

Getting started

The documented route is to run npx -y wenlan setup, which requires Node.js, installs and starts Wenlan, and connects the AI tools it finds; a desktop app is available from the releases page, and teams follow the separate team server guide.

How it compares

Against the per-tool rules file it is positioned to replace, Wenlan keeps one copy for every tool, updates a page when its source changes, and holds docs, skills and memory alongside the rules. The README points to further comparisons with Obsidian, Notion AI and memory tools at wenlan.app/learn; on the axes the facts support, Wenlan is Apache-2.0, self-hosted, and leaves knowledge in plain Markdown files with the database acting only as an index.

When to use it — and when not

A self-hoster taking the team route must operate a Wenlan server themselves, and the quick-start path assumes Node.js is available. Scanned PDFs need text extraction before import, and the README is explicit that a passed citation check is not proof of correctness, so pages still warrant review. Anyone working with a single AI tool in a single repository is already served by one rules file and gains little from the extra moving parts.

project readme (upstream, from github) — read inline

Docs, skills and rules you and your AI tools both work from, kept current.
Bring your notes and knowledge. Every doc cites its sources. Free, open source, for you and your team.

English | 简体中文 | 繁體中文 | Español

Download · Get started · Sources · Docs · Discord

CI Latest release License: Apache-2.0 and AGPL-3.0


Why Wenlan

Each AI tool keeps its own memory and rules. Wenlan gives every tool, agent and teammate what you settled.

For people who use several AI tools daily, and small teams, all engineers or mixed.

  • Docs with sources. Wenlan checks that each cited source supports its sentence before saving.
  • One copy of skills and rules. It runs in every AI tool and platform you connect.
  • Organized memory. What you settle is sorted into your docs, skills and rules, so they stay current.
  • You stay in charge. See every change, undo it, and lock a page so AI asks you first.
  • Files first, self-hosted, portable. Plain Markdown files; the database is only an index.
  • Easy for people to read too. A page can be text, or a web page you ask your AI to draw.

Wenlan or a rules file per tool?

A rules file (AGENTS.md, CLAUDE.md, .cursor/rules) is enough for one tool in one repository. Beyond that:

  • One copy for every tool. No more copying a file per tool and keeping them in step by hand.
  • Old rules don't linger. Your AI tools update a page when its source changes.
  • More than rules. Docs, skills and memory sit next to them.

More comparisons, with Obsidian, Notion AI, and memory tools: wenlan.app/learn.


Get started

On your own. Start from your AI tool. No app needed.

  1. Run one command (needs Node.js). It installs and starts Wenlan, and connects the AI tools it finds.

    npx -y wenlan setup
    

    It asks once whether to bring in a folder of notes or docs. Enter skips. Other ways to install.

    Later: wenlan connect cursor adds another tool, wenlan sources add ~/notes another folder. More.

  2. Tell one AI tool what you settled. Then ask in another; it is there right away.

    Save to Wenlan: we release on Tuesdays, after the tests pass.

    Ask Wenlan: when do we release?

    With the plugin these are /capture and /recall. All commands.

  3. Overnight, Wenlan sorts what you settled into docs and rules, each with its source.

    The first time, it asks you once. After your yes, the rules go into your AI tools’ own rules files.

  4. Read and edit your pages in your browser: wenlan open.

Optional: the desktop app for macOS, Windows and Linux adds imports and one-press connections.

With a team. Run one Wenlan server. Team server guide.

  • Each person connects with their own key, with view-only or edit access to each Space.
  • Members join from an invite link with their own AI tool. Desktop apps sync by themselves.

Works with Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and other MCP tools: setup guide.


What you can bring in

  • Files and folders: Markdown, text, text-based PDFs, and DOCX. Import once, or keep in sync.
  • Obsidian and Logseq: keep in sync or import once. Notes you wrote start on Ask me first.
  • Web links: paste a link into a page and it becomes a source.
  • Gmail, Notion, Google Drive, Slack, GitHub: your AI tool reads them and saves what matters, with a link.
  • AI chats: decisions and findings are saved as memories. ChatGPT and Claude export ZIPs work too.
  • A code repository: your AI tool reads the code and writes docs tied to it. Docs for code.

OKF folders work too. Scanned PDFs need text extraction first. Import guide.


How it stays organized

Your AI tool turns what you bring in into linked, cited Markdown pages and keeps them current.

Illustration based on current update behavior; not an App screenshot.

  • Docs with sources: Wenlan refuses a page when most citations don't match. A pass is not proof.
  • Kept current: When a source, memory, or cited code changes, pages relying on it are flagged.
  • You decide what AI may change: Set a page to Allowed or Ask me first, and restore any earlier version.
  • Two ways to run it: your AI tool as it works (default), or a background model you pick. Steep guide.
  • Skills: Take in the skills you already have, or find new ones. Wenlan suggests edits; you decide.
  • In your AI tool: name Wenlan and ask in plain words. The plugin adds /wenlan. Commands.
  • In the app: add material, edit pages, follow citations, and review changes without connecting an AI.

Already run Claude Code on a notes folder? Keep it. Wenlan adds citation checks and per-page control.


Docs for your code repository

In a repository, your AI tool reads the code and writes an overview and a doc for each part.

cd your-repo
wenlan init

It connects your AI tools and asks once about a daily pull request. With the plugin, /wenlan docs writes them now.

  • Tied to the code: Each key sentence points to the code lines behind it. You see when they change.
  • As a pull request: Pages go into the repository as a pull request, when you press the button or daily.
  • Existing docs too: The same pull request fixes doc sentences the code no longer matches.
  • Project rules too: It also puts the project's rules into AGENTS.md, where teammates' AI tools read them.
  • Your edits stay: Edits made in the repository are kept. Pages that cite your memories or chats stay out.


For technical readers

One local knowledge base. The app, CLI, and connected AI tools read and write through Wenlan’s local service. Pages are Markdown files; memories, relationships, and search indexes live in local libSQL. The service, CLI, and MCP server are written in Rust; the desktop app uses Tauri with React and TypeScript. A team server runs the same service on a shared machine, and each member's Wenlan syncs the shared pages with it.

  • Retrieval: SQLite FTS5 finds exact terms and BGE embeddings in a libSQL DiskANN index find similar meaning, fused by weighted Reciprocal Rank Fusion (RRF). Base search needs no API key. Shared-entity links boost related memories, and optional cross-encoder reranking refines the order. Choosing a Space limits results to that project.
  • Graph: With an enrichment model, entity extraction and resolution link mentions of the same person, project, or concept across sources. Label Propagation (default) or Leiden groups related topics.
  • Memories: Findings are saved as small, separate memories, so one can be found without loading a whole conversation or page.

Retrieval, evidence, and models.

Evaluation

These LongMemEval (LME) snapshots measure retrieval of saved knowledge, not AI answer quality. Recall@5 measures how much relevant material appears in the top five results.

Benchmark Recall@5 MRR NDCG@10
LME_Oracle (500 Q) 93.6% 0.857 0.883
LME_S (deep, 90 Q) 87.7% 0.815 0.822

On a 10,000-page test (generated pages, M2 Pro with 16 GB, v0.20.0), App search answered in 11 to 50 ms, restart took under 0.3 s, and memory peaked at about 1.2 GB. With the search fix in 0.20.1, AI-tool search found all 30 rare test words in that library.

Importing a 10,000-note Obsidian vault in 0.20.2 (invented notes, M2 Pro Mac with 16 GB, debug build, Claude Code writing the pages): searchable in 15 s, the first page in about 2 minutes, and 8 cited pages in about 4 minutes.

Evaluation method and benchmark details.


Data and privacy

  • Pages are Markdown files on your computer, and they go only where you send them.
  • With a team server, only pages in shared Spaces go to it. Memories, sources and other Spaces stay with you.
  • Export eligible pages as an Open Knowledge Format (OKF) folder.
  • A cloud AI tool may send what it retrieves to its provider, and a cloud model receives the material it processes, so local storage does not keep those interactions local.
  • Usage statistics are off by default.

Web access (experimental): Turn on Web access in Settings to let web AI clients such as Claude, ChatGPT, or Muse search your library or a chosen Space while your computer is online. When you allow an app, choose search only or search and write; a write app can also add, edit and delete, and AI apps can ask you before each change. Queries and results pass through a relay. See the privacy limits.

File locations, backup, and removal · Network and privacy details.


Learn more


Contributing

Join the Discord community. Report bugs or request features in GitHub issues; issues are public, so redact secrets and personal information.

For code and docs, see Contributing, Security, and the Code of Conduct.


Code signing policy

See the platform signing and notarization details.


License

The local runtime, CLI, MCP server, shared types, and plugins use Apache-2.0. The desktop app and its frontend use AGPL-3.0-only; modified versions run as a network service must offer their source to users.


Lineage and peers

Wenlan takes its name from Wenlan Pavilion. Its direction builds on the LLM-wiki and agent-memory lineages: Karpathy’s LLM-wiki note, Rohitg00’s proposal, and nashsu/llm_wiki. For code docs, the closest peer is OpenWiki; Wenlan’s daily pull request follows its pattern.

Frequently asked questions

Is wenlan free to use?

wenlan is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does wenlan do?

The living playbook for every AI tool. Docs, skills and rules you and your AI tools both work from, kept current. Open source.

What is wenlan written in?

wenlan is primarily written in Rust. Its source is publicly available at https://github.com/wenlan-app/wenlan, and it has 502 GitHub stars.