Graphiti and mem0 both get called “agent memory”, and both are Apache-2.0 on GitHub, yet they keep different records. Graphiti builds a graph of entities and facts and remembers when each fact stopped being true. mem0 pulls short memories out of conversations and files them under a user, an agent or a run. Most of the choice follows from that difference, and the rest comes down to how much infrastructure you are willing to run.

We took both projects’ facts from their own repositories, documentation and price lists, read on 30 October 2026 (mem0’s date-aware search re-read on 31 October).

What does each one store when an agent talks to it?

Graphiti stores episodes, the entities and relationships extracted from them, and a validity window on every fact. mem0 stores the memories it extracts from messages, tagged with IDs you choose.

In Graphiti, you send text or JSON as an episode. An LLM extracts entities and edges, and the README says “Facts have validity windows”: when information changes, the old fact is marked invalid and kept rather than deleted. Every entity and relationship “traces back to the episodes (raw data) that produced it”, so you can walk from a derived fact to the message or record that produced it. The graph lives in a database you bring: “Neo4j, FalkorDB, or Amazon Neptune”. Install is pip install graphiti-core.

mem0’s how-it-works page says: “You send Mem0 messages. By default, Mem0 stores extracted memories, not a verbatim transcript.” You “Scope memory by user_id, agent_id, run_id, and metadata”, and the automatic path is additive, so new extractions pile up until your code calls update or delete. Retrieval fuses “semantic, BM25 keyword, and entity matching” in parallel.

In practice, Graphiti keeps something closer to a record of events, while mem0 keeps a running list of what it decided was worth remembering about someone.

Which one answers “what was true last month?”

Graphiti does, by design. mem0’s Platform can rank memories by the date they describe, but it keeps no validity window per fact, and the open-source SDK lacks even the date ranking.

Graphiti’s README says you can “Query what’s true now, or what was true at any point in time.” Because a changed fact is invalidated rather than removed, a question such as “which plan was this customer on before the upgrade?” has an answer in the graph itself.

mem0 handles change differently. Its Dream feature on the Platform supersedes outdated memories and merges duplicates, and the docs say “Superseded and merged memories are retained, never erased.” There is also a history endpoint to “Retrieve the full change history of a specific memory to track how it has evolved over time.” That gives you an audit of one memory.

For questions about dates, the Platform adds Temporal Reasoning, which “gives a ranking boost to memories whose event dates match the time in a search.” A query can say “as of March 2025” or “last week”, and a reference_date parameter lets you “Simulate searching at a specific date and time.” The docs say the results are “reordered using the temporal boost” and that the feature “is not available in the OSS SDK.” Unlike Graphiti, mem0 keeps no validity window on a memory that we could find, and no step that marks an older memory invalid when a newer one replaces it. So on the Platform an “as of” question puts memories dated around that time first, and on self-hosted mem0 the past-date picture is code you would write against the history API.

Does mem0 graph memory match Graphiti’s graph?

No. mem0’s graph memory links memories that mention the same entity, it runs only on the managed Platform, and the open-source SDK no longer has it.

The Platform docs describe the model: “When the same entity appears in more than one memory, those memories are linked through that entity.” They add that “Graph Memory is built in. There is no Neo4j, Memgraph, or other graph store to deploy”. That is convenient, and mem0 is clear about the limit: “It does not assign typed, labeled relationships between entities.” The pricing page lists “Graph memory (entity linking)” under the Custom plan, while the graph memory docs say it “is always on”, so ask mem0 which applies to your account.

On the open-source side, the how-it-works page says OSS retrieval “boosts on entity overlap alone: it has no graph memory,” and the Platform-vs-OSS page records graph stores as “Removed. OSS previously connected external graph stores (Neo4j, Memgraph, Kuzu, Apache AGE)”.

Graphiti’s graph is the whole product. You can “Define entity and edge types upfront via Pydantic models (prescribed), or let structure emerge from your data (learned)”, and search combines “vector similarity, BM25 full-text, and graph traversal into a single ranked answer, with no LLM-in-the-loop reranking.”

If you have a self-hosted mem0 and graph memory is the missing piece, the Graphiti alternatives page covers other self-hosted graph builders, and mem0 alternatives for production agents covers whether open-source mem0 has graph memory, among the other reasons teams move.

Graphiti and mem0 side by side

