Mem0 vs Zep vs Letta: agent memory compared

Mem0 vs Zep vs Letta, checked November 2026: how each stores memory, pricing, licence, self-hosting and MCP support, and which to pick, with Mem0 vs Zep.

On this page

Mem0 vs Zep vs Letta comes down to what you are building. Mem0 is a memory layer you add to an app so it remembers its users. Zep builds a temporal knowledge graph from conversations and business data, for enterprise agents. Letta is now Letta Code, an agent harness whose agents rewrite their own memory. All three are for people building agents. If you only use coding agents like Claude Code, you need something smaller: memory your agents write to files you can read.

This is from each project’s own docs, repositories and pricing pages, checked again on 27 November 2026. We didn’t install or benchmark any of them.

Mem0 Zep Letta
Built for Apps that remember their users Enterprise context from chats and business data Stateful agents that learn as they work
Memory is Facts extracted by a model, in a vector store A temporal graph of entities and facts Files in a git-backed folder the agent edits itself
Open source Apache-2.0 Graphiti, the graph engine, Apache-2.0 Letta Code, Apache-2.0
Latest release Python SDK 2.2.1 Graphiti 0.32.1, its MCP server 1.1.5 Letta Code 0.34.71
Price of the hosted service Free, then Custom Free 10,000 credits a month, Flex $125, Flex Plus $375 Free, Pro $20 a month
Runs on Mem0’s platform, or your own vector store Zep’s cloud, or your VPC on Enterprise; Graphiti on Neo4j, FalkorDB, Neptune or embedded Relate Letta Cloud, or locally with your own model keys
Needs a model to save Yes, OpenAI by default Yes, OpenAI by default for Graphiti The agent’s own model
Reaches Claude Code by A plugin or a hosted MCP server, both on a Mem0 Platform account A hosted MCP server and plugin, or Graphiti’s reference one A hosted MCP server that delegates to Letta agents; Letta Code is its own coding agent

Mem0: memory for the users of an app

Mem0 extracts memories from conversations with a language model and stores them for retrieval later. Its README says it “requires an LLM to function”, with OpenAI’s gpt-5-mini and text-embedding-3-small as defaults. The open-source library uses a local Qdrant store and a SQLite history by default. The self-hosted server uses Postgres with pgvector.

For coding agents, Mem0 has a Claude Code plugin. Hooks capture your messages, Claude’s replies, changed files and test results. Every five exchanges, a background worker sends them to Mem0 for extraction. A new session searches with your first prompt and adds up to five memories. It needs a Mem0 Platform account and API key. Mem0 also runs a hosted MCP server that Claude Code, Codex and Cursor can connect to, with memories kept in your Mem0 account, not on your computer.

The pricing page has two plans. Free gives unlimited end users and, with your own model key, 50,000 adds and 10,000 retrievals a month. Graph memory, on-prem deployment and SSO are on the Custom plan.

Pick Mem0 when you ship a product with many users and want each one remembered, with SDKs and a hosted service that scales without you running it.

Zep: a temporal graph for enterprise data

Zep calls itself “the unified context layer for enterprise data”. It turns documents, business data and conversations into temporal context graphs, with SDKs for Python, TypeScript and Go. Its pricing page lists a free plan with 10,000 credits a month, paid plans from $125 a month, and deployment in your own VPC on Enterprise.

The engine underneath is Graphiti, which is open source. It tracks when a fact became true and when it stopped being true. It needs Python 3.10 or later, a graph database (Neo4j, FalkorDB, Amazon Neptune, or Relate, an embedded one that runs inside your Python process with no server) and a model: it “defaults to OpenAI for LLM inference and embedding”.

Pick Zep when you need facts extracted automatically from a lot of conversation and data, with entities, relationships and time built into every query.

Mem0 vs Zep

Mem0 vs Zep is facts or a graph. Mem0 extracts short facts about a user and finds them by similarity. Zep, through Graphiti, extracts entities and the relationships between them, and records when each fact became true and when it stopped. Pick Mem0 for per-user memory in an app, with a free plan and a library you can run anywhere. Pick Zep when answers depend on how things connect and change over time, across business data as well as chats.

Mem0 Zep
Stores Facts per user, agent or session A temporal graph of entities, relationships and facts
Knows when a fact stopped being true No: it updates or deletes the memory Yes: each fact has a valid-from and a valid-to
Run it yourself The library, with local Qdrant and SQLite by default, or a Docker server on Postgres Graphiti and a graph database; the full Zep service only in your VPC on Enterprise
Hosted price Free, then a custom plan Credits per piece of data sent: free 10,000 a month, then $125 or $375 a month
Graph memory On the Custom plan In every plan
For Claude Code A capture plugin, or a hosted MCP server A hosted MCP server with SSO, or Graphiti’s reference server

Letta: agents that edit their own memory

