The comparison table
| Tool | License | Approach | Who reads the memory | Price |
|---|---|---|---|---|
| Glen | Hosted service | Records every coding-agent turn via hooks, plus Slack, GitHub, tickets, docs, calls | Your organization, checked per memory | Free to 15,000 memories and 3 people; Personal; Team |
| Mem0 | Apache 2.0 | Memory API | Whatever your app grants | Free tier, then usage-based |
| Supermemory | MIT | Memory API | Whatever your app grants | Free with $5 credit, Pro $19/mo |
| Zep | Graphiti open source, Zep Cloud not | Graph-based memory | Whatever your app grants | Free tier, Flex $125/mo |
| Cognee | Apache 2.0 | Graph built from documents, code and conversations | Depends on deployment | Open source |
| claude-mem | Apache 2.0 | Local session capture | One person | Open source, CMEM Pro $30/mo |
| Basic Memory | AGPL-3.0 | Markdown notes, Obsidian-compatible | Whoever has the notes | Open source, Cloud $19/mo per workspace |
| ByteRover | Elastic License 2.0 | Notes reviewed before saving | Depends on setup | See vendor |
| MCP reference memory server | Open source reference | Knowledge graph in a local JSONL file | One machine | Free |
Memory APIs: Mem0, Supermemory, Zep
These are building blocks. You call them from your own code to give your product's users memory, and you decide what is saved and who can read it. They suit a developer building an assistant or an app. Wired to a coding agent over MCP, they save what the agent chooses to save and recall when it chooses to search, and sharing works through whoever holds the API key.
Graph builders: Cognee and Graphiti
Cognee builds a graph out of documents, code and conversations, and Zep's open-source Graphiti is graph-based too. They fit when your question is about relationships between entities and you are willing to run and tune the pipeline. Glen does not build a knowledge graph; it recalls memories by relevance to the prompt.
Local tools: claude-mem, Basic Memory, ByteRover
claude-mem captures one person's sessions on their own machine. Basic Memory keeps memory as markdown you can browse in Obsidian. ByteRover adds a review step before a note is saved. The reference MCP server, @modelcontextprotocol/server-memory, stores entities, relations and observations in a JSONL file set by MEMORY_FILE_PATH, and only saves what the model decides to write. Memory over MCP covers that server in depth.
What sets Glen apart for coding teams
- Capture happens through each agent's hooks on every turn, so memory holds what sessions did, not only what a model saved.
- One store spans five coding agents plus Slack, GitHub and meeting transcripts.
glen code-searchtraces lines of code back through git blame to the agent conversation that wrote them.- Recall is filtered per memory against what each user can already see.
The trade-offs are real: Glen is hosted only, it is not an API for your own product, and sessions are searchable across your organization. See what the Glen app includes.
Frequently asked questions
What is the difference between Mem0 and Supermemory?
Both are open-source memory APIs. Mem0 is Apache 2.0 with a free tier and usage-based pricing; Supermemory is MIT, starts free with $5 of credit, and Pro is $19 a month.
Is Zep open source?
Partly. Graphiti, Zep's graph component, is open source; Zep Cloud is not. Zep has a free tier and a Flex plan at $125 a month.
Can I use Mem0 with Claude Code?
Yes, over MCP, but it saves only when the agent calls the save tool and recalls only when it searches. Glen records every turn through Claude Code's hooks instead.
Which AI memory tools can I self-host?
Mem0, Supermemory, Graphiti, Cognee, claude-mem and Basic Memory publish their code under open-source licenses, so check each project's docs for self-hosting. Glen has no self-hosted build.