Letta vs Mem0: Agent Runtime or Memory Layer?

Letta vs Mem0 is not really a fight between two memory libraries. Mem0 is a memory layer you add to the agent you already have. Letta is the agent itself: a stateful runtime that owns its own memory. Pick the wrong shape and you either rebuild your agent around Letta or bolt Mem0 onto a problem it was never meant to solve.
The short version, as of November 2026:
- Pick Mem0 if you already have an agent, in any framework, and you want it to remember users and facts across sessions with a few API calls.
- Pick Letta if you want the agent, its memory, its skills and its schedules managed in one place, and you're happy to build on Letta's harness and its TypeScript SDK.
- Both have changed a lot this year. Letta retired its old V1 API server and moved to Letta Code. Mem0 shipped a new memory algorithm and removed graph memory from its open-source SDK.
Everything below comes from each vendor's own docs, README, pricing page and blog, checked on November 20, 2026.
Quick Comparison
| Letta | Mem0 | |
|---|---|---|
| What it is | A stateful agent harness and runtime (formerly MemGPT) | "The Memory Layer for AI Agents" |
| Where memory lives | Inside the agent, as git-tracked files (MemFS) | In a separate store your agent calls |
| Who decides what to remember | The agent edits its own memory, plus background "dreaming" | Mem0 extracts facts from conversations you send it |
| Main code today | Letta Code (the old V1 server is retired) | Mem0 SDK, v3 algorithm |
| Licence | Apache-2.0 | Apache-2.0 |
| Languages | Agent SDK for JavaScript and TypeScript; CLI via npm or pip | Python and Node.js SDKs, plus a CLI |
| Hosted option | Letta Cloud | Mem0 Platform |
| Self-hosting | Letta App Server on your own machine | Library inside your app, or a self-hosted server |
| Graph memory | Not the model; memory is files and blocks | Platform only since v3 |
| Billing | Plans with agent limits, plus usage for hosted models | Monthly add and retrieval requests on a Free plan, Custom above that |
The Core Difference: A Harness vs a Plug-In
The two companies disagree about where memory belongs, and they say so in public.
Letta's co-founder Sarah Wooders made Letta's case in an April 2026 post titled Why Memory Isn't a Plugin. The argument: retrieval over past sessions can be an add-on, but real memory depends on harness decisions an outside plugin can't see, such as what survives context compaction and whether the agent may rewrite its own instructions. Her line: "Managing context, and therefore memory, is a core capability and responsibility of the agent harness."
Mem0 takes the opposite bet. Its GitHub README calls it "The Memory Layer for AI Agents," and its homepage pitches drop-in memory infrastructure. You keep your agent framework, model and prompts. Mem0 sits beside them and answers one question: what does this agent already know about this user?
In practice:
| Your situation | Better fit |
|---|---|
| You have a LangGraph, CrewAI or custom agent and want it to remember users | Mem0 |
| You want an agent that rewrites its own instructions and skills over time | Letta |
| You need memory in many separate apps that share one user profile | Mem0 |
| You want a coding agent or assistant that runs on a schedule and learns | Letta |
| You want to keep your current agent code almost unchanged | Mem0 |
If you're new to how these layers fit together, our explainer on AI agent memory covers context windows, saved files and memory stores.
How Each One Remembers
Letta: the agent edits its own files
Letta's current product is Letta Code, which its README describes as "a stateful agent harness for creating agents that are more like people than tools." Memory works like this:
- MemFS. Letta's memory docs call it "a git-backed memory filesystem." Memory blocks and other context live as files tracked in git, and you can sync them to your own GitHub repository.
- Self-editing. The agent updates memory when it learns something durable, and it can rewrite its own system prompt (through memory blocks) and skills.
- Dreaming. Background subagents review recent conversations and consolidate lessons into memory. You turn it on with
/sleeptimein the CLI. It can run after a set number of steps or when the context window is compacted. - Upkeep. Letta Code 0.33.0 added a background worker for memory upkeep, per its changelog.
The upside is that memory is readable. You can open the files, diff them and roll them back like code. The cost is that you adopt Letta's whole harness to get it.
Mem0: extract facts, add them, retrieve them
Mem0 works on conversations you pass it. The README describes an April 2026 algorithm:
- Single-pass, add-only extraction. One LLM call pulls facts out of a conversation. There's no UPDATE or DELETE step any more. When information changes, the new fact is stored next to the old one.
- Entity linking across memories.
- Hybrid retrieval that mixes semantic search, BM25 keyword matching and entity matching, with time-aware ranking for current state, past events and upcoming plans.
Your agent calls add() after a conversation and search() before the next reply. Everything else about the agent stays yours.
About the benchmark numbers. Mem0's README reports scores on LoCoMo and LongMemEval for the new algorithm. Those are Mem0's own results, and the README says they "reflect Mem0's managed platform," which has optimizations the open-source SDK lacks. Mem0 has open-sourced the evaluation framework so you can rerun it. Treat the numbers as a vendor claim and test on your own conversations.
Open Source and Self-Hosting
Both projects are Apache-2.0. What you actually run when you self-host is very different.
Letta: Letta Code and the App Server
The original letta-ai/letta repository now says "The current source code lives in" Letta Code, and that "The archive branch contains the retired Letta V1 API server." Old tags stay up for reproducibility. Letta's docs label the old client libraries "V1 SDK (legacy)."
This followed a March 2026 post, "Letta's Next Phase," which refocused the company on Letta Code and sunset a set of server-side features: Letta Filesystem, legacy memory tools, templates, identities, server-side MCP integrations, server-side sleep-time agents and tool rules. If you built on any of those, budget for a migration.
To self-host today, Letta's self-hosting docs describe two modes:
- Local runtime. The CLI runs agents in-process, and no Letta account is needed.
- App Server. Run agents on an always-on machine you control. It needs Node.js 22.19 or later, stores agent state as local files (memory repos included), and can be deployed with Docker Compose or any container platform.
Two details to plan for: the docs say self-hosted agents "are not automatically backed up," and the App Server has shell and filesystem access on its host.
Mem0: library or server, minus graph memory
Mem0 open source runs two ways: as a library you install with pip install mem0ai or npm install mem0ai, or as a self-hosted server you start with Docker Compose, which comes with a browser setup flow.
The catch is in the v2 to v3 migration guide: "Graph memory is removed from the open-source SDK." The guide says graph memory "is now a Mem0 Platform feature," and that the open-source SDK has no replacement. The enable_graph flag, the graph_store config and the relations field on search results are gone. Mem0's pricing page lists graph memory under its Custom plan.
The same guide lists other breaking changes worth testing before you upgrade:
- User, agent and run IDs must go inside a
filtersobject forsearch()andget_all(). - The default number of results dropped from 100 to 20, a similarity threshold of 0.1 now applies, and reranking is off by default.
- Scores are computed differently, so any hard-coded threshold needs retuning.
Our Mem0 vs Zep comparison goes deeper on self-hosting if graph-style memory is the reason you're shopping.
| Letta self-hosted | Mem0 self-hosted | |
|---|---|---|
| What you run | The whole agent runtime | A memory service your agent calls |
| Stack | Node.js App Server, local files | Python or Node library, or a Docker server |
| Graph features | Not part of the design | Removed from open source in v3 |
| Backups | Manual | Depends on the store you configure |
| Effort | Moderate: you're operating agents | Low to moderate: you're operating a store |
SDKs, Hosting and Integrations
Letta ships a CLI (install with npm, or with uv or pipx), a web app at chat.letta.com, and messaging channels for Slack, Telegram and Discord. For your own product, the Letta Agent SDK, announced in August 2026, lets you "create an agent once, then resume it from anywhere." It targets JavaScript and TypeScript projects. The same SDK reaches three backends: Letta Cloud, a local backend with no account, or your own App Server.
With Letta Cloud, the docs say "The sandbox is where the agent's tools run, while its memory and conversation state remain hosted in Letta Cloud." Cloud agents can connect to GitHub and Slack and run on schedules. You bring your own model keys with /connect, or use Letta-hosted models.
Mem0 covers more languages at the memory layer: Python and Node.js SDKs, a CLI, guides for LangGraph and CrewAI, and agent skills for Claude Code, Codex and Cursor. The hosted Mem0 Platform runs the same API, and its homepage lists Kubernetes, private cloud and air-gapped deployment for larger customers.
On compliance, Mem0's homepage says it is "SOC 2 (Type 1), HIPAA, and GDPR compliant." That's Mem0's own claim, backed by its Trust Center. Letta's pricing page lists SSO and role-based access control on its Enterprise plan.
Python-first teams, note this: Letta's CLI installs through pip, but its Agent SDK docs only cover JavaScript and TypeScript. Mem0 is native in both.
Pricing Models
Both bill differently enough that you should price a real workload, not a single call.
Letta sells plans for individuals and teams, plus Enterprise. Its pricing page caps how many stateful agents you keep on each plan (the Free plan is limited to 3 at the time of writing) and how much storage each memory repository gets. Model calls on Letta-hosted models spend credits based on the model's API pricing, server-side tools are billed for CPU time, and bringing your own API keys is available on every plan.
Mem0 has two plans on its pricing page: Free and Custom. Free meters add requests and retrieval requests each month. Mem0 covers model calls for the first 30 days, after which you plug in your own LLM key, and doing so raises the monthly limits. Custom adds graph memory, on-prem deployment, SSO, audit logs and an SLA, with pricing set by agreement.
What this means in practice:
- Letta's bill follows agents and model usage. A few long-lived agents doing a lot of thinking cost more than many quiet ones.
- Mem0's bill follows memory traffic. Every conversation you store and every lookup counts, whatever model or framework you use.
Letta vs Mem0: Which Should You Pick
Choose Mem0 if:
- You already have an agent and don't want to rewrite it.
- Your team writes Python, or uses several languages.
- You need user memory shared across several apps or agents.
- You want to start hosted and keep the option to self-host a plain memory service later.
Choose Letta if:
- You want the agent, its memory, skills, subagents and schedules in one runtime.
- You value memory you can read, diff and version in git.
- You're building a long-running assistant or coding agent that should improve as it works.
- Your stack is TypeScript, or you're happy to drive agents from the CLI and web app.
Think twice about using both. You can call a memory API from almost any agent, but Letta already manages its own memory. Adding Mem0 on top gives you two systems deciding what the agent knows.
If neither fits, our guides to Letta alternatives and Mem0 alternatives cover the wider field, from Zep and Cognee to the memory built into the Claude and OpenAI agent tools.
Where Taku Fits
Letta and Mem0 are for people building agents. If what you actually want is an AI tool that already works, without wiring up memory yourself, that's where Taku comes in. Taku Apps and Sites, built by the best AI minds. Find one, run it, and keep it in your Mac Dock. Taku is in Beta, and the Mac app is available now.
Key Points
- Mem0 is a memory layer you add to any agent. Letta is a stateful agent runtime with memory built in.
- Letta (formerly MemGPT) retired its V1 API server. Current work lives in Letta Code, which is Apache-2.0.
- Letta stores memory as git-tracked files the agent edits itself, with background "dreaming" to consolidate.
- Mem0's April 2026 algorithm is add-only with hybrid retrieval. Graph memory left the open-source SDK in v3 and is now a Platform feature.
- Letta's Agent SDK targets JavaScript and TypeScript. Mem0 has Python and Node.js SDKs.
- Benchmark scores on both sides are vendor claims. Test with your own conversations.
FAQ
Is Letta the same as MemGPT?
Yes. Letta's repository describes the project as formerly known as MemGPT. The company has since moved its active development from the original server to Letta Code.
What is the main difference between Letta and Mem0?
Scope. Mem0 stores and retrieves memories for an agent you already run. Letta is the agent runtime, and memory is one part of it.
Is Letta open source? Is Mem0?
Both are Apache-2.0. Letta Code and the archived Letta repository are on GitHub. Mem0's SDK and self-hosted server are in the mem0ai/mem0 repository, though graph memory is no longer part of the open-source SDK.
Does Mem0 still have graph memory?
On the Mem0 Platform, yes. The v3 migration guide removed graph memory from the open-source SDK, and the pricing page lists it under the Custom plan.
Can I self-host Letta?
Yes. Run agents locally with the CLI, or run the Letta App Server on a machine you control. Self-hosted agents aren't backed up automatically, so plan your own backups of the state directory.
Which is better for a Python project?
Mem0, in most cases. It has a native Python SDK. Letta's CLI installs with pip, but its Agent SDK documentation covers JavaScript and TypeScript.
Can I use Mem0 with Letta?
Technically you could call any memory API from a Letta agent. But Letta already manages memory itself, so most teams pick one system rather than running both.