What it is
claude-mem (written Claude-Mem in the project) is an open-source project by GitHub user thedotmack. A coding agent starts every new session from zero. Claude-Mem runs a second agent (a program that carries out tasks on its own) beside it that takes notes while it works, compresses them with AI, and injects the relevant context back into later sessions. The next session starts with a short index and pulls in the details only when needed. You install it with `npx claude-mem install`, or with plugin commands inside Claude Code. The README says it works with Claude Code, Codex, Cursor, OpenCode and 11 more agents. Copilot CLI, Goose, Roo Code and Warp can search the memory, but their sessions are not recorded. What makes it special is that the memory lives on your own computer, and a session opens with an index while details come on demand.
Highlights:
- It records what your agent does during sessions, compresses it with AI, and opens the next session with a short index, with details fetched when needed
- Works with Claude Code, Codex, Cursor, OpenCode and more; Copilot CLI, Goose, Roo Code and Warp can only search memory, and their sessions are not recorded
- Memory lives in `~/.claude-mem` on your computer, and cloud sync is opt-in
- Memory provider options include the claude-mem observer, your own OpenRouter or Gemini key, or your Anthropic plan
How to use:
- First, run `npx claude-mem install` and choose the agents to set up; inside Claude Code you can instead run `/plugin marketplace add thedotmack/claude-mem` and `/plugin install claude-mem`.
- Then sign in through your browser and pick a memory option; to skip sign-in, add the `--provider` flag.
- Then start working; if you installed with the plugin commands inside Claude Code, restart Claude Code first. The second session in a project opens with memory from the first.
Who it's for:
Developers who use coding agents such as Claude Code, Codex or Cursor and want the agent to remember project context across sessions.
Before you start:
- You need to be able to run `npx`. The README badge lists Node.js 20.19 or later within version 20, or 22.12 or later. Do not install with `npm install -g claude-mem`: it installs only the SDK and library, and does not register the plugin hooks (scripts that run automatically at key points in a session) or the worker service.
- By default, the installer prompts you to sign in to claude-mem in your browser (email magic link, no card required to sign in). Choosing the claude-mem observer opens a checkout page that asks for a payment method; the trial starts after checkout is completed. You can also add the `--provider` flag, set `CLAUDE_MEM_ONLINE_OPTIN=false`, or run in a non-interactive shell, and the installer then involves no account. Cloud sync is opt-in. Anonymous usage analytics are on by default; run `npx claude-mem telemetry disable` to turn them off.
- Installation registers plugin hooks and sets up a worker service, which record what your agent does in sessions and turn it into memory. For Claude Code, the installer also asks whether to disable its native auto-memory and whether to overwrite an existing install. If you use these features, weigh the safety risks yourself. AI Inspiration World is not responsible for any consequences. Only use material you have the rights to; you are responsible for compliance.
- The project is open source. If you do not subscribe when the trial ends, memory falls back to your Anthropic plan; check the official website for pricing, and with your own OpenRouter or Gemini key costs depend on that service.
- Refer to the official website for the license. Content belongs to the original creator. The name contains Claude and the author is thedotmack; AI Inspiration World has not verified any relationship with Claude's official team.
Based on the project's public documentation. Not tested by AI Inspiration World.