Hi, it's Ivo.
claude-mem is a free, open source plugin on GitHub (thedotmack/claude-mem, Apache-2.0, 113,716 stars on November 6, 2026). It's made by Alex Newman, not by Anthropic. While Claude Code works, it records what Claude did, compresses that into short notes and hands the notes to your next session.
What you need first
- Claude Code 2.1.139 or later. Claude Code comes with the paid Claude plans (Pro, Max or Ultra). Type
claude updateif you're on an older version. - Node.js 20 or higher. Bun, uv and SQLite are handled for you.
- Ten minutes. Most of that is reading this.
What Claude Code already remembers
Check this before you add anything, because you may not need the plugin.
Every Claude Code session starts with a fresh context window. Two built-in things carry over:
- CLAUDE.md files. Instructions you write yourself.
- Auto memory. Notes Claude writes on its own: who you are, your corrections, project decisions, where things live. It's on by default. Type
/memoryto see it.
There's also claude --continue, which reopens your last session, and claude --resume, which lists older ones. That's the whole conversation coming back, not a short summary.
The gap is in Anthropic's own docs: "Claude skips anything it can derive from the codebase, such as architecture, file paths, or debugging fixes." So auto memory won't keep what you fixed on Tuesday. claude-mem keeps exactly that.
The install
Inside Claude Code, type these two lines:
/plugin marketplace add thedotmack/claude-mem
/plugin install claude-mem
Restart Claude Code. This route has no installer step, so your notes run on your own Claude plan, which is the plugin's default setting (CLAUDE_MEM_PROVIDER = claude).
Two things to expect:
- Your first session can run without any notes while the launcher compiles. The next one has them.
- Injected notes start on your second session in a project. The first one fills them up.
Don't use npm install -g claude-mem. That installs the library only, without the hooks, so nothing gets recorded.
Which provider to pick
Something has to compress your sessions into notes. That's the provider, and it's the one real choice you make. The terminal route, npx claude-mem install, asks you. It has CMEM Pro pre-selected.
| Provider | Where your sessions go | What it costs you |
|---|---|---|
Your Claude plan (--provider claude) | To Anthropic, as usual | Shares your plan's usage |
| CMEM Pro (pre-selected) | To cmem.ai, their hosted service | 30-day free trial, then subscribe or fall back to your plan |
| Your own OpenRouter key | To OpenRouter | Your OpenRouter credit |
| Your own Gemini key | To Google | Your Gemini key |
My pick for a first week: your Claude plan. If you use the terminal route, run npx claude-mem install --provider claude and the sign-in step is skipped. Local installs still contact cmem.ai once, at signup, with a numbers-only usage summary, according to their docs.
Cloud Sync is a separate thing that comes with cmem.ai. It uploads your notes and your full prompt text to your cmem.ai account. Their own warning: don't enable it if that content must stay on your machine.
What it touches
- On your computer: a
claude-memlauncher on your PATH, hooks on every session and tool use, a small local worker, and a SQLite database in~/.claude-mem. - Installed if missing: Bun and uv.
- Sent to the provider: the tool activity it compresses, which can include parts of your files and commands.
- Usage analytics: on by default, anonymous by their description. Turn it off with
npx claude-mem telemetry disable.
Keep something out of the notes by wrapping it in <private> tags:
<private>
This content will not be stored in memory
</private>
Put passwords and client details in there, or better, keep them out of the session.
How to use it
Mostly you don't do anything. Work as usual, and each new session starts with recent notes.
- Ask about old work in plain words: "what did we change to fix the login bug?" Claude searches the notes, then opens only the ones it needs.
- See everything: the worker prints a local address when it starts. Add
/viewerto it for your notes, sessions and settings. - Too many notes? Set
CLAUDE_MEM_MODEtocode--chillin~/.claude-mem/settings.json. It records fewer notes and keeps what would be painful to rediscover.
How to remove it
Run npx claude-mem uninstall. It removes the launcher and prints the line to take out of your shell settings. Your notes are in ~/.claude-mem, so delete that folder if you want them gone.
The honest part
- I read the README, the docs and the settings code for this guide. I have not run claude-mem on my own machine, so try it on a test project first.
- It changes fast: version 15.8.0 came out on November 1 and 15.10.0 on November 5. Check the install section of the README before you start.
- The README also mentions a crypto token at the very bottom. It has nothing to do with this guide and I'm not recommending it.
- If
/memoryandclaude --continuealready cover what you need, skip the plugin. Fewer moving parts is a fine answer.