
Best AI Agent Memory Tools in 2026: 9 Options Compared
Compare the best AI agent memory tools in 2026, including Mem0, Zep, Letta, Cognee, Supermemory, LangMem, Hindsight and Membase, by use case, license and price. Last updated: October 2026 · Membase Team
Only want a hosted API? See Best Memory APIs for AI Agents. Only want memory in Claude Code or Cursor? See Best MCP Memory Servers.
The leading AI agent memory tools in 2026 are Mem0, Membase, Zep (Graphiti), Letta, Cognee, Supermemory, LangMem and Hindsight, with Redis as a common building block underneath. There is no single best tool. The right choice depends on what your agent needs to remember: user preferences, facts that change over time, its own working state, knowledge from documents, or one memory shared across several apps and AI tools.
Disclosure: Membase is our product. We’ve included it where it fits and tried to describe every tool, including ours, with its real trade-offs. Prices were checked on vendor pricing pages and licenses on each project’s GitHub repository in October 2026.
What an agent memory tool actually does
A language model doesn’t remember anything between calls. A memory tool sits outside the model: it decides what is worth keeping from each interaction, stores it, and puts the relevant pieces back into context later.
- Working memory: the current conversation and task state. Example: the last 20 messages.
- Episodic memory: records of past interactions. Example: “Last week the user debugged a payment bug.”
- Semantic memory: facts and preferences. Example: “Prefers TypeScript, works in fintech.”
- Procedural memory: learned rules and behaviour. Example: “Always run tests before committing.”
Most tools differ in how they store and update these: as extracted facts in a vector index, as a time-aware knowledge graph, as memory the agent edits itself, or as evidence-backed records.

