Comparisons

Exabase vs. LangMem
Exabase is the better choice for managed, benchmarked agent memory isolated per customer. LangMem is better for Python teams on LangGraph who want free memory primitives they host themselves.
Last updated December 2026
Exabase is the better choice when you want agent memory as a managed service, because its M-1 engine extracts, consolidates and retrieves memories for you, leads the LongMemEval and BEAM benchmarks, and isolates each customerโs memory in its own Base. LangMem is the better choice when you build in Python on LangGraph and want free, open-source memory primitives that you assemble, tune and host yourself on top of LangGraphโs store.
LangMem is a library from LangChain, released under the MIT licence, that gives agents tools and background processes for long-term memory. It provides memory tools an agent can call during a conversation, a memory manager that extracts and updates memories from transcripts, and a prompt optimiser that refines an agentโs instructions over time, all persisting through LangGraphโs BaseStore. Exabase is infrastructure for AI agents. Its Memory API sits beside Bases, Resources, Deep Search, Extract and Workers, and works with LangGraph, any other agent framework or your own loop.
We make Exabase. This page explains where we think Exabase is the stronger option and gives a fair account of where LangMem is better. This is a comparison of a library and a managed platform, so much of the decision comes down to how much of the memory system you want to own.
Quick verdict
Choose LangMem if you are already on LangGraph, write Python, and want full control over memory schemas, extraction prompts and storage at no licence cost. It is a good fit for teams that treat memory as part of their own codebase and are comfortable operating a Postgres-backed store, or that deploy on LangGraph Platform where the long-term memory store is available by default.
Choose Exabase if you want memory that works well on long histories without designing it yourself, handles contradictions automatically, keeps each customerโs data in an isolated Base, and sits next to file storage and document search in one API. You keep your agent and framework; only the memory layer moves.
Use both in a migration: keep LangMemโs prompt optimiser for procedural memory while moving user facts and preferences to Exabase.
Exabase vs LangMem at a glance
Feature | Exabase | LangMem |
|---|---|---|
What it is | Managed memory engine plus files, search, extraction and Workers | Open-source Python library of memory primitives |
Licence | Proprietary managed service | MIT |
Where memory lives | Exabase, scoped to a Base | Any LangGraph BaseStore, such as Postgres; in-process store for testing |
Extraction | Automatic with M-1, or verbatim writes | Memory manager you configure with a model, instructions and optional schemas |
Memory types | Facts, preferences and events in a self-organising ontology | Semantic collections and profiles, episodic examples, procedural prompt rules |
Contradictions | Resolved automatically when facts change | Reconciled by the memory managerโs model; quality depends on your prompts and schemas |
Retrieval | Hybrid semantic and keyword search with recency, query expansion and reranking | Store search with semantic search and metadata filters |
Published benchmarks | 96.4% on LongMemEval; first on BEAM at 100K, 1M and 10M tokens | None published |
Multi-tenancy | One isolated Base per customer, up to 10,000 on Scale | Hierarchical namespaces, such as one per user, inside your store |
Languages | REST API and TypeScript SDK | Python |
Price | Free $0 a month; Scale $149 a month or $1,490 a year | Free library; you pay for models, storage and hosting |
Key differences
Library or managed service
LangMem is code you import. You choose the model that extracts memories, write the instructions, define Pydantic schemas if you want typed memories, pick a store and decide when extraction runs. The core API works without any storage layer at all, which makes it flexible for experiments and easy to fit into an existing LangGraph app. The cost is that every part of quality, scaling and operations is yours.
Exabase is a service you call. You send text with source set to text and M-1 does the extraction, organisation and indexing; you retrieve with one search call or ask a question in plain language. There is no extraction prompt to maintain and no database to run. The creating memories and retrieving memories guides cover the whole surface. Our post on open source vs managed agent memory sets out the trade-off in more depth.
Winner: LangMem for control and zero licence cost. Exabase for less to build and run.
Memory model
LangMem follows the cognitive split into three kinds of memory. Semantic memory holds facts, stored either as a collection of many records searched at runtime or as a single profile document updated in place. Episodic memory saves successful interactions as examples with the situation, reasoning, action and result. Procedural memory refines the agentโs own instructions, using the prompt optimiser to rewrite rules in the system prompt based on conversations and feedback.
Exabase focuses on what an agent learns about users and the world. M-1 extracts facts, preferences and events and organises them into a tree of concepts and memories that reshapes itself as topics shift. It does not rewrite your prompts, so procedural learning stays with you or a tool like LangMem. For a primer on the categories, see our post on episodic vs semantic memory for AI agents.
Winner: LangMem for breadth of memory types, including procedural memory.
Extraction quality and changing facts
LangMemโs memory manager reconciles new information with existing memories by inserting, updating, consolidating or deleting records, and its documentation is open about the balance: extract too much and precision drops, extract too little and recall drops. How well it handles a user who changes jobs or cities depends on the model you choose, your instructions and your schema.
Exabase makes this the engineโs job. Contradiction resolution and memory consolidation run when memories are written, so a user who moves from Toronto to Berlin has one current city, and stale context stops reaching the prompt. Immutable memories can be pinned so the self-organising process never changes them. M-1 scores 96.4% on LongMemEval against a previous best of 94.8%, and ranks first on BEAM at 100K, 1M and 10M tokens, a benchmark designed so that stuffing everything into the context window fails.
Winner: Exabase.
Retrieval
LangMem retrieves through the store you configure. LangGraphโs BaseStore supports direct gets, semantic search over an embedding index and metadata filtering, and LangMemโs conceptual guide recommends weighing similarity, importance and strength, where strength reflects how recently and often a memory was used. Implementing that weighting beyond basic similarity is up to you.
Exabase search is hybrid by default, combining semantic and keyword matching with recency weighting. A query can be expanded into up to five related passes and the candidates reranked, with a threshold to drop the weakest results, and simple retrieval returns in about 200 ms. The ask endpoint returns an answer built from the relevant memories, which saves prompt assembly. On BEAM, M-1 uses about 20% fewer tokens per query than the next-best system, which feeds into lower bills; the reduce token costs page explains how.
Winner: Exabase.
Hot path and background processing
LangMem supports both modes explicitly. In the hot path, the agent calls its manage and search memory tools during a conversation, which updates memory immediately but adds latency. In the background, a memory manager reflects on a conversation after it ends or goes quiet, adding no response latency and usually improving recall. You wire up the scheduling.
Exabase inferred memories are processed asynchronously, so writes do not block the response, while verbatim memories return immediately. Retrieval is a single fast call that fits inside an agent loop. For recurring maintenance across a customerโs data, a Worker can create, update and resolve memories on a schedule based on new documents or external data.
Winner: even. LangMem gives finer control; Exabase needs no scheduling code.
Multi-tenancy
LangMem organises memories in hierarchical namespaces, such as an organisation, a user ID and an application, filled in from the run configuration. That is a clean way to separate users, but they share one store, and every call has to carry the right namespace. Missing it is the classic way data leaks between users, a risk our glossary covers under cross-tenant data leakage.
Exabase uses a Base per user, project or customer. Pass the Base ID and memory, files, search and Workers all stay inside it, with memory isolation enforced in the infrastructure rather than by a namespace in your queries. Usage rolls up to one developer account, and the multi-tenant page covers the pattern.
Winner: Exabase.
Beyond memory
LangMem is memory only. Documents, files and search over them belong to other parts of your stack, typically a vector store and a document pipeline built with LangChain.
Exabase puts memory next to the rest of an agentโs context. Files, notes, bookmarks, audio and video are stored as Resources, extracted on arrival and searchable down to the paragraph or timestamp, in the same Base as the userโs memories. That is the gap between RAG and agent memory closed in one place, and the reason the agent memory solution links to RAG accuracy.
Winner: Exabase.
Pricing and operations
LangMem is free under the MIT licence. Your costs are the model calls for extraction and search, the database behind the store, and the time to run and tune it. LangGraph Platform includes a long-term memory store by default if you deploy there, priced separately by LangChain. The latest version on PyPI when we checked was 0.0.30, which requires Python 3.10 or later.
Exabase Free is $0 a month with 1 GB of storage, 200 credits a month and up to 100 Bases. Scale is $149 a month, or $1,490 billed yearly, with 2 TB of storage, 5,000 credits a month, up to 10,000 Bases and a zero data retention policy. Enterprise is priced on request. Data is encrypted with AES-256 at rest and in transit, and Exabase is CASA certified. Full details are on the pricing page.
Winner: LangMem on licence cost. Exabase on total effort for a production system.
Where LangMem is stronger
LangMem is the stronger choice for Python teams that want ownership. It is MIT licensed and free, runs wherever your LangGraph app runs, lets you define typed memory schemas and extraction prompts, supports semantic, episodic and procedural memory, and includes a prompt optimiser that Exabase has no equivalent for. If memory is a research area for your team, or you must keep every byte on your own database, LangMem gives you the parts without a vendor in the loop.
When to use each
Use LangMem for a LangGraph agent where you want to experiment with memory design, for an internal tool on your own Postgres, or when procedural memory and prompt optimisation matter more than per-user recall.
Use Exabase when memory serves many end users and has to be right: a customer support agent that should know a customer upgraded last week, a coding assistant that remembers a teamโs conventions across months, or a personal AI assistant inside a product where each userโs memory must stay separate.
Real-world example. Consider a team with a LangGraph support agent that started on LangMem with an in-memory store, then moved to Postgres as traffic grew. Six months in, users report the agent quoting old plan tiers, and an enterprise prospect asks how one customerโs memories are kept from anotherโs. The team keeps its LangGraph graph, swaps the memory tools for calls to Exabase, and creates a Base per customer account. Conversations go to the Memory API, which supersedes the old plan tier when the upgrade appears, and the security answer becomes one isolated environment per customer rather than a namespace convention.
How we compared
We checked LangMemโs documentation home page, its conceptual guide and its PyPI listing on 2 December 2026, and Exabaseโs pricing on exabase.io/pricing the same day. LangMem has no pricing page because it is a free library. Exabaseโs features and benchmark results come from our own documentation and research.
Related comparisons include LangMem alternatives, Exabase vs LangGraph memory, Exabase vs Mem0, Exabase vs Letta, LangMem vs Mem0 and the best open-source agent memory roundup. Our post on when to outgrow your frameworkโs built-in memory covers the signs that a library is no longer enough.
FAQs
Is Exabase a LangMem alternative?
Yes. Exabase replaces LangMemโs user and fact memory with a managed engine that extracts, consolidates and retrieves memories for you. It does not replace LangMemโs prompt optimiser for procedural memory.
What is LangMem?
LangMem is an open-source Python library from LangChain that gives agents long-term memory tools, a background memory manager and a prompt optimiser, with native integration into LangGraphโs storage layer.
Is LangMem free?
Yes. LangMem is released under the MIT licence. You pay for the models it calls and the database or platform that stores memories.
Is Exabase free?
Yes. Exabase Free is $0 a month with 1 GB of storage, 200 credits a month and up to 100 Bases. Scale costs $149 a month or $1,490 a year.
Does LangMem work without LangGraph?
Partly. LangMemโs core memory functions work without a storage layer, but its stateful tools and managers build on LangGraphโs BaseStore. Exabase works with any framework through its REST API.
Which is more accurate?
Exabase has the stronger published results, with 96.4% on LongMemEval and first place on BEAM at every scale tested. LangMem does not publish benchmark results, and its accuracy depends on the model and prompts you configure.
Can I use Exabase with LangGraph?
Yes. A LangGraph agent can call Exabaseโs memory search before each model call and send conversations to the Memory API afterwards, replacing or sitting beside LangGraphโs store.
How does LangMem separate users?
With namespaces in the store, such as one per user ID. Exabase uses a separate Base per user or customer, with isolation enforced in the infrastructure.
Does LangMem support TypeScript?
Not on the pages we checked; LangMem is installed with pip and documented in Python. Exabase offers a TypeScript SDK and a REST API.
Does Exabase have a Python SDK?
No. Exabase offers a TypeScript SDK and a REST API that you can call from Python or any other language.
Can Exabase optimise my agentโs prompts?
No. Exabase stores and retrieves memories, files and search results but does not rewrite system prompts. LangMemโs prompt optimiser does.
How do I move from LangMem to Exabase?
Export memories from your store, write them to Exabase with infer set to false to keep them verbatim, then point your agentโs memory tools at Exabaseโs search and create endpoints. The agent memory page shows the target setup.
Related pages: LangMem alternatives, LangMem review, Letta vs LangMem, LangMem vs Zep, Exabase vs Letta, Exabase vs Zep, Best agent memory platforms, Agent memory, Procedural memory, Long-term memory, Exabase vs Honcho, Exabase vs Motorhead, Exabase vs LangGraph memory
Compare similar apps and tools:

