This release is a pre-release and may not be stable for production use.
A local-first second brain for AI agents, kept as plain Markdown that you own.
pip install brain-wiki==0.1.0.dev1 Copy PIP instructions
One long-term memory for all your AI agents, kept as plain Markdown that you own.
brain-wiki gives Claude Code, Codex and the ChatGPT desktop app, Antigravity, OpenClaw, Cursor, and any MCP client one shared brain: a folder of Markdown notes they search before answering, cite when they rely on it, and keep up to date as they work. It runs on your machine, needs no server or API keys, and the brain opens in Obsidian.
Getting started · Connecting agents · User guide · Design · Changelog
brain-wiki needs Python 3.11 or newer with SQLite FTS5, which the python.org, uv, Homebrew, and most Linux builds include, and uv.
No plugin yet, or an agent not listed? Ask any agent that can run commands:
Install brain-wiki with uv tool install brain-wiki, then run brain setup --guide and follow it.
The brain-setup skill (or the guide brain setup --guide prints, which holds the same steps) explains each choice, lets you decide, and shows every change before making it:
Remember that Lumen keeps attachments next to their notes, because Obsidian expects relative paths.
uv tool install brain-wiki # or: pipx install brain-wiki brain setup # step by step: create a brain, connect your agents, harvest brain log "Lumen keeps attachments next to their notes; Obsidian expects relative paths." brain search "attachments" brain viz # a local 3D map of the brain Or do the steps yourself: brain doctor (checks SQLite, your brains, and the agents on this machine), brain init ~/brains/personal --name personal --git, and brain connect claude-code (or codex, antigravity, openclaw, cursor; try --dry-run first).
Keep brains outside your code repositories. Agents may log and correct notes by default; brain setup asks whether each app may also consolidate and propose rules, or grant it yourself:
brain agents grant claude-code consolidate propose_rules Marketplace installs start the server with uvx. With the command installed, brain connect starts it at once, and --uninstall reverses it.
agents ──log · harvest────────────────────────► inbox/episodes/ │ ▲ │ │ │ │ consolidate, when you ask: │ │ │ your agent proposes ops, │ │ │ brain-wiki validates them │ │ ▼ │ └── orient · search · read · neighbors ─── topics/**/*.md ◄── you, in Obsidian │ (with the notes that supersede or conflict) ▲ └── edit, then brain check ─────────────────────────────┘ Agents write in two ways. They log what they learn as episodes in inbox/episodes/, and brain harvest adds more from their past sessions. To fix a note, such as a person's new role, an agent edits the file and runs brain check, which refuses deleted or reworded facts. Consolidation runs in your agent, when you ask. brain-wiki packages the pending episodes, your agent proposes small operations (add a claim, supersede one, link two notes, create a note), and brain-wiki validates and applies them, then moves the episodes to archive/episodes/. brain-wiki never consolidates on its own. Every change is a run. Consolidation and checked edits are locked, validated, logged in log.md, committed to git if the brain is a repository, and reversible with brain undo. The brain is a folder: topics/ holds curated notes, one folder per topic and nested to any depth, each with a hub (index.md); rules.md holds standing rules that only you add; AGENTS.md tells agents that only read files how to use the brain. The index is a SQLite FTS5 database outside the brain, kept current as files change and rebuilt from the brain when it is missing. Agents connect through an MCP server with thirteen tools, a plugin with three skills, and an instruction block that tells them when to use the brain. Agent Tools Instructions Harvest Claude Code yes yes yes Codex / ChatGPT desktop yes yes yes Antigravity yes yes yes OpenClaw yes yes no Cursor yes yes no Any MCP client yes printed no Documentation Goal Start here Install and create a brain Getting started Connect agents and harvest Agents Consolidate, review, lint, and undo Maintenance Bring an existing vault Import What agents may read and change Privacy and safety Commands, MCP tools, and files Reference How it is built Design · Proposals Status brain-wiki is alpha software at its first release. Its known limitations:
git clone https://github.com/brain-wiki/brain-wiki.git cd brain-wiki uv sync uv run scripts/check.py # everything CI runs See CONTRIBUTING.md. The visualizer's source is in brain-wiki-viz.
Report vulnerabilities privately, as described in SECURITY.md.
Apache License 2.0. The bundled visualizer's third-party licenses are in THIRD_PARTY_NOTICES.txt.
agents knowledge-base markdown mcp memory obsidian
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.




