Persistent memory across sessions for Claude Code and other coding agents
open coreApache-2.0freeMCP
Claude-Mem gives coding agents memory across sessions. Hooks in the agent hand each tool call to a small local worker, a second "observer" agent turns that activity into short observations and a summary at the end of the session, and the next session in the project starts with a compact index of what matters, fetching details only when needed. Memory lives locally (SQLite, with Chroma for semantic search), a mem-search skill and MCP tools search past work, <private> tags keep secrets out, and a local web view shows live work. It works with Claude Code (as a plugin), Codex, Cursor, Gemini, OpenCode, OpenClaw, Hermes, Copilot and more. The engine is open source under Apache-2.0; its makers sell Cloud Sync to carry your memory between devices and hosted tokens to run the observer, and are piloting a shared TeamBrain for teams.
Problems it solves
- my coding agent forgets everything between sessions
- give Claude Code memory of what we decided in earlier sessions
- search what my coding agent did in past sessions on this project
Features
- automatic capture of agent activity into observations
- compact context index injected into new sessions
- mem-search skill and MCP search tools
- <private> tags to keep secrets out of memory
- works with Claude Code, Codex, Cursor, Gemini, OpenCode and more
- optional paid Cloud Sync and hosted observer tokens
Limitations
- Anonymous usage analytics are on by default; a command turns them off.1
Ways to run it
Claude-Mem (open source)
Only in this edition
- local memory capture and recall
- mem-search skill and MCP tools
- local web view of work
Not included
- sync between devices
- hosted observer tokens
You arrange
- your own model provider for the observer
Cloud Sync
$12/month after a 30-day trial, or $99/year2
Only in this edition
- memory synced across devices
- remote Work View
- private MCP recall from compatible clients
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
Alternatives
The same job
These do what Claude-Mem does.
- Engram Persistent memory for AI coding agents
- deja-vu Local memory for coding agents that searches the session logs Claude Code, Codex, Cursor and others already keep on disk
- ai-memory Long-term memory for AI coding agents, shared across agents, projects and machines
- AgentMemory A local memory server that captures coding agent sessions and lets agents recall decisions and fixes later
- Hindsight Long-term memory for AI agents that learns from experience
- MemOS Memory operating system that gives LLM agents persistent, editable long-term memory
