A CLI for Second Brain — give your terminal a persistent AI memory layer that works across every session and every tool.
npm install -g second-brain-cli
Or without installing:
npx second-brain-cli
brain setupThe first-run wizard walks you through connecting to your Second Brain Worker. After that:
brain remember "decided to use TypeScript for the CLI"
cat meeting-notes.md | brain remember
brain recall "TypeScript decision"
brain list| Command | Description |
|---|---|
brain setup |
Run the interactive setup wizard |
brain remember [text] |
Save a memory (reads stdin if no text given) |
brain recall <query> |
Search memories semantically |
brain list |
Browse recent memories |
brain append <id> <text> |
Add more context to an existing memory |
brain forget <id> |
Delete a memory |
brain stats |
See memory count and top tags |
brain remember "note" --tags work,decisions
brain recall "last week's decision" --limit 10
brain recall "architecture" --tags engineering
brain list --limit 20Second Brain is a self-hosted memory layer that works across every AI tool — Claude, ChatGPT, Cursor, and anything else that supports MCP. Store notes, decisions, and context once, then recall them by meaning across every session.
Built on Cloudflare Workers + D1 + Vectorize. One-click deploy, free tier, your data stays in your own account.
| Integration | Repo |
|---|---|
| MCP Server | second-brain-cloudflare |
| Obsidian Plugin | second-brain-obsidian-plugin |
| Web UI | Built into the Worker — no install needed |
MIT