Exabase vs. Crawlbase

Exabase vs. Steel

Exabase vs. Hyperbrowser

Exabase vs. Browserless

Exabase vs. ZenRows

Exabase vs. Scrapfly

Exabase vs. Oxylabs

Exabase vs. Zyte

Exabase vs. ScrapeGraphAI

Exabase vs. Tavily

Exabase vs. Exa

Exabase vs. Crawl4AI

Exabase vs. Diffbot

Exabase vs. ScrapingBee

Exabase vs. Browserbase

Exabase vs. Bright Data

Exabase vs. Apify

Exabase vs. Spider

Exabase vs. ScraperAPI

Exabase vs. Jina

Exabase vs. Firecrawl

Exabase vs. Zilliz

Exabase vs. TopK

Exabase vs. Astra DB

Exabase vs. Upstash Vector

Exabase vs. Cloudflare Vectorize

Exabase vs. MongoDB Atlas

Exabase vs. OpenSearch

Exabase vs. Vespa

Exabase vs. LanceDB

Exabase vs. turbopuffer

Exabase vs. pgvector

Exabase vs. Milvus

Exabase vs. Qdrant

Exabase vs. Chroma

Exabase vs. Weaviate

Exabase vs. Pinecone

Exabase vs. Coresignal

Exabase vs. CompanyEnrich

Exabase vs. Apollo

Exabase vs. Crustdata

Exabase vs. People Data Labs

Exabase vs. CaptureKit

Exabase vs. Site-Shot

Exabase vs. ApiFlash

Exabase vs. JSONLink

Exabase vs. Peekalink

Exabase vs. Embedly

Exabase vs. Clearbit

Exabase vs. Logo.dev

Exabase vs. Brandfetch

Exabase vs. ScreenshotOne

Exabase vs. Urlbox

Exabase vs. OpenGraph.io

Exabase vs. LinkPreview.net

Exabase vs. Iframely

Exabase vs. Microlink

Browserbase vs. Browserless

Exa vs. Tavily

Firecrawl vs. Tavily

Firecrawl vs. Crawl4AI

RChilli vs. Textkernel

Affinda vs. Textkernel

Exabase vs. Nile

Exabase vs. Box

Exabase vs. Google Cloud Storage

Exabase vs. Cloudflare R2

Exabase vs. lakeFS

Exabase vs. Fast.io

Exabase vs. AgentFS

Exabase vs. Supabase Storage

Exabase vs. AWS S3

Exabase vs. Marqo

Exabase vs. Meilisearch

Exabase vs. Typesense

Exabase vs. Algolia

Exabase vs. Elasticsearch

Exabase vs. Kapa.ai

Exabase vs. LangChain

Exabase vs. Haystack

Exabase vs. Google Vertex AI RAG Engine

Exabase vs. Glean

Exabase vs. Onyx

Exabase vs. Agentset

Exabase vs. Morphik

Exabase vs. Nuclia

Exabase vs. R2R

Exabase vs. Cohere

Exabase vs. Contextual AI

Exabase vs. Pinecone Assistant

Exabase vs. LlamaIndex

Exabase vs. Google Vertex AI Search

Exabase vs. Azure AI Search

Exabase vs. AWS Bedrock Knowledge Bases

Exabase vs. OpenAI file search

Exabase vs. Ragie

Exabase vs. Vectara

Exabase vs. MemPalace

Exabase vs. Pinecone Nexus

Exabase vs. Neo4j

Exabase vs. Hyperspell

Exabase vs. Graphlit

Exabase vs. Claude memory

Exabase vs. Microsoft Foundry memory

Exabase vs. Vertex AI Memory Bank

Exabase vs. AWS AgentCore Memory

Exabase vs. MemOS

Exabase vs. Hindsight

Exabase vs. Redis

Exabase vs. OpenAI memory

Exabase vs. LangGraph memory

Exabase vs. Motorhead

Exabase vs. Honcho

Exabase vs. Memobase

Exabase vs. Graphiti

Exabase vs. Cognee

Exabase vs. LangMem

Exabase vs. Letta

Exabase vs. PyMuPDF

Exabase vs. HrFlow.ai

