One binary. Your memories live in a SQLite file on your own machine. Your agent reaches them in three ways: the session hooks bring them in without being asked, while shell commands and MCP are how the agent asks the brain and writes to it. Start with install. Read the memory model once, because it explains every time the brain says no. Keep the CLI reference open.
Build the binary, create a brain, check the hooks really ran and fill the brain from a project that already has months of history.
Read →The six mechanisms a notes file cannot give you, a real recall and what the brain does when it is not sure.
Read →Types, how fast each one fades, scopes, confidence and trust, corrections and the guardrails. The one page worth reading top to bottom.
Read →Every command with the flags that matter and what each refusal protects. Checked against the binary, not written from memory.
Read →Each supported agent, the files init writes for it and which hook events it gets.
The commands as MCP tools, on stdio for an agent that starts the server or on Streamable HTTP for a client elsewhere, with the security rules for each.
Read →os-brain ui on loopback, port 7788. No Node and nothing to install.
The MCP server published over HTTPS with OAuth, so a hosted client can reach your brain.
Read →The rules every project on the machine inherits, word for word as the binary carries them.
Read →How the brain learns how you want to work: prefer, whoami, captured prompts and the ladder from stated to law.
What is owed and when, recurring schedules, numbers that only make sense as a series and the optional pipeline.
Read →The shared store, notes between projects, publishing a lesson, keeping a project private and moving one into the shared store.
Read →Why the brain loads through hooks rather than lines in an instructions file that nobody keeps up to date.
Read →The brief did not show up, recall finds nothing, a refusal you don't understand. doctor, safety copies and restore.
Most people use one machine as one developer. For them the install page and the CLI reference cover everything. The rest is for when you add another agent or a second project.
| Situation | What you run | Page |
|---|---|---|
| One machine, one developer | The CLI, wired to session hooks | Install |
| An agent that cannot run shell commands | MCP over stdio | MCP |
| A client on another machine | MCP over Streamable HTTP, with TLS and a token | MCP |
| Six projects and one set of habits | The shared store, with per-project opt-out | Sharing |
| Something looks wrong | os-brain doctor | Troubleshooting |
| A bug to report | A GitHub issue | Help |
os-brain init writes both into the brain directory, brain/, so your agent already has them without downloading anything. It does not edit your CLAUDE.md. Both are also in the root of the repository.
HOWTO.md is the how: which command to use, what each flag changes and what the output looks like. BEST-PRACTICES.md is the when: what is worth saving, what the code or git already says (so saving it is noise) and how to write a title you can still find months later.
On the command line, os-brain help lists every command and os-brain help <command> prints its flags.