Graphiti against mem0 on storage, change history, graph, provenance, hosting, access and compliance (project pages, 30 to 31 Oct 2026)
PointGraphitimem0
What it keepsEpisodes, entities and facts in a temporal graphMemories extracted from messages, scoped by user, agent and run
Change over timeFacts invalidated, not deleted; point-in-time queriesDream supersedes and merges on the Platform; per-memory history API; date-ranked “as of” search on the Platform only, with no validity window per fact
GraphThe core of the product; prescribed or learned ontologyEntity linking on the Platform only; removed from open source
Link back to sourceEvery entity and relationship traces to its episodesDream pattern memories link to source memories; no link to the original message found
HostingSelf-hosted only; the managed form is ZepManaged Platform, open-source library or Docker server, on-prem on Custom
Access controlYours to build; reference servers do not authenticate callersPer-user API keys on the self-hosted server; org and project roles on the Platform
Compliance statedSelf-managedSOC 2 Type 1, HIPAA, GDPR
Human review before a memory is usedNone foundNone found

“None found” means the vendor’s pages said nothing about it on the day we checked, so treat each one as a question for the vendor.

What does running each in production involve?

With Graphiti you operate a graph database, an LLM pipeline and your own API layer. With mem0 you can hand all of that to the Platform, or run its Docker server, which ships with more of the surrounding pieces.

Graphiti’s README: “Choose Graphiti if you are building temporal context graphs into your own system and will operate the graph database, retrieval, and surrounding service yourself.” Three costs follow from that.

  • LLM calls per write. The MCP server README warns that “each episode involves multiple LLM calls (entity extraction, deduplication, summarization)”, so the number of concurrent LLM requests will be “several times higher” than the number of episodes you process at once. The README also recommends LLM services that support Structured Output (it names OpenAI, Anthropic and Gemini), and warns that other services may produce incorrect schemas and ingestion failures.
  • Auth and tenancy. The bundled MCP and REST servers are reference code: “These servers are not production deployments.” The README adds that they “do not authenticate callers”, which leaves every group_id open to reads, edits and deletes from whoever can reach the server. For production, “Your service must supply authentication, authorization, tenant isolation, and input controls.”
  • Telemetry. Anonymous usage statistics are collected by default, and “Telemetry is opt-out and can be disabled at any time.”

mem0’s self-hosted server runs as a Docker stack and ships with a dashboard, an API key for each user and a log of requests. The trade is features: graph memory, Dream and webhooks sit on the Platform. mem0’s README also says its benchmark scores reflect the managed Platform, “which includes proprietary optimizations not available in the open-source SDK”, and tells open-source users to expect “directionally similar gains but not identical numbers.” On compliance, mem0’s homepage states “SOC 2 (Type 1), HIPAA, and GDPR”; Graphiti lists compliance as “Self-managed”, which means whatever your own environment holds.

How do the costs compare?

Graphiti costs nothing as software, and you pay for the graph database and the model calls each episode triggers. mem0’s free plan covers modest volume, and anything past it is usage billing or a quoted Custom plan.

As of 30 October 2026, mem0’s pricing page shows “Free and custom plans”, and the older Starter, Growth and Pro plans “are no longer sold to new accounts,” so a $19 or $249 mem0 plan quoted elsewhere is out of date. mem0’s cost tracks adds and retrievals, metered past the free allowance “with a monthly cap you set”, while Graphiti’s tracks your own database and model bill. The free allowance in numbers is in mem0 vs Zep vs Supermemory.

Graphiti’s bill depends on your setup: the database you host and the extraction, deduplication and summarisation calls on every episode. If you want the same engine without running it, Zep’s first paid plan, Flex, is “$125 / month billed monthly” in US dollars for 50,000 credits.

Where does Zep come into a Graphiti vs mem0 choice?

When you want Graphiti’s temporal graph without operating it. Zep runs Context Graphs on Graphiti as a managed service, and the comparison table in Graphiti’s README puts Graphiti’s deployment at “Self-hosted only” against Zep’s “Fully managed or in your cloud (BYOC)”.

Zep’s self-hosted Community Edition is “deprecated and no longer supported,” per its FAQ, so self-hosting the same graph model means Graphiti itself. How Graphiti and Zep differ, and what you rebuild when you leave Zep Cloud, is covered in open-source Zep alternatives.

Where company rules fit next to either library

Neither project describes a person approving a memory before an agent reads it. For per-user facts that is usually fine. It matters when the “memory” is company policy: a refund ceiling, an approval threshold, a clause in a supplier agreement.

Trail is built for that narrower case. Its rule-engine FAQ says agents read approved rules only and that “an unreviewed proposal is not reachable by any agent”, and its llms.txt says “Every rule an agent receives carries the document, page and line it came from.” It is a product for company rules and policies, not a per-user memory store, so a team using Graphiti or mem0 for customer context would add it beside them, not swap. Context graph tools for AI agents compares the graph products that do take that role.

Two memory designs for a veterinary clinic’s front-desk agent

Illustrative example written for this page: a veterinary clinic's booking and reminders agent, sketched once on mem0 and once on Graphiti. It is not a real message or a real user's result.

The agent. It books appointments, sends reminders and answers owners’ questions between visits. The clinic has about 2,000 active pets.

What it must remember. Two kinds of things. Preferences: Mrs Okafor wants reminders by text, never before 9am, and her dog Biscuit is nervous with new staff. Changing facts: Biscuit’s thyroid dose went from 0.2 mg to 0.3 mg in May, and the vet asked in June which dose he was on when his April bloodwork came back.

On mem0. The preferences fit well. Each owner gets a user_id, the agent adds conversations, and “prefers text reminders after 9am” comes back on the next booking. The dose change also lands, but as one memory updated or superseded by another. Answering “what dose on 12 April?” means reading that memory’s change history and working out which version was current then.

On Graphiti. The dose is a fact with a validity window. The May change invalidates the 0.2 mg fact without deleting it, so the April question is a point-in-time query, and the answer traces back to the episode, the vet’s note, that set it. The cost is everything around it: the clinic’s developer runs Neo4j, budgets several LLM calls per note ingested, and puts authentication in front of the server before staff tools can reach it.

What they chose. mem0 for owner preferences, and Graphiti only for the medical timeline, where “what was true on that date” is a question the vets actually ask.

An afternoon test before you commit

Use a sample of your own data for this, since demo sets rarely contain facts that change:

  1. Pick 20 real conversations or records where at least five contain a fact that later changed.
  2. Load them into both. Graphiti as episodes into a local Neo4j or FalkorDB; mem0 through the SDK with one user_id per person.
  3. Ask three kinds of question: a current preference, the current value of a changed fact, and the value of that fact on an earlier date.
  4. Count the model calls each one made during ingestion, from your provider’s usage log.
  5. Trace one answer back to its source. In Graphiti, follow the fact to its episode; in mem0, check what the memory links to.
  6. Write down what you would still have to build: auth, tenant isolation and an API for Graphiti; for mem0, whatever the plan you would pay for leaves out.

If step 3’s third question never matters to your agent, mem0 is likely the shorter path. If it matters, test it on mem0’s Platform with reference_date set to the earlier date and see whether the date-ranked results answer it on your data; if they don’t and you cannot run a graph database, compare Zep, or read Letta vs mem0 if the open question is who should decide what gets remembered.

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

Graphiti vs mem0

Graphiti is an Apache-2.0 Python framework that builds a temporal graph of entities and facts, keeps each fact's validity window and traces it to the episode it came from; you run the graph database and the service around it. mem0 pulls short memories out of messages and tags each with a user, agent or run ID; it ships as an Apache-2.0 SDK and as a managed Platform. Choose Graphiti for questions about how facts changed over time, and mem0 for per-user recall with less to operate.

mem0 vs Graphiti for point-in-time questions?

Graphiti answers them from the graph itself: each fact has a validity window, and a changed fact is invalidated rather than deleted, so a question about an earlier date gets the value that held then. mem0's Platform has Temporal Reasoning, which boosts memories whose event dates match an "as of" search or a reference_date, but it reorders results rather than storing a validity window per fact, and it is not in the open-source SDK. On self-hosted mem0, a past-date answer is code you write against the history API.

Graphiti or mem0: which is easier to self-host?

mem0, for most teams. Its open-source server runs as a Docker stack with a dashboard, per-user API keys and a request log, though graph memory and Dream stay on the Platform. Graphiti needs a graph database you run (Neo4j, FalkorDB or Amazon Neptune), several LLM calls per episode, and your own authentication, since its reference servers do not authenticate callers.

Sources checked

Show 21 sources