Exabase vs. Daxtra

Exabase vs. RChilli

Exabase vs. Textkernel

Exabase vs. Affinda

Exabase vs. Eden AI

Exabase vs. Docparser

Exabase vs. Parseur

Exabase vs. Sensible

Exabase vs. Base64.ai

Exabase vs. ABBYY

Exabase vs. Klippa

Exabase vs. Veryfi

Exabase vs. Rossum

Exabase vs. Docsumo

Exabase vs. Unstract

Exabase vs. MinerU

Exabase vs. Chunkr

Exabase vs. Nutrient

Exabase vs. LandingAI

Exabase vs. Mindee

Exabase vs. Nanonets

Exabase vs. Mathpix

Exabase vs. Extend

Exabase vs. Marker

Exabase vs. Azure Document Intelligence

Exabase vs. Google Document AI

Exabase vs. Amazon Textract

Exabase vs. Mistral OCR

Exabase vs. Docling

Exabase vs. Unstructured

Exabase vs. Reducto

Exabase vs. LlamaParse

Exabase vs. Pipedream

Exabase vs. CrewAI

Exabase vs. Gumloop

Exabase vs. Lindy

Exabase vs. Relevance AI

Exabase vs. Temporal

Exabase vs. Trigger.dev

Exabase vs. Inngest

Exabase vs. Make

Exabase vs. n8n

Exabase vs. Zapier

Exabase vs. Azure Speech

Exabase vs. Google Speech-to-Text

Exabase vs. Amazon Transcribe

Exabase vs. Rev AI

Exabase vs. ElevenLabs Scribe

Exabase vs. Soniox

Exabase vs. Speechmatics

Exabase vs. Gladia

Exabase vs. Twelve Labs

Exabase vs. OpenAI Whisper

Exabase vs. AssemblyAI

Exabase vs. Deepgram

Exabase vs. TinEye

Exabase vs. Cloudinary

Exabase vs. Memories.ai

Exabase vs. Google Video Intelligence

Exabase vs. Azure Video Indexer

Exabase vs. Clarifai

Exabase vs. AWS Rekognition

Exabase vs. Google Cloud Vision

Exabase vs. Pixeltable

Exabase vs. Mixpeek

Graphlit alternatives

AWS AgentCore Memory alternatives

Crawl4AI alternatives

Nuclia alternatives

Contextual AI alternatives

Pinecone Assistant alternatives

OpenGraph.io alternatives

Embedly alternatives

Iframely alternatives

Azure Video Indexer alternatives

Google Video Intelligence alternatives

OpenAI Whisper alternatives

Gladia alternatives

Speechmatics alternatives

RChilli alternatives

Textkernel alternatives

Affinda alternatives

Docsumo alternatives

ABBYY alternatives

Klippa alternatives

Rossum alternatives

Nanonets alternatives

Veryfi alternatives

Mindee alternatives

Diffbot alternatives

Browserbase alternatives

Bright Data alternatives

ScrapingBee alternatives

LangChain alternatives

LlamaIndex alternatives

Mixpeek alternatives

Marqo alternatives

Typesense alternatives

Algolia alternatives

Elasticsearch alternatives

Milvus alternatives

Cognee alternatives

Ragie alternatives

Vectara alternatives

AWS Bedrock Knowledge Bases alternatives

OpenAI file search alternatives

Microlink alternatives

Apify alternatives

Twelve Labs alternatives

AssemblyAI alternatives

Deepgram alternatives

Mistral OCR alternatives

Azure Document Intelligence alternatives

Google Document AI alternatives

AWS Textract alternatives

Docling alternatives

Reducto alternatives

Unstructured alternatives

LlamaParse alternatives

ScraperAPI alternatives

Jina Reader alternatives

Firecrawl alternatives

pgvector alternatives

Qdrant alternatives

Chroma alternatives

Weaviate alternatives

Pinecone alternatives

Motorhead alternatives

LangMem alternatives

Letta alternatives

Supermemory alternatives

Zep alternatives

Mem0 alternatives

Exabase vs. Fly Sprites

Exabase vs. Blaxel

Exabase vs. Vercel Sandbox

Exabase vs. Modal

Exabase vs. Daytona

Exabase vs. E2B

Best agent memory platforms 2026

Exabase vs. Supermemory

Exabase vs. Mem0