second-brain-cli
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
Quick start
brain setup
The 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
Commands
| 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 |
Options
brain remember "note" --tags work,decisions
brain recall "last week's decision" --limit 10
brain recall "architecture" --tags engineering
brain list --limit 20
What is Second Brain?
Second 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.
Deploy your Second Brain →
Other integrations
License
MIT