claude-mem
Use case: Memory
Open-source (Apache-2.0) persistent memory for coding agents: captures tool-use observations, compresses them into summaries and injects relevant context into later sessions, with search. Works with Claude Code, Codex, OpenCode, T3 Code and more. Free to self-run with the local observer; the optional hosted observer starts with a 30-day free trial.
Like claude-mem? Find tools like it on X.
Follow @AgentstackDaily, plus the free Top 25 Agent Tools checklist.
At a glance
- Category
- Memory
- Best for
- Best memory and evaluation tools for AI agents · Memory use cases
- Tags
- open-source, claude-code, session-memory, context
- Official site
- github.com
- Link checked
- November 4, 2026
- Data
- JSON
When to use claude-mem
Consider claude-mem when your agent work falls under Memory. Our directory summarizes it this way: Open-source (Apache-2.0) persistent memory for coding agents: captures tool-use observations, compresses them into summaries and injects relevant context into later sessions, with search. Works with Claude Code, Codex, OpenCode, T3 Code and more. Free to self-run with the local observer; the optional hosted observer starts with a 30-day free trial. It is also tagged open-source, claude-code, session-memory and context, which can help you judge whether it matches the job in front of you. If you are still choosing, compare it with Mem0, Letta (MemGPT) and Zep / Graphiti before committing, since they sit in the same category.
How claude-mem fits an agent workflow
In an agent stack, claude-mem belongs to the Memory category, which covers the context layer, where an agent stores and retrieves information across steps and sessions. You will also find it in our curated list: Best memory and evaluation tools for AI agents. Other Memory entries worth a look alongside it include LangMem, Cognee and MCP Memory server.
Pricing & open source
claude-mem is tagged open source in our directory. The official link is a GitHub repository (github.com/thedotmack/claude-mem), so you can read the source and its license there. Plans and terms can change, so check the official site for current pricing and licensing.
claude-mem alternatives
- Mem0 — Memory layer that extracts and retrieves user/agent facts across sessions.
- Letta (MemGPT) — Stateful agents with self-editing tiered memory, from the MemGPT research.
- Zep / Graphiti — Temporal knowledge graph for agent memory that tracks how facts change over time.
- LangMem — LangChain library for long-term memory extraction and prompt optimization in agents.
- Cognee — Builds knowledge graphs plus vectors from your data as agent memory.
- MCP Memory server — Reference knowledge-graph memory server any MCP client can use.
All Memory tools → · Best memory and evaluation tools for AI agents
Related tools
- Anthropic memory tool
Claude API tool for storing and retrieving information in a file directory across conversations.
- Anthropic: Effective context engineering
Guide to curating context: compaction, structured notes and sub-agent architectures.
- Chroma
Open-source embedding database commonly used for agent retrieval memory.
- Entire
Git forge built for agents: the open-source (MIT) Entire CLI captures Claude Code, Codex, Gemini and other agent session
- Mem0
Memory layer that extracts and retrieves user/agent facts across sessions.
FAQ
What does claude-mem do?
claude-mem gives coding agents persistent memory across sessions. It captures tool-use observations through lifecycle hooks, compresses them into semantic summaries, and injects relevant context into later sessions.
Which agents does claude-mem work with?
It was built for Claude Code, and its installer also supports other tools, including OpenCode (1.3.4 or later) and T3 Code with its Codex and Claude Code providers. Run npx claude-mem install, adding --ide for a specific tool.
Is claude-mem open source?
The code is open source under the Apache License 2.0. After installing you pick a memory provider: the hosted claude-mem observer, your own OpenRouter or Gemini key, or your Anthropic subscription.
Get new agent tools and tips as they're added
Follow @AgentstackDaily on X for new tools and copy-paste tips. Free.