Mem0 vs Zep vs Letta: memory for AI agents compared
All three give an agent memory that lasts across sessions, but they are different kinds of product. Mem0 and Zep are memory layers you add to an agent you already have. Letta is a platform where the agent itself runs, with memory built in.
Mem0: a memory layer you add to your agent
Mem0 calls itself "drop-in memory infrastructure for AI agents and apps." You send it conversations, it pulls out memories and updates them, and you search those memories later by user. The core library is open source (Apache-2.0), and there is also a hosted platform. The hosted Hobby plan is free, with 10,000 add requests and 1,000 retrieval requests a month. Starter is $19/mo. Graph memory (entity linking) starts at the $249/mo Pro plan.
Zep: context graphs that track change over time
Zep takes in business data, documents, and conversations and builds a "Context Graph" for each user, account, or domain. Each fact carries a date and is updated when the data changes. Zep is aimed at enterprise teams and offers access policies, audit logs, and BYOC deployment on its Enterprise plan. Billing uses credits. Each ingested Episode costs 1 credit per 350 bytes, and retrieval and storage are not metered. The free plan includes 10,000 credits a month, and Flex is $125/mo for 50,000 credits. Zep's team also publishes Graphiti, an open-source (Apache-2.0) library for building real-time knowledge graphs for agents.
Letta: stateful agents with memory built in
Letta was founded by the creators of MemGPT at UC Berkeley. It is less an add-on and more a place to run stateful agents whose memory changes as they work. The Letta platform is open source (Apache-2.0). There is a hosted web app and CLI with a free plan (up to 3 stateful agents, bring your own API keys) and a $20/mo Pro plan. The Letta API developer plans are usage-based.
Two more to consider
- Supermemory is an MIT-licensed memory and context API. Its hosted free plan includes $5 of credits a month, and Pro is $19/mo.
- Cognee is an open-source (Apache-2.0) memory platform for agents that connects to MCP clients such as Claude Code and Cursor. The hosted free plan includes 1M tokens, and after that it costs $1.00 per 1M tokens.
Which one to pick
- You have an agent and need it to remember users: start with Mem0 or Supermemory. Both are open source with a free hosted plan.
- Facts change over time, or memory should combine business data with chat history: Zep's dated context graphs are built for this. For a self-hosted graph, use Graphiti or Cognee.
- You want the agent and its memory managed together: Letta.
If you only need similarity search over documents, a vector database such as Pinecone, Weaviate, or Chroma may be all you need. See every option in Memory for AI agents.