Skip to content

rahilp/second-brain-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Integration Repo
MCP Server second-brain-cloudflare
Obsidian Plugin second-brain-obsidian-plugin
Web UI Built into the Worker — no install needed

License

MIT

About

brain — a CLI for second-brain-cloudflare. Capture, recall, and manage your AI memory from the terminal. Pipe-friendly, MCP-compatible, zero browser required.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors