People who search for a mem0 alternative usually have mem0 running already. It got the prototype working with an SDK call, memories extracted from chat and a free plan. The search starts when the agent heads for production and one specific thing turns out to be missing, and which thing it is decides the tool.
mem0 is the baseline throughout. For memory layers compared side by side on enterprise controls (approval, provenance, access and deployment), see memory layers for enterprise AI agents.
Why do teams look for a mem0 alternative?
Because of a gap that only shows once real users arrive. mem0’s own pages show five of them, and each one points to a different tool:
- The agent has to follow company policy. mem0 extracts and stores memories on its own, and we found no review before an agent uses them. For that, keep a governed rule store next to mem0.
- The open-source build has no graph. mem0’s docs say OSS retrieval “has no graph memory”. Graphiti or Cognee is the place to look.
- Self-hosting costs features. The self-hosted build lacks several Platform features. That points to Letta, Cognee or Graphiti, depending on what you need.
- Facts change. You need to know what was true on a given date as well as what is true now. Look at Zep.
- The bill grows with volume. Retrieval limits on the lower plans and graph memory on Pro push the cost up. That points to a different meter, or to self-hosting.
When none of the five applies, staying on mem0 is usually the cheaper choice.
Reason 1: what if the agent must follow policy a person approves?
Then you need a governed rule store next to mem0, and Trail is built for that job. mem0 can keep the per-user memory.
When agents act on refund limits, approval thresholds or contract terms, automatic extraction is the wrong write path. By default mem0 keeps what it pulled out of the chat rather than the chat itself (in the docs’ words, mem0 “stores extracted memories, not a verbatim transcript”). Corrections are explicit update or delete calls from your application. We found no human review step before an extracted memory is used.
Trail reads Notion, Drive, Slack, SOPs and system records and drafts plain-English rules. A person on your team edits, approves or rejects each draft, and the rule-engine FAQ is explicit that no agent can reach a draft nobody has reviewed. Every rule points to the document, page and line it was drawn from. When a new draft clashes with an approved rule, reviewers see the two side by side with both sources, and the rule that loses “is versioned, not deleted”, so a decision from last quarter can still be explained against the rule in force then. Mistakes caught in live runs come back as drafts for the same review. Agents read the approved set through an MCP server, retrievers for LangChain and LlamaIndex, or REST and GraphQL.
Trail’s pages describe a different job from mem0’s: a product for company rules and policies, with nothing on per-user chat personalisation. Its company-brain post names “a memory SDK such as mem0, Zep or Letta” as the build-it-yourself route. A support bot that should remember each customer keeps a memory library for that, with the policy held in the governed store. Price is the other hurdle: the free plan stops at 100 rules and a single editor, and paid plans begin at $20k a year. The /docs page is still a roadmap placeholder, so there is no public developer documentation to read before a demo.
Human approval for agent rules compares the approval step across more tools.
Reason 2: does mem0 open source have graph memory?
No. The open-source docs say retrieval “boosts on entity overlap alone: it has no graph memory,” and the Platform-vs-OSS page lists graph support as “Removed. OSS previously connected external graph stores (Neo4j, Memgraph, Kuzu, Apache AGE)”.
On the managed Platform, graph memory is built in. The model is light: “When the same entity appears in more than one memory, those memories are linked through that entity.” We found no typed relationship schema. The pricing page lists graph memory on the Pro card while the docs say it is always on, so confirm which plan you need before you budget.
If you want a fuller graph on your own servers, two open-source projects fit.
Graphiti builds temporal context graphs on Neo4j, FalkorDB or Amazon Neptune. You can define entity and edge types up front with Pydantic models or let them emerge, and search combines embeddings, BM25 and graph traversal. The costs fall on ingestion and operations: “each episode involves multiple LLM calls (entity extraction, deduplication, summarization)”, LLMs without Structured Output support “may result in incorrect output schemas and ingestion failures”, telemetry is opt-out, and governance and compliance are listed as “Self-managed”.
Cognee turns text into “entities, relationships, and searchable chunks” and code into a graph of symbols and dependencies, under Apache-2.0. Its catch is the production graph store: using Postgres as one “is currently released as a demo feature. The production-ready version is available as a licensed product.” Its enterprise page also says “SOC 2 is in progress.”
Context graph tools for AI agents covers how the graph tools build and query their graphs.
Reason 3: can you self-host mem0, and what do you give up?
Yes. mem0 runs as a library or as a Docker server with “a dashboard, per-user API keys, and a request audit log.” What you give up is the Platform-only set: the docs name “entity filters v2, custom categories, webhooks, advanced retrieval”, and graph memory and Dream consolidation live on the Platform too.
Quality may differ as well. mem0’s README says its benchmark scores “reflect Mem0’s managed platform, which includes proprietary optimizations not available in the open-source SDK”.
“Self-hosted” means something different at each alternative:
- Letta runs fully local: “All agent state (messages, memory, provider connections) stays on-device, and no Letta account is required.” Memory shared between agents, though, needs Letta Cloud.
- Cognee and Graphiti are open-source cores you operate yourself, with the caveats above.
- Supermemory has a local binary that is free “within its lite license limit” and built for individual developers, but “Its server source is not in the public repository”, and self-hosted deployments for teams sit on the Scale and Enterprise plans.
- LangMem is an MIT Python library with “native integration with LangGraph’s storage layer.” It is pre-1.0, and its default
InMemoryStoreloses memories on restart. - Zep has no supported self-hosted edition today. The old local version, Community Edition, is described in its FAQ as “deprecated and no longer supported”; Enterprise customers can have Zep run inside their own VPC.
| Tool | Context graph | Open source | Deployment | Human approval | Versioning and history | Enterprise sources |
|---|---|---|---|---|---|---|
| Trail | Yes: sources are parsed into entities and named edges (governed_by, supersedes, exempt_when), and rules are stored as nodes Verified | No open-source license found for the platform; its coding CLI, Trail-code, is MIT Verified | Managed, single-tenant (Medium and up) or in your own VPC (Large), with storage pinnable to a region Verified | Yes: proposed rules are edited, approved or rejected by your team, and an unreviewed rule is not reachable by any agent Verified | Rules are versioned against their source; prior versions are retained and visible in the audit log. No rollback or revert described Verified | Notion, Drive, Slack, Gmail, SAP, Salesforce, Snowflake, Jira and Zendesk, plus PDFs and decks Verified |
| Zep | Yes: temporal Context Graphs of entities and time-stamped relationship facts Verified | Zep Cloud is not open source; its graph framework Graphiti is Apache-2.0, and the getzep/zep repo holds examples only Verified | Managed cloud on all plans; your own keys (BYOK) or in your VPC (BYOC) on Enterprise; no supported self-hosted edition Verified | We found no review step for ordinary memories (docs say memory admission is the app's job); optional human review for Agent Skills only, default auto Verified | Facts carry valid_at and invalid_at timestamps for point-in-time queries; compare and restore versions for Agent Skills only Verified | Bulk imports of documents, transcripts, email and Slack exports through zep-ingest (one-time backfills or recurring jobs), plus SDK and Batch API writes; we found no live connectors named Verified |
| Graphiti | Yes: temporal context graph of entities, facts (edges) and episodes Verified | Yes, Apache-2.0 Verified | Self-hosted only, on Neo4j, FalkorDB or Amazon Neptune Verified | Not publicly documented | Facts have validity windows; old facts are invalidated, not deleted, with point-in-time queries; no review or rollback workflow found Verified | Not publicly documented |
| Cognee | Yes: text becomes entities, relationships and searchable chunks in a knowledge graph; code becomes a graph of symbols and dependencies Verified | Apache-2.0 core (topoteretes/cognee); the production Postgres graph store is a licensed product Verified | Self-hosted open source (local, Docker, on-prem), Cognee Cloud (managed), Enterprise BYOC in your VPC Verified | Not publicly documented | Each node carries a version counter and timestamps; conflict review marks outdated facts superseded instead of deleting them; an opt-in provenance ledger records when and from which source each entity was written; no old copies are kept, so rollback means restoring your own export Verified | Standard plan: Slack, Notion, Linear and Google Drive, plus code repo indexing; no SharePoint or ERP connector found Verified |
| Letta | Not publicly documented | Yes, Apache-2.0 (letta-ai/letta-code and letta-ai/letta) Verified | Letta Cloud (default), fully local runtime with no account, or a self-hosted App Server; VPC deployment not found Verified | No approval step for memory: the agent commits its own updates and people can review them afterwards; the agent-review option does not ask you for approval Verified | Every memory edit is committed to the agent's MemFS git repository, giving version history Verified | No document or wiki connectors found; cloud agents integrate with GitHub, and can be run inside Slack as a chat channel. No Notion, Google Drive, SharePoint or ERP connectors found Verified |
| Supermemory | Yes: a knowledge graph of facts linked by update, extend and derive relations Verified | Public repo is MIT; the self-hosted server source is not in the public repo, and the local binary is free within a lite license limit Verified | Managed cloud; self-hosted on Scale and Enterprise; air-gapped or dedicated instance on Enterprise; local binary for individual developers Verified | Partial: optional review queue (approve, decline, undo) for inferred memories, which stay in search until declined; none found for directly stated memories Verified | Updating a memory creates a new version and keeps the original with isLatest=false; history listing; no rollback endpoint found Verified | Google Drive, OneDrive, Notion, Granola (Pro and up), Gmail (Max and up), GitHub, S3, web crawler (Scale and up); no Slack, SharePoint or ERP connector found Verified |
| LangMem | Not publicly documented | Yes, MIT Verified | Self-run Python library with any LangGraph store, such as Postgres; managed through LangSmith Deployment; LangSmith Enterprise offers hybrid or self-hosted in your VPC Verified | Not publicly documented | Not publicly documented | Not publicly documented |
| mem0 | Platform only: links memories that share an entity; removed from the open-source version Verified | Yes, Apache-2.0 (mem0ai/mem0); the open-source version lacks graph memory, Dream and webhooks Verified | Managed Platform; self-hosted open source (library or Docker server); on-prem on the Custom plan: Kubernetes, private cloud or air-gapped Verified | Not publicly documented | Per-memory change history API; Dream keeps superseded and merged memories and records each change; no rollback found. Point in time (Platform only): Temporal Reasoning gives "a ranking boost to memories whose event dates match the time in a search", including "as of March 2025" queries, and `reference_date` can "simulate searching at a specific date and time"; it is "not available in the OSS SDK" and keeps no validity window per fact Verified | Not publicly documented |
A cell marked “not publicly documented” is one where the vendor’s pages were silent on the day we looked. In the review column, most of these tools have the agent or an extractor write, with no review before reads that we could find. Supermemory is a partial exception: inferred memories go to a review queue where they can be approved, declined or undone, though facts a user stated directly skip it.
Mem0 vs Letta: who decides what gets remembered?
In mem0, an extraction step decides. In Letta, the agent decides, and each edit lands as a commit in MemFS, a git repository, so history and conflict resolution come with it. That suits coding agents and assistants meant to improve as they work.
It is a poor fit for memory a person must check first. Letta’s review option has a second agent revise proposed updates, which, in Letta’s words, “does not ask you for approval.” We also found no SOC 2, HIPAA or VPC statement on Letta’s pages.
Reason 4: mem0 vs Zep, which handles changing facts?
Zep, if you need to ask what was true on a past date. Each fact carries valid_at and invalid_at timestamps, which Zep’s docs tie to answering point-in-time queries. A customer who moved to a bigger plan in March, for example, keeps both facts, each with its own window.
mem0 handles change another way. On the Platform, its Dream process supersedes outdated memories and merges duplicates, and “Superseded and merged memories are retained, never erased.” There is also a per-memory change history API. For dates, the Platform’s Temporal Reasoning “gives a ranking boost to memories whose event dates match the time in a search,” including “as of” searches and a reference_date that lets you “Simulate searching at a specific date and time”; the docs say it “is not available in the OSS SDK.” It reorders results rather than keeping a validity window per fact, so a precise answer to “what did we know about this account in February” is still something you would build yourself.
Zep has its own costs. Ordinary memories go in without review, since the docs say “memory admission” is your application’s job. Company documents come in as bulk imports (one-time or scheduled) such as Slack exports, and we found no live connectors. For governance side by side, the enterprise memory comparison has both in one table.
Which mem0 alternative reads company documents?
mem0 takes messages, images and PDFs, and we found no connectors to Notion, Slack or Drive on its pages. Supermemory and Cognee have live connectors, Zep imports exports, and Letta’s cloud agents connect to GitHub and Slack; the enterprise memory comparison linked above sets the connector lists side by side.
Reason 5: is mem0 more expensive than the alternatives?
Not at low volume, but past it you can’t compare on a price list. As of 30 October 2026, mem0 publishes two plans: Free, which covers 50,000 adds and 10,000 retrievals a month on your own LLM key and then bills by usage up to a cap you set, and Custom, priced by agreement. Graph memory and Dream consolidation now sit on Custom, so the features that often prompt a move have no public price.
Zep meters differently: credits are spent per episode you add, and its pricing page says “0 credits for retrieval, storage, threads, users, and graph storage.” Its first paid plan, Flex, is $125 a month, billed monthly in dollars, for 50,000 credits. An agent that reads memory far more often than it writes may cost less there. Self-hosting moves the bill to your own infrastructure and LLM calls, and on Graphiti those calls multiply with every episode ingested.
When is staying on mem0 the right call?
When the job is per-user memory for one product and your gap is something mem0 already sells. It has a free plan, an Apache-2.0 core, Python and JavaScript SDKs, REST, a hosted MCP server and integrations with LangGraph and CrewAI. Its Custom plan adds SLA support, on-prem deployment, audit logs and SSO, and the homepage offers “Kubernetes, private cloud, or air-gapped” setups. If graph memory is your one gap and the managed Platform is acceptable, moving to the Platform is a smaller change than moving vendors.
A support team’s memory audit before leaving mem0
Where they are. The support agent runs on mem0’s open-source Docker server. It remembers each customer’s preferences well. Three problems have come up in a month.
Problem 1: plan changes. A customer upgraded in March, and the agent answered a billing question in April with the old plan’s limits. The team needs to know what was true on a date. That is a temporal problem, so they trial Zep, or Graphiti if the data must stay on their servers.
Problem 2: the refund policy. The agent quoted a refund limit it had picked up from a chat, and the limit was out of date. Nobody approved that memory and it points to no policy. That belongs in a governed rule store, kept apart from customer memory.
Problem 3: graph questions. A manager asked which customers share an integration partner. The OSS build has no graph memory, so the team either moves to the managed Platform or tests Cognee or Graphiti.
What they keep. Customer preferences stay in mem0, owned by the support team. They add a temporal store for account facts and an approved store for policy owned by the people who write it, and they migrate nothing.
Before you migrate off mem0: five checks
- Which gap are you fixing? Name one of the five reasons above. If it is more than one, check whether two tools would serve better than one replacement.
- Can you take your history with you? mem0 has a per-memory history API. Cognee says it can import “memory from Mem0, Letta, Zep, or Graphiti using the COGX exchange format.”
- Is the feature on the plan you will pay for? Graph memory, SSO, audit logs and VPC hosting sit on different tiers at most vendors here.
- Who writes, and who checks? Decide whether the agent, an extractor or a person writes each kind of memory, and whether anyone reviews it before other agents read it.
- Did you replay real traffic? Run a week of real conversations through the candidate next to mem0 and compare answers before switching.
How we chose
We compare tools on what their own public pages say, checked on the dates shown, and label every claim. How we compare tools.
FAQ
Mem0 alternatives for production AI agents?
Pick by the reason you are leaving. If the gap is company policy that a person must sign off before agents act on it, Trail fits, because each rule is approved and cited to its source, and it sits beside a memory library rather than replacing per-user memory. For facts that change over time, look at Zep; for a graph you host yourself, Graphiti or Cognee; for agents that edit their own memory, Letta.
Mem0 vs Zep?
mem0 stores the facts it extracts from conversations under user, agent and run IDs, with an Apache-2.0 core you can self-host and a free plan. Zep stores facts in a temporal Context Graph with valid_at and invalid_at timestamps, links each fact to the episode it came from, documents RBAC, and lists audit logs and SOC 2 Type II on its Enterprise plan. Zep has no supported self-hosted edition, so mem0 is the one to choose if memory must run on your own servers without an enterprise contract.
What is a good mem0 open source alternative?
Graphiti (Apache-2.0) gives you a temporal context graph on Neo4j, FalkorDB or Amazon Neptune. Cognee (Apache-2.0) builds a knowledge graph and runs locally, in Docker or on-prem, and Letta's Apache-2.0 harness runs fully local with git-backed memory. If graph memory is why you are looking, note that mem0's own open-source version no longer has it.
Sources checked
Show 35 sources
- How Mem0 works, checked
- Mem0 Platform vs open source, checked
- Mem0 graph memory, checked
- Mem0 Temporal Reasoning, checked
- Mem0 Dream, checked
- Mem0 open source overview, checked
- Mem0 docs index, checked
- Mem0 README, checked
- Mem0 pricing, checked
- Mem0 homepage, checked
- Natural Language Rule Engine, checked
- Context Graph: how it works, checked
- Pricing: Plans for Governed AI Agents, checked
- What is a company brain?, checked
- Why agent projects stall: retrieval and precedence, checked
- trailhq.com docs placeholder, checked
- Zep docs index (v4), checked
- Zep FAQ, checked
- Zep: adding context, checked
- Zep security and compliance, checked
- Zep pricing, checked
- Graphiti README, checked
- Graphiti MCP server README, checked
- Zep vs Graphiti, checked
- Cognee README, checked
- Cognee pricing, checked
- Cognee for the enterprise, checked
- Letta memory configuration, checked
- Letta docs index, checked
- Letta MemFS, checked
- Supermemory local vs Enterprise, checked
- Supermemory connectors, checked
- Supermemory memory review, checked
- Supermemory pricing, checked
- LangMem README, checked