Comparisons

LangMem review
LangMem is a well-designed memory toolkit for LangGraph agents: 3.5/5 inside the LangGraph stack, 2.5/5 as a standalone memory layer, with no PyPI release since October 2025.
Last updated December 2026
LangMem is a thoughtful open-source library for adding long-term memory to LangGraph agents: we rate it 3.5/5 for teams already building on LangGraph, and 2.5/5 as a standalone production memory layer, because it is a toolkit you assemble rather than a service, and its last release on PyPI, version 0.0.30, shipped on 27 October 2025. It is MIT licensed, has about 1,700 GitHub stars, and costs nothing beyond the LLM calls, embeddings and storage you run it on.
This review is based on LangMem’s GitHub repository, documentation site, conceptual guide and PyPI release history, all read on 3 December 2026. It is not a hands-on benchmark. We make Exabase, which takes a different approach to agent memory; Exabase appears once, near the end, and the rest of the page is a neutral assessment.
Verdict
3.5/5 as a memory toolkit for LangGraph. LangMem gives a LangGraph agent two ways to remember, tools it calls during a conversation and a background manager that extracts and consolidates memories afterwards, and it adds a prompt optimiser that learns from feedback. Its conceptual model of semantic, episodic and procedural memory is one of the clearest in the field.
2.5/5 as a standalone memory layer. Outside LangGraph, LangMem’s core API works with any storage, but you supply the database, the embeddings, the model, the scheduling and the operations. The release history has been quiet for more than a year, so teams should check recent commits and open issues before relying on it for a new production system.
LangMem at a glance
Attribute | LangMem |
|---|---|
What it is | Python library for agent memory and prompt optimisation, from LangChain |
Licence | MIT |
Latest release | 0.0.30 on PyPI, 27 October 2025 |
Memory types | Semantic (collections and profiles), episodic, procedural |
Formation | Hot path tools during a conversation; background memory manager afterwards |
Key APIs | create_manage_memory_tool, create_search_memory_tool, create_memory_manager, create_memory_store_manager, create_prompt_optimizer |
Storage | LangGraph BaseStore (InMemoryStore for tests, AsyncPostgresStore for production), or any store through the core API |
Models | Any LLM and embedding provider supported by LangChain |
Hosting | Self-run; LangGraph Platform deployments include the long-term memory store |
Best for | LangGraph teams that want memory primitives they can shape |
What LangMem does well
A clear model of memory types
LangMem’s conceptual guide separates semantic memory, facts stored either as a searchable collection or as a single user profile updated in place, from episodic memory, which records a past interaction as observation, reasoning, action and result, and from procedural memory, the agent’s own instructions refined through feedback. That framing helps teams decide what to store before they write code, and it maps well onto how the research literature describes memory. Our post on episodic vs semantic memory for AI agents goes further into the distinction.
Hot path and background formation
LangMem supports both ways memory forms in practice. In the hot path, the agent calls create_manage_memory_tool and create_search_memory_tool during a conversation, so it can save a preference the moment a user states it. In the background, a memory manager processes a conversation after it ends or after a period of inactivity, which adds no latency to the reply and gives the extractor the whole exchange to work with. Most production designs want both, and LangMem lets you mix them per memory type.
Prompt optimisation as memory
The prompt optimiser treats an agent’s system prompt as something that can learn. Given conversations and feedback, create_prompt_optimizer proposes revised instructions, with options such as a metaprompt strategy and a cap on reflection steps. Few memory tools address procedural memory at all, and for agents whose behaviour should improve from user corrections this is a useful idea.
Namespaces for scoping
Memories live in hierarchical namespaces such as an organisation, a user and an application, filled from runtime configuration. That gives you per-user or per-tenant scoping without a separate system, and it fits the way LangGraph passes configuration through a graph. Isolation is logical, so the namespace must be set correctly on every call; see memory isolation for what that implies.
Free and framework-native
There is no LangMem service to pay for. If you already run LangGraph with a Postgres-backed store, adding LangMem is a dependency and some configuration, and LangGraph Platform deployments include the long-term memory store by default.
Being a library inside your agent framework also means you can read every extraction prompt and change it. That matters when memory has to follow domain rules, such as never storing health details or keeping billing facts per account rather than per user. Hosted memory services rarely expose that level of control, and for regulated teams it can outweigh the extra engineering.
Where LangMem falls short
You assemble the system
LangMem provides primitives. You choose and run the store, configure an embedding model, pick the LLM that performs extraction, decide when background processing runs, and monitor all of it. Every extraction and consolidation pass is an LLM call you pay for. For a small team without LangGraph in place, that is a lot of infrastructure for one capability.
Conflict handling is up to your prompts
The conceptual guide is candid that collections must reconcile new information with old by deleting, invalidating, updating or consolidating, and that over-extraction hurts precision while under-extraction hurts recall. LangMem’s memory manager can update and remove memories, but how well it handles a user who changes city or plan depends on your instructions, your schema and the model you choose. There is no built-in engine for contradiction resolution or entity resolution beyond what the LLM does in each pass.
Retrieval is store-dependent
Search runs through LangGraph’s BaseStore, which supports semantic search and metadata filters. LangMem describes relevance as combining similarity, importance and a strength signal for recency and frequency, but in practice retrieval quality depends on the store and embeddings you run, and there is no hybrid keyword search, query expansion or reranking layer beyond what you add. Read our glossary entries on recency weighting and importance scoring for the ideas involved.
Release cadence has slowed
LangMem shipped 0.0.25 to 0.0.30 between April and October 2025, and PyPI shows no release since. The repository has open issues and pull requests, and the version number has not reached 1.0. That does not mean the code stops working, but it does mean API stability and future fixes are less certain than with an actively released product, so pin versions and read the changelog before upgrading LangGraph.
No published benchmarks
LangMem does not publish results on memory benchmarks such as LongMemEval or BEAM. Because quality depends so much on configuration, you will need your own evaluation set to know how it performs on your conversations.
What changed recently
LangMem’s last six releases arrived between April and October 2025, adding refinements to the memory managers, tools and prompt optimiser. Since then the visible change has been in the surrounding LangChain ecosystem rather than in LangMem itself. LangGraph’s long-term memory store remains the integration point, and LangChain continues to document LangMem as its memory library.
For teams evaluating it now, the practical question is less about features and more about ownership. If LangMem fits your design, you can vendor or fork the MIT-licensed code and maintain it yourself, which many teams already do for framework utilities. If you want memory to be someone else’s maintained product, the slower cadence points towards a managed option.
Pricing
LangMem itself is free under the MIT licence. Your costs are the model calls that extraction, consolidation and prompt optimisation make, the embeddings for semantic search, and the database behind the store. Hosting on LangGraph Platform is priced by LangChain separately, and its pricing does not list LangMem as its own line item.
Component | Cost |
|---|---|
LangMem library | Free (MIT) |
Extraction and consolidation | Your LLM provider’s token prices, per background or hot path call |
Embeddings | Your embedding provider’s prices |
Storage | Your Postgres or other BaseStore infrastructure |
Hosting | Self-hosted, or LangGraph Platform pricing from LangChain |
Privacy and security
LangMem runs wherever your agent runs, so data stays in your store and goes only to the model and embedding providers you configure. Encryption, retention, deletion requests and access control are yours to implement. Namespaces scope memories, but enforcement depends on your application passing the right identifiers on every call. The library has a published security policy on GitHub; it carries no certifications of its own because it is not a hosted service.
Who should use LangMem
Use LangMem if you already build agents with LangGraph, want control over how memory is formed and stored, and have engineers to tune extraction prompts and run Postgres. It suits personal AI assistants, research prototypes and agents whose instructions should improve from feedback. Look elsewhere if you are not on LangGraph, need memory that resolves conflicting facts without prompt tuning, or want a maintained hosted API with published benchmarks. Our post on when to outgrow your framework’s built-in memory, the LangMem alternatives guide and the best agent memory platforms roundup cover the options.
If you’ve outgrown LangMem
If you want memory to be a maintained service rather than a library you configure, Exabase is a hosted alternative that works with any framework, LangGraph included. Exabase Memory runs on the M-1 engine: send conversations and it extracts facts, preferences and events, builds an ontology of how they relate, and resolves contradictions as facts change, with hybrid retrieval, optional query expansion and reranking at about 200ms for simple lookups. M-1 scores 96.4% on LongMemEval. Each user or tenant gets an isolated Base, and the same API adds file storage with Resources and Deep Search. The Free plan is $0 a month with 1 GB of storage, 200 credits a month and up to 100 Bases. Where LangMem is still stronger: it is MIT licensed and runs in your own infrastructure, it treats procedural memory and prompt optimisation as first-class, and it sits natively inside LangGraph. Exabase does not offer self-hosting. See Exabase vs LangMem and the creating memories guide.
How we reviewed LangMem
We read LangMem’s GitHub README, documentation home, conceptual guide and PyPI release history on 3 December 2026. We did not run benchmarks, and statements about behaviour come from LangMem’s own documentation.
FAQs
Is LangMem good?
LangMem is a good memory toolkit for LangGraph teams, with a clear model of semantic, episodic and procedural memory. It is a weaker fit as a standalone production memory layer, since you assemble and maintain the system yourself.
Is LangMem free?
Yes. LangMem is free under the MIT licence. You pay for the LLM calls, embeddings and storage it uses.
Is LangMem still maintained?
The repository is public with open issues and pull requests, but PyPI shows no release since version 0.0.30 on 27 October 2025. Check recent commits before adopting it, and pin your version.
What does LangMem do?
LangMem helps agents extract information from conversations into long-term memory, search it later, consolidate it in the background, and refine their own prompts from feedback.
Does LangMem require LangGraph?
No, but it is designed around it. The core API works with any storage, while the memory tools and store manager use LangGraph’s BaseStore.
What storage does LangMem use?
LangMem stores memories through LangGraph’s BaseStore. InMemoryStore is for testing, and AsyncPostgresStore or a similar database-backed store is recommended for production.
What is the difference between hot path and background memory?
Hot path memory is saved during the conversation by tools the agent calls, which is immediate but adds latency. Background memory is formed after the conversation by a memory manager, which adds no latency and sees the full exchange.
Does LangMem support episodic and procedural memory?
Yes. LangMem models episodic memory as past interactions and procedural memory as evolving instructions refined with create_prompt_optimizer. See episodic vs semantic memory for the distinction.
How does LangMem handle conflicting memories?
LangMem’s memory manager can update, consolidate or remove memories, guided by your instructions and schema. How well it resolves a changed fact depends on that configuration and the model you use.
Has LangMem published benchmark results?
No. LangMem does not publish results on LongMemEval, BEAM or similar benchmarks, so evaluate it on your own data.
What is the best LangMem alternative?
Exabase is the best LangMem alternative for teams that want hosted memory with built-in contradiction resolution and per-tenant isolation that works with any framework. Mem0, Zep and Letta are other common choices; see LangMem alternatives.
LangMem vs Mem0: which is better?
LangMem is better if you are on LangGraph and want free, self-run memory primitives; Mem0 is better if you want a memory API with a hosted option. Our LangMem vs Mem0 page compares them in detail.
Related pages: LangMem alternatives, Exabase vs LangMem, LangMem vs Mem0, Letta vs LangMem, LangMem vs Zep, Exabase vs LangGraph memory, Mem0 review, Letta review, Cognee review, Agent memory, Best open source agent memory
Compare similar apps and tools:

Pinecone Nexus review

People Data Labs review

ScreenshotOne review

Microlink review

Trigger.dev review

Inngest review

Daytona review

E2B review

Speechmatics review

Gladia review

Affinda review

Rossum review

Veryfi review

Mindee review

Nanonets review

ScrapingBee review

Bright Data review

Browserbase review

Crawl4AI review

Mixpeek review

Milvus review

Ragie review

Vectara review

AWS AgentCore Memory review

Graphlit review

OpenAI file search review

Apify review

AssemblyAI review

Deepgram review

Azure Document Intelligence review

Google Document AI review

AWS Textract review

Mistral OCR review

Docling review

Jina Reader review

LangMem review

Cognee review

Qdrant review

Chroma review

Weaviate review

Twelve Labs review

Reducto review

Unstructured review

LlamaParse review

Firecrawl review

Pinecone review

Supermemory review

Letta review

Zep review

Mem0 review