
Gives Claude and 10 other AI coding tools persistent memory that survives across sessions and machines. Exposes 14 MCP tools including memoir_recall for searching past context, memoir_remember for saving decisions, and memoir_consolidate for finding duplicate or stale memories. Push and restore commands sync encrypted backups to the cloud. Memoir migrate translates memory between tools using AI, so what you told Claude shows up in Cursor. Useful if you're tired of re-explaining your codebase every session or want a single memory layer that follows you across editors. One npx command configures everything, no API keys needed.
npx memoir-cli
One command. No install, no config, no API keys. Claude Code on your Mac, Cursor on your laptop, Copilot at the office — one memory follows you across every tool and every machine. Cloud sync is end-to-end encrypted with a key only you hold — memoir's servers can't read what you sync.
Your coding tools are starting to remember you — Claude Code, Cursor, and Copilot all ship built-in memory now. But that memory is trapped: one tool, one machine, one vendor's format. Switch from Cursor to Claude Code, or open a different laptop, and your AI is a stranger again.
memoir is the MCP memory server that breaks it out. One memory, shared across every tool and synced to every machine — E2E-encrypted in the cloud, plain readable markdown on your disk. Your AI searches, saves, and recalls context automatically, everywhere you work.
It's built on an open, published format — the memoir format, v0.1.1 — so your AI's accumulated context is never trapped in this tool either. Six entry types, normative merge semantics, JSON Schemas, and a validator (npx memoir-cli validate). Any tool can implement it; critique welcome.
you: how does auth work in this project?
memoir_recall("auth setup architecture")
Found 3 memories matching "auth setup architecture":
── 1. Claude CLI / memory/reference_auth_flow.md ──
reference · How authentication works — JWT + refresh, middleware location, state choice
Server components must call getUser(), never getSession(). The session
cookie name is derived from the Supabase URL host, so previews differ.
⋯
Chose Zustand over Redux for auth state (decided March 12).
claude: Based on your previous sessions: this project uses JWT auth
with refresh tokens, the middleware is in src/middleware/auth.ts,
and you chose Zustand over Redux for auth state (decided March 12).
No re-explaining. memoir remembered — and handed back the passage, not a file header.
Recall ranks by how well a file covers all your words (aliases, names, and descriptions weigh more than prose), folds plurals/-ing/-ed, prefix-matches from 4 characters (auth → authentication), and caches parses so a long-lived session doesn't re-read your disk on every question. It does not do semantic matching — that's what aliases: in the frontmatter is for: the model that saves a memory writes down what else it might be called, and recall weights that field heaviest. Try it from the terminal: memoir recall "what you'd ask" shows exactly what your AI would see.
Native memory and the other memory tools each give you part of this. memoir is the only one that gives you all of it:
| Cross-tool | Cross-machine sync | Zero-knowledge encrypted | |
|---|---|---|---|
| memoir | ✅ | ✅ free | ✅ |
| Claude Code / Cursor native | ❌ one tool | ❌ one machine | ❌ |
| claude-mem | ✅ | ❌ local only | ❌ |
| basic-memory | ✅ | 💲 paid cloud | ❌ |
| mem0 / OpenMemory | ✅ | 💲 paid cloud | ❌ |
Native memory is locked to one tool on one machine. The others keep your memory in plaintext, or put cross-machine sync behind a paywall. memoir is the only one that does all three — every tool, every machine, encrypted under a key only you hold — for free. (Based on public docs, June 2026.)
npx memoir-cli
That's it. memoir detects your AI tools, configures MCP, and activates memory. No global install needed.
Your AI gets 15 memory tools:
| MCP Tool | What it does |
|---|---|
memoir_recall | Search across all your AI memories — returns matched passages, ranked by coverage |
memoir_remember | Save context for future sessions (pass aliases so it's findable under other names) |
memoir_list | Browse all memory files by tool |
memoir_read | Read a specific memory in full |
memoir_consolidate | Analyze memories for duplicates, staleness, and bloat |
memoir_status | See which AI tools are detected |
memoir_profiles | Switch between work/personal |
memoir_set_goal | Set the current session goal (pinned into CLAUDE.md) |
memoir_add_next | Add a next action to the current session |
memoir_complete_next | Mark a next action as done |
memoir_note | Record a decision with its rationale |
memoir_ask | Capture an open question for later |
memoir_session | Show goals, next actions, decisions, and recent sessions |
memoir_why | Look up why a past decision was made |
memoir_forget | Retract a decision — permanent tombstone on every machine; purge redacts the text |
Your AI forgets everything between sessions. You re-explain your codebase, your conventions, your decisions — every time.
memoir fixes that. Tell Claude something once and Cursor knows it too — your memory syncs between tools, backs up to the cloud, and restores on any machine. When it piles up, memoir consolidate cleans house: finds duplicates, flags stale context, and can use AI to merge and prune.
11 tools supported: Claude Code, Cursor, Windsurf, Gemini CLI, GitHub Copilot, OpenAI Codex, ChatGPT, Aider, Zed, Cline, Continue.dev.
memoir push # back up AI memory + workspace + session
memoir restore -y # restore on any machine
Push syncs AI memory, cursorrules, session context, workspace (git repos + uncommitted work), and project configs. E2E encrypted with AES-256-GCM.
memoir migrate --from chatgpt --to claude
# AI-powered — rewrites conventions, not copy-paste
memoir migrate --from chatgpt --to all
# Translate to every tool at once
memoir consolidate # scan for duplicates, stale files, bloat
memoir consolidate --smart # AI-powered analysis (finds contradictions + merge candidates)
memoir consolidate --apply # interactively clean up
Over time, memories pile up across tools. Consolidate finds exact and near-duplicates, flags files untouched for 60+ days, and catches contradictions where you told Claude one thing and Cursor another. With --smart, Gemini Flash does a semantic pass and suggests intelligent merges.
memoir login
memoir cloud push # encrypted cloud backup
memoir cloud restore # restore from any version
memoir history # view backup versions
memoir share # create encrypted shareable link
| Command | What it does |
|---|---|
memoir activate | Enable auto-recall in this project |
memoir deactivate | Remove memoir from this project |
memoir push | Back up AI memory + workspace + session |
memoir restore | Restore everything on a new machine |
memoir status | Show detected AI tools |
memoir migrate | Translate memory between tools via AI |
memoir snapshot | Capture current coding session |
memoir resume | Pick up where you left off |
memoir encrypt | Toggle E2E encryption |
memoir profile | Manage profiles (personal/work) |
memoir cloud push | Back up to memoir cloud |
memoir cloud restore | Restore from memoir cloud |
memoir share | Create encrypted shareable link |
memoir consolidate | Find duplicates, stale memories, and bloat |
memoir recall | Search memory exactly the way your AI does — see what it would be handed |
memoir why | Look up decisions: what, why, what was rejected |
memoir forget | Retract a decision (--purge to redact a leaked secret in place); refuses if ambiguous |
memoir validate | Check session state + entry files against the format spec |
memoir doctor | Diagnose issues |
memoir diff | Show changes since last backup |
memoir view | Preview what's in your backup |
memoir update | Self-update to latest version |
MIT Licensed