The 2026 shortlist at a glance
| Tool | Memory model | License | Self-host | Pricing | Best for |
|---|---|---|---|---|---|
| Mem0 | fact extraction into a vector index; graph memory on paid tiers | Apache 2.0 | yes | Free (10K adds, 1K retrievals a month); 50K/10K with your own LLM key; Custom (contract) | personalization, fastest setup |
| Membase | evidence-centered memory, shared across apps and AI tools | public SDKs, CLI and MCP server; proprietary core engine | yes (local mode) | Free plan; $19 or $69 a month | one memory for your app and your AI tools |
| Zep / Graphiti | temporal knowledge graph | Graphiti is Apache 2.0; Zep Cloud is proprietary | Graphiti only | Free (10K credits); $125; $375; Enterprise | facts that change over time |
| Letta | the agent edits its own memory blocks, plus an archive | Apache 2.0 | yes | free with your own model key (up to 3 stateful agents); Pro and usage-based plans | long-running stateful agents |
| Cognee | knowledge graph plus vectors, built from documents | Apache 2.0 | yes | Free; $1 per 1M tokens; Enterprise (BYOC) | document-heavy, multi-hop questions |
| Supermemory | hosted memory API with data connectors and MCP | MIT (GitHub repo); the hosted API is a paid service | on the Scale plan | Free; $19; $100; $399 | low-ops memory with connectors |
| LangMem | memory modules for LangGraph | MIT | yes | free | teams already on LangGraph |
| Hindsight | four retrieval strategies in parallel, reranked | MIT | yes | free self-hosted; usage-based cloud | self-hosting with strong retrieval |
| Redis Agent Memory Server | fast working memory plus vector search | Apache 2.0 | yes | free to self-host; Redis Cloud is usage-based | a speed layer under another tool |
Best for personalization: Mem0
Mem0 extracts facts from conversations, de-duplicates them and stores them for later search across semantic, keyword and entity signals. It has the largest community in this category and integrations with most agent frameworks.
- Choose it if you want user preferences and recent facts in an existing agent with a few lines of code.
- Watch out for: graph memory sits on the custom contract tier, and the free plan allows 1,000 retrievals a month (10,000 with your own LLM key).
Best for one memory across your app and your AI tools: Membase
Membase keeps the evidence behind each memory, revises facts when new observations arrive, and accumulates evidence across retrieval rounds before an answer is generated. The same memory is reachable from your app through Python and TypeScript SDKs or REST, and from AI tools such as Claude Code, Cursor and Codex through MCP. Memory is organised into separate Memories, so several agents can share it while each one only sees the projects it’s been given.
pip install membase-ai # Python
npm i @membaseai/membase # TypeScript
- Choose it if the memory your agent builds should also be available in the AI tools your users already work in, several agents need to share memory with access scoped per project, you want a published benchmark method you can rerun, or you want a hosted memory API that’s free to start.
- Watch out for: the core engine is proprietary (the SDKs, CLI and MCP server are public), and it’s newer than Mem0 and Zep; 1.0 shipped in December 2026.
Best for facts that change over time: Zep / Graphiti
Zep is built on Graphiti, a knowledge graph in which every fact records when it became true and when it stopped being true. That lets an agent answer “what was true then?” instead of overwriting history.
- Choose it if you track customer state, account history or anything that changes week to week.
- Watch out for: self-hosting Graphiti means running a graph database, and extraction uses extra model calls. HIPAA BAA is available on the Enterprise plan only.
Best for long-running autonomous agents: Letta
Letta (formerly MemGPT) is a full agent runtime. The agent keeps a small core memory in its prompt, edits it with tools, and pages older material in from an archive.
- Choose it if memory management is central to how your agent works and you want every write to be inspectable.
- Watch out for: it’s a framework with its own design choices, not a drop-in memory layer for an agent you already have. Letta’s product has changed quickly in 2026, so check the current docs.
Best for knowledge from documents: Cognee
Cognee turns documents, code and records into a knowledge graph combined with vector search, so an agent can follow connections across several hops.
- Choose it if your memory is mostly documents and the relationships between entities.
- Watch out for: it’s heavier than you need for simple chat memory.
Best for low-ops memory with connectors: Supermemory
Supermemory is a hosted memory API with connectors for sources such as Gmail, Google Drive, Notion and GitHub, plus an MCP endpoint. Its GitHub repository is MIT-licensed.
- Choose it if you want memory and document retrieval without running infrastructure.
- Watch out for: the self-hosted option and SOC 2 / HIPAA support are on the $399/month Scale plan.
Best for LangGraph teams: LangMem
LangMem adds semantic, episodic and procedural memory to LangGraph, including procedural memory that lets an agent refine its own instructions.
- Choose it if you’re already on LangGraph and want to stay inside that ecosystem.
- Watch out for: it adds little outside LangGraph.
Best for self-hosting with strong retrieval: Hindsight
Hindsight, from Vectorize, runs semantic, keyword, entity-graph and time-based retrieval in parallel and reranks the results. It’s MIT-licensed and can be self-hosted with Docker.
- Choose it if you want a fully open-source library and control over your stack.
- Watch out for: it’s newer, with a smaller ecosystem than Mem0 or Zep.
Infrastructure, not memory systems: Redis, pgvector, Qdrant
Vector databases and caches store and retrieve data quickly, but they don’t decide what to remember, resolve contradictions or forget stale facts. They’re best used underneath one of the tools above, or as the base of a memory layer you build yourself. Redis Agent Memory Server is a common choice for this layer.
How to choose
- Share one memory between your app and the AI tools your users already use → Membase
- Add memory to an existing agent with a few lines of code → Mem0 or Membase
- Connect memory to Claude Code, Cursor or Codex through MCP → Membase, Mem0 (OpenMemory) or Supermemory
- Let several agents share memory, with access scoped per project → Membase
- Benchmark memory with a published method you can rerun → Membase
- Try a hosted memory API at no cost → Membase (free plan), or the free tiers of Mem0, Zep and Supermemory
- Track facts that change and know what was true when → Zep / Graphiti
- Manage its own memory over long runs → Letta
- Reason across documents and linked entities → Cognee
- Pull in data from workplace tools with little ops → Supermemory
- Stay inside LangGraph → LangMem
- Self-host everything with open-source code → Hindsight, Cognee, Letta or Graphiti
A note on benchmarks
Most vendors report scores on LoCoMo and LongMemEval, but these numbers are almost always self-reported, use different models and grading setups, and can’t be compared directly. Mem0 reports 92.5% on LoCoMo for its managed platform; Membase reports 93.1% for its core engine; Zep and Mem0 have publicly disputed each other’s LoCoMo results. LoCoMo itself has limits: an independent audit found about 6.4% of its answer key is wrong.
Our advice: shortlist two tools and test them on your own multi-session tasks. Compare task completion, how often the wrong memory comes back, and latency.
Quick links
- Get started with Membase: a free API key for your agents, then $19 or $69 a month for more storage.
- Membase docs: SDKs, MCP setup and API reference.
- Membase on GitHub: Python and TypeScript SDKs, CLI and framework integrations.
- Connect your AI: setup guides for ChatGPT, Claude, Claude Code, Cursor, Codex and Grok.
- Discord: questions and feedback.
- X (@Membase_AI): product updates and new guides.
- Email: support@membase.com
Sources
- Pricing: Mem0 · Zep · Letta · Supermemory · Cognee
- Licenses: Mem0 · Graphiti · Letta · Cognee · Supermemory · Hindsight · LangMem · Redis Agent Memory Server
- Membase research and benchmark method · Membase technical report
- Penfield Labs: LoCoMo answer-key audit