Letta, formerly MemGPT, began as a server for building stateful agents. That server is retired. Its repository now says the current source lives in Letta Code, and the old V1 API server is kept on an archive branch. Letta Code is an agent harness with a terminal UI, an app at chat.letta.com, an SDK and letta server for running agents yourself.

Its agents keep memory in MemFS, a git-backed folder they inspect and edit themselves, and you can sync it to your own GitHub repository. “Dreaming” runs background subagents that review recent conversations and update memory. Letta Cloud is the default, but on first launch you can choose to run locally and bring your own model keys. The pricing page lists a free plan with up to 3 stateful agents and 5 MiB per memory repository, and Pro at $20 a month with $20 of model credits and 20 agents.

The old Docker server still has a page, now under the legacy V1 SDK docs, which says the image “is no longer an actively maintained or supported Letta product surface”.

Letta reaches other agents through a hosted MCP server. Claude Code or Cursor can create Letta agents, send them work and read their replies. That gives Claude Code a stateful agent to delegate to, not a memory of its own.

Pick Letta when you want an agent that manages its own memory as it works, and you’d use Letta Code as that agent.

What the benchmark numbers say

The public numbers are self-reported, and they contradict each other. All of them use LoCoMo, a benchmark of questions about long conversations.

  • Mem0 published a paper in April 2025 claiming the best results on LoCoMo, ahead of OpenAI’s memory and others. Its README now reports 92.5 on LoCoMo and 94.4 on LongMemEval for a newer algorithm, run by Mem0 on its managed platform, which “includes proprietary optimizations not available in the open-source SDK”.
  • Zep replied that Mem0 had set Zep up wrong. With its own setup, Zep reports 75.14% against Mem0’s best of 68.44%. Zep also points out that the paper’s own full-context baseline, with no memory system at all, scored 72.90%.
  • Letta gave an agent the conversations as a file and plain file tools such as grep. It reports 74.0% with GPT-4o mini, and concludes that “even simple filesystem tools are sufficient” for retrieval benchmarks.

Read these as claims from vendors about rivals. Two things hold either way. LoCoMo tests recall of chat history, not knowledge of a codebase. And in two of the three write-ups, a long context or a plain file did about as well as a dedicated memory system.

Does Graphiti work with Claude Code?

Graphiti works with Claude Code through its MCP server, with caveats. The server speaks HTTP at localhost:8000/mcp/ or stdio, and Claude Code connects to either. Its README documents Claude Desktop, Cursor and VS Code, not Claude Code. It needs Docker, FalkorDB or Neo4j, and an OpenAI key by default; other model providers can be set in its config.

It is a reference implementation. Its README says it has “no authentication, no authorization, and no prompt-injection protection”, and that any caller can read, change or delete all graph data. Keep it off any network you don’t trust.

Zep’s hosted Context MCP Server lists Claude Code among its clients, and a Zep Context plugin installs it with a skill that says when to search and save. It needs a Zep account with MCP seats (5 on Flex, 15 on Flex Plus) and sign-in through Google Workspace or your identity provider.

What a coding agent user needs instead

If you use Claude Code, Codex or Cursor and build nothing, all three frameworks are more than the job needs. The job is smaller: the agent learns why you chose a library, where the config lives, what broke last week. The next session, in any of your agents, should know it.

For that, you want three things:

  • No extraction step. The agent was there. It can write down what mattered, so saving needs no second model call and no API key.
  • Files you can read. When an agent acts on a bad memory, you open the note and fix it. A vector store or a graph has to be queried.
  • A notion of what’s current. Coding knowledge goes stale. A decision gets replaced, a fact stops being true. Zep’s graph models time well, but it takes a graph database or Zep’s cloud.

This is what we built Memorinth for, so weigh this section accordingly. Agents save notes as Markdown in a folder on your disk. Decisions are superseded, never edited, and Facts carry a source and come up for a recheck after 180 days. Search by meaning runs on a local model, so nothing needs a key. memorinth init connects Claude Code, Codex, Cursor and Gemini CLI to the same folder, with a briefing at the start of each session. How agents use it shows the whole loop.

Where it is weaker: its source isn’t public yet, it extracts nothing for you, and it has no graph of entities. If you are building a product, use one of the three above.

You may need nothing at all. For one project in Claude Code alone, its built-in memory may be enough: see Claude Code memory: built in, or a server?. For other local options, see Mem0 alternatives that run fully local.

Which one to choose

If you are… Look at
Building an app that remembers its users Mem0
Building agents over enterprise data, with time in every answer Zep, or Graphiti if you run your own graph
Using an agent that manages its own memory Letta Code
Using Claude Code, Codex or Cursor, and want them to share what they learn Memorinth

Memorinth vs other agent memory compares all of these with Basic Memory and Claude Code’s own memory. To try Memorinth, read Give Claude Code a long-term memory, or run:

$ memorinth init
All posts