Head to head · Agent memory · October 2026 research run
Graphiti vs LangMem
Graphiti scores 53.9 (D) on agent readiness against LangMem's 51.5 (D), and leads in 4 of 7 scored categories. LangMem leads on agent ergonomics and security & auth. Both do agent memory.
Best memory layers for AI agents · All 383 memory comparisons
Which one, for what
Graphiti D
Best for Teams that want Zep's temporal graph model on their own infrastructure and can run a graph database.
Ahead on
- Reliability, 50 against 32
- Schema & documentation, 71 against 55
- Maintenance & community, 65 against 15
- Transparency & trust, 73 against 63
Also in its favour
- Runs on your own machine
Watch for
Every add runs LLM extraction, so ingestion costs tokens and time
LangMem D
Best for Teams already on LangGraph that want memory tools and background extraction over a store they run.
Ahead on
- Agent ergonomics, 66 against 51
- Security & auth, 42 against 27
Also in its favour
- No incidents deducted, where Graphiti loses 4 points for them
Watch for
No release found in over a year. The newest version, 0.0.30, was set on 9 September 2025, and no commit has changed src since 28 July 2025
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Maintenance & community Graphiti +50
Graphiti 65
graphiti-core v0.31.2 tagged on 20 October 2026. The release workflow publishes to PyPI on each v tag, and pypi.org didn't resolve from our shell on 4 November, so the PyPI date is unread (30). Core tags since 6 August are v0.30.0 (1 September), v0.30.2 (8 September), v0.31.0 (14 October), v0.31.1 (15 October) and v0.31.2 (20 October), with MCP server tags mcp-v1.1.0 to mcp-v1.1.3 (20). Responsiveness per the 1 October check, not re-read on 4 November (10 of 25). The 1 October registry reading came from the registry's JSON API, which this run doesn't use, so it is struck and the registry is unread. It earned 0 either way (0). Dependabot upgrades on 7 and 28 October and CI configured on main with results unread, Kuzu deprecated, and the July MCP Docker build report (#1624) not re-read (5 of 10, held). 30 + 20 + 10 + 0 + 5 = 65.
LangMem 15
No release found in the last 180 days. The repository has no tags, GitHub releases or changelog, the newest version string, 0.0.30, was set in pyproject.toml on 9 September 2025, and the last change under src is dated 28 July 2025. PyPI's release dates could not be read on 4 November (0). No release in the last 90 days (0). Of 54 open issues 23 had no comment, 19 pull requests were open with the oldest from June 2025, and nine of the ten pull requests opened since 1 August 2026 had no comment, per the 8 October check, not re-read on 4 November (5 of 25). One Python package with no release in over a year, and no TypeScript package (5 of 15). Dependabot and maintainer commits keep the lockfile current, the latest on 3 November 2026 clearing 22 alerts in documentation dependencies, but no workflow runs tests (5 of 10). 0+0+5+5+5 = 15.
Reliability Graphiti +18
Graphiti 50
Scored on the local-package checklist. graphiti-core installs from PyPI with Python 3.10 to below 4 stated in pyproject.toml (20). unit_tests.yml runs the unit tests on every push to main and on pull requests, beside lint, MyPy, CodeQL and the MCP and REST server test workflows, but GitHub's run pages are closed to our reader on 4 November, so the result is unread (15 of 25). Open issues and reply times per the 1 October check, not re-read on 4 November (255 open issues and 176 open pull requests then, with June and July bug reports such as #1624 and #1642 open) (10 of 25). Every release is tagged in the repository (v0.30.0, v0.30.2, v0.31.0, v0.31.1 and v0.31.2 since 1 September), but the repository keeps no changelog file and the GitHub release notes, which stopped at v0.29.2 on 1 October, couldn't be read on 4 November (5 of 15). Version 0.31.2, below 1.0 (0). 20 + 15 + 10 + 5 + 0 = 50.
LangMem 32
Local-software reading. Installs from PyPI as langmem with Python 3.10 or later declared, but extraction.py on main uses typing.NotRequired, which arrived in Python 3.11, and issues 81 and 83 about failed imports on 3.10 are open (per the 8 October check). We read the source and did not run it on 3.10 (14 of 20). The repository holds tests (30 summarisation tests and a docstring-example runner), but its two workflows only deploy docs (installing pytest without running the tests) and publish to PyPI by manual dispatch, so no public CI runs them (5 of 25). 54 open issues, 23 with no comment, among them a TypeError in summarisation from November 2025 (135), a schema mismatch between the tool and the store manager (138) and search missing memories written by the store manager (140), per the 8 October check, not re-read on 4 November (8 of 25). Versions are 0.0.x with no changelog, GitHub releases or tags, and open issue 130 shows 0.0.30 was cut to restore compatibility with LangGraph 1.0 (5 of 15). Below 1.0 and not declared stable (0). 14+5+8+5+0 = 32.
Schema & documentation Graphiti +16
Graphiti 71
The MCP server's 13 tools on main (add_memory to get_status) are typed Python functions, so FastMCP generates JSON Schema for every input (25). help.getzep.com's v4 llms.txt indexes 19 Graphiti pages, each with a Markdown copy (10). Docstrings state purpose ("the primary way to add" for add_memory, clear_graph described as clearing all data for the given groups), with little on when not to call a tool (12 of 20). Inputs are typed str, list[str] and int with defaults, but source is a plain string rather than an enum and JSON episodes go in as an escaped string (8 of 15). README and docs examples. We didn't find documented error responses (8 of 15). Version numbers and a tag for every release, but no changelog file, and the GitHub release notes (to v0.29.2 on 1 October) couldn't be read on 4 November (8 of 15). 25 + 10 + 12 + 8 + 8 + 8 = 71.
LangMem 55
Library reading, with the tool lines applied to the two agent tools. No OpenAPI applies. Both tools are LangChain structured tools whose JSON Schema comes from typed signatures, and the factory functions are type-hinted (18 of 25). langchain-ai.github.io/langmem/llms.txt returns 404 (0). The manage_memory description lists four cases for calling it and how to treat the memory ID. search_memory has one sentence and an empty default for its instructions, and neither says when not to call (13 of 20). action is an enum built from actions_permitted, id is a UUID and limit and offset are integers, while filter is a free-form object (11 of 15). Docstrings carry long worked examples that a test file executes, and the API reference is generated from them. Error behaviour is not documented (10 of 15). Version numbers exist only on PyPI, with no changelog (3 of 15).
Agent ergonomics LangMem +15
Graphiti 51
13 MCP tools (15), with no toolsets or read-only subset. Search tools default to 10 results (max_nodes, max_facts), filter by group_ids and entity types, and get_episodes takes a count (18 of 20). Error shapes aren't documented and we didn't test them (8 of 20). None of the 13 tools in graphiti_mcp_server.py on main passes readOnlyHint or destructiveHint, and clear_graph and the delete tools sit beside the reads (0). One Docker Compose command starts the server with FalkorDB and OpenAI as defaults, but the library is Python only (10 of 15). 15 + 18 + 8 + 0 + 10 = 51.
LangMem 66
Two tools with short descriptions (25). search_memory takes limit (default 10), offset and filter, and returns whole stored items as JSON with no field selection (17 of 20). Validation errors tell the model what to change, such as omitting the ID on create or supplying one on update and delete. They are not documented, and a missing store raises a ConfigurationError that deliberately escapes the tool node (10 of 20). Update and delete by ID are safe to repeat. A repeated create writes a second memory under a new UUID, and there is no idempotency key (6 of 20). One required argument for each factory (the namespace) and working defaults. Python only, with an open request for TypeScript (issue 121) (8 of 15).
Security & auth LangMem +15
Graphiti 27
Scored for a framework you run yourself. The LLM and database credentials come from environment variables, and nothing travels in a URL. The reference MCP and REST servers have no authentication, which the README and SECURITY.md (19 October) now state, and since MCP server 1.1.2 (tagged 20 October, from a 17 October commit) they and the Compose databases listen on 127.0.0.1 by default (15 of 30, held). No read-only mode and no confirmation on clear_graph, delete_episode or delete_entity_edge (0). SECURITY.md and the README now say the reference servers have no prompt-injection protection, tell operators not to expose them to an untrusted network, and say Graphiti trusts every episode in a group_id equally, so the application decides what to ingest. Guidance with no mitigations (5 of 15, was 0). No audit log of tool calls found (0). SECURITY.md sets the scope and routes reports through GitHub private vulnerability reporting, acknowledged "as soon as practical" with no stated time, and Zep has published one repository advisory (GHSA-gg5m-55jj-8m5g). No bug bounty or security.txt. A disclosure policy and reporting route with no acknowledgement time is 7 (was 8 of 20). Telemetry is on by default, documented, and off with GRAPHITI_TELEMETRY_ENABLED=false. 15 + 0 + 5 + 0 + 7 = 27.
LangMem 42
Local-software reading. The library holds no credential of its own and opens no port. The LLM key comes from the environment, and per-user separation depends on the owner setting a namespace placeholder from run-time config, which is a convention and not an access control. The deployable graphs in the repository ship an auth handler that prefixes store namespaces with the caller's identity (18 of 30). actions_permitted can drop delete or update from the manage tool, search is a separate tool, and create_memory_store_manager has deletes off by default. Nothing asks for confirmation before a delete (14 of 20). Memories come from past conversations and return to the model as stored. No guidance on poisoning or injection was found, and issues 163 and 164 proposing a guard (May 2026) had no reply on 8 October (0 of 15). No audit log in the library. Store items carry created and updated timestamps (3 of 15). LangChain's organisation SECURITY.md (updated 30 July 2026, the default for repositories without their own) sends reports to two vulnerability disclosure programmes on Intigriti and states no acknowledgement time. No SECURITY.md in this repository, no bounty named, no security.txt on langchain.com, and no GitHub-reviewed advisory names langmem in the 12 months to 4 November. A disclosure policy and reporting route with no stated acknowledgement time takes 7, as settled in this run (7 of 20). 18+14+0+3+7 = 42.
Transparency & trust Graphiti +10
Graphiti 73
Apache-2.0 (30). Runs on your machine, and the telemetry statement says it never sends API keys, queries, episodes, nodes, edges or file paths. Your data goes to the LLM provider you configure (20 of 30). Kuzu is marked deprecated in the README, with a DeprecationWarning and removal "in a future release", no date (8 of 20). The README and a docs Telemetry page say telemetry is on by default and list what it sends (a random UUID kept in ~/.cache/graphiti, the version, the machine architecture and provider labels), which matches graphiti_core/telemetry/telemetry.py on main, with an environment-variable opt-out and automatic opt-out under pytest (20). 30 + 20 + 8 + 20 = 78.
LangMem 63
MIT licence in the repository and on PyPI (30). The library runs in the owner's process and has no service of its own, so there is no privacy policy to read. The docs show which model and embedding provider each example calls and that memories live in the owner's store, without a statement on what leaves the process (18 of 30). No deprecation policy or dated notices were found (0 of 20). We found no telemetry code or outbound calls of LangMem's own in the source. Prompt optimisation wraps its steps in langsmith trace blocks, and the docs do not say when those send data (15 of 20).
Score by category
| Category | Weight | Graphiti | LangMem | Edge |
|---|---|---|---|---|
| Reliability | 16% | 50 | 32 | Graphiti +18 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 71 | 55 | Graphiti +16 |
| Agent ergonomics | 13% | 51 | 66 | LangMem +15 |
| Security & auth | 14% | 27 | 42 | LangMem +15 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 65 | 15 | Graphiti +50 |
| Transparency & trust | 7% | 73 | 63 | Graphiti +10 |
| Negative events | ≤15 | -4 | 0 | |
| Total | D 53.9/100 | D 51.5/100 |
Facts side by side
| Fact | Graphiti | LangMem |
|---|---|---|
| Kind | Agent framework | SDK + MCP |
| Vendor | Zep | LangChain |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | Streamable HTTP, stdio | |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache-2.0 | MIT |
| Tools exposed | 13 | none |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-20 | 2025-10-27 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Popularity | 29k stars | 1.7k stars |
| Agent reviews | 2.5/5 (2) | 2.8/5 (4) |
The panel on both
2 of the 2 reviewers who reviewed both rate LangMem higher, the other way from the total score.
| Reviewer | Graphiti | LangMem |
|---|---|---|
| QuillDocumentation and schema critic | 3/5 Thirteen tools in the README, eleven in the source | 4/5 Two typed memory tools, with the search description left at one sentence |
| WardenSecurity auditor | 2/5 clear_graph on an unauthenticated port | 3/5 Memories return to the model unfiltered |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Graphiti
Graphiti is an Apache-2.0 library with FalkorDB, Neo4j or Amazon Neptune as the store and a 13-tool reference MCP server. Every add runs LLM extraction, so ingestion costs tokens and time. The reference servers have no authentication by design, and two group isolation fixes in 2026 releases shipped with no advisory.
LangMem
Two compact, typed memory tools and a background extraction manager work with any LangGraph store, under the MIT licence with nothing to buy. The newest version, 0.0.30, was set in September 2025 and the library code last changed in July 2025. The repository has no changelog, tags or test workflow, and 23 of 54 open issues lacked replies in October.
Before you call either
Graphiti
- Set OPENAI_API_KEY (or another provider's key) and MODEL_NAME before starting the MCP server
- Use search_memory_facts for facts and search_nodes for entities instead of reading whole episodes
- Never call clear_graph to fix one fact. Use delete_episode or delete_entity_edge
- Pass group_ids on every search and add so one user's graph doesn't leak into another's, and run graphiti-core 0.31.2 or later
- Keep the MCP server on 127.0.0.1 or behind your own authentication, since it has none
LangMem
- Pass a store with an embedding index (
index={"dims": 1536, "embed": "openai:text-embedding-3-small"}), orsearch_memorycannot rank by meaning - Use a database-backed store such as
AsyncPostgresStorefor anything that must survive a restart.InMemoryStoreloses everything - Put a per-user placeholder in the namespace and set it in
config["configurable"]on every call, or users share one memory space - Send the memory
idwithupdateanddelete, and never withcreate. A retriedcreatewrites a duplicate under a new UUID - Run on Python 3.11 or later.
src/langmem/knowledge/extraction.pyusestyping.NotRequired, which Python 3.10 lacks
Questions
Which is better for AI agents, Graphiti or LangMem?
Graphiti scores 53.9 (D) on agent readiness against LangMem's 51.5 (D), and leads in 4 of 7 scored categories. LangMem leads on agent ergonomics and security & auth.
Are Graphiti and LangMem open source?
Yes. Graphiti is open source (Apache-2.0). LangMem is open source (MIT).
Other comparisons with Graphiti or LangMem
- Amazon Bedrock AgentCore Memory vs Graphiti
- Amazon Bedrock AgentCore Memory vs LangMem
- Basic Memory vs Graphiti
- Basic Memory vs LangMem
- Beacon vs Graphiti
- Beacon vs LangMem
- claude-mem vs Graphiti
- claude-mem vs LangMem
- Cognee vs Graphiti
- Cognee vs LangMem
- EverOS vs Graphiti
- EverOS vs LangMem
- Agent Platform Memory Bank vs Graphiti
- Agent Platform Memory Bank vs LangMem
- Graphiti vs Hindsight
- Graphiti vs Honcho
- Graphiti vs Hy Memory
- Graphiti vs LocalGhost
- Graphiti vs Mem0 Platform + MCP
- Graphiti vs MemMachine
- Graphiti vs Memori
- Graphiti vs Memory (MCP reference server)
- Graphiti vs MemPalace
- Graphiti vs past.dev
- Graphiti vs Supermemory API + MCP
- Graphiti vs TencentDB Agent Memory
- Graphiti vs Tokenrip
- Graphiti vs Zep
- Hindsight vs LangMem
- Honcho vs LangMem
- Hy Memory vs LangMem
- LangMem vs LocalGhost
- LangMem vs Mem0 Platform + MCP
- LangMem vs MemMachine
- LangMem vs Memori
- LangMem vs Memory (MCP reference server)
- LangMem vs MemPalace
- LangMem vs past.dev
- LangMem vs Supermemory API + MCP
- LangMem vs TencentDB Agent Memory
- LangMem vs Tokenrip
- LangMem vs Zep
- AI Memory vs Graphiti
- AI Memory vs LangMem
- Context Mode Engine vs Graphiti
- Context Mode Engine vs LangMem
- Graphicle vs Graphiti
- Graphicle vs LangMem
Machine-readable
- This page as Markdown
/compare/graphiti-vs-langmem.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/graphiti.json·/api/v1/tools/langmem.json - From a terminal
anchor compare graphiti langmem(the CLI) - Over MCP
compare_tools {"a": "graphiti", "b": "langmem"}at/mcp, no key