Mem0 vs LangMem (November 2026): Memory Product vs LangGraph Memory Toolkit

3 min read

Mem0 vs LangMem compared (Nov 2026): a memory layer with its own server and cloud vs a LangChain toolkit that saves memories in LangGraph's store. Licenses, stars, how each writes and recalls, Mem0's vendor-run benchmarks, and Hindsight as a third option.

Short answer: Pick LangMem if your agent is a LangGraph app and you want memory tools that store into LangGraph’s own store. Pick Mem0 if you want a memory layer you can run as a library or a server, outside any one framework, and Mem0 publishes benchmark numbers you can check. Both are open source. Hindsight is a serious third option, especially for long histories.

Sources: the Mem0 README and the LangMem README, both read 2026-11-29. Stars, license and last push from the GitHub API on 2026-11-29: Mem0 69,597 stars, Apache-2.0, last push 2026-11-27; LangMem 1,794 stars, MIT, last push 2026-11-16. LangMem’s PyPI release is 0.0.30.

What each one is

Mem0LangMem
Made byMem0 (mem0ai)LangChain (langchain-ai)
FormPython and Node library, self-hosted server (Docker), managed cloudPython library that works with LangGraph
Installpip install mem0ai, npm install mem0aipip install -U langmem
Where memories liveYour vector store (the migration guide mentions Qdrant), via the library or server; or the managed cloudLangGraph’s long-term memory store (InMemoryStore for tests, AsyncPostgresStore for production, per the LangMem README)
LicenseApache 2.0MIT
Works outside LangGraphYes, any app that calls its APIThe tools need LangGraph’s store, so it is built for LangGraph

How each one writes and recalls

Mem0 extracts facts from what you send it and stores them. Its README describes single-pass retrieval: one call, no agent loop, at a top_200 retrieval budget. Your code calls memory.add(messages, user_id=...) and memory.search(query, filters=...), or you run its server and call it over HTTP.

LangMem has two modes, both described in its README:

  • Hot path. The agent gets memory tools (create_manage_memory_tool and create_search_memory_tool) and decides when to save or search, as it chats.
  • Background. A memory manager extracts, consolidates and updates knowledge after the conversation, without the agent calling anything.

LangMem’s intro also mentions prompt refinement to change agent behavior over time.

What the numbers show

Mem0’s README reports these numbers for its own platform (April 2026 algorithm):

BenchmarkMem0 scoreTokens per call
LoCoMo92.57.0K
LongMemEval94.46.8K
BEAM (1M)64.16.7K
BEAM (10M)48.66.9K

Source: Mem0 README, read 2026-11-29. The README says these are Mem0’s own runs, and that they “reflect Mem0’s managed platform, which includes proprietary optimizations not available in the open-source SDK”. Open-source users should expect lower scores.

LangMem’s README has no benchmark numbers. So there is no published accuracy comparison between the two. Do not read the Mem0 numbers as a LangMem score.

Where Hindsight fits

Hindsight is MIT-licensed, with the full server in the open-source release. It has an integration for LangGraph, and it works with 60+ other tools (see the LangMem vs Hindsight page for the head-to-head). Hindsight’s BEAM figures are 73.9 at 1M tokens and 64.1 at 10M, as listed on Mem0’s comparison page, which Mem0 wrote, so treat them as vendor-run. Mem0’s own figures on the same test are 64.1 and 48.6. Check them on your own data before you rely on either.

Hindsight’s limits: it returns more context per retrieval by default, so set max_tokens lower; and it is a separate server to run or buy. If you want memory without a second service, LangMem’s store-based approach is simpler.

Choosing

  • Stay in LangGraph and want a small change: LangMem. Its tools work in create_react_agent with the store you already run.
  • Share memory between apps, or use it outside LangGraph: Mem0. It has a server and a cloud option.
  • Long histories and published BEAM numbers matter most: compare Mem0 and Hindsight on your own tasks; both post long-history numbers.