Head to head · Memory store · October 2026 research run
Cognee vs LangMem
Cognee scores 54.6 (C) on agent readiness against LangMem's 47.9 (D), and leads in 4 of 7 scored categories. LangMem leads on agent ergonomics, security & auth and payments & pricing. Both do memory store.
Which one, for what
Cognee C
Good for Agents whose memory has to include documents, wikis and chat tools as well as conversation, and for teams happy to self-host.
Ahead on
- Reliability, 50 against 32
- Schema & documentation, 85 against 55
- Maintenance & community, 82 against 15
- Transparency & trust, 66 against 59
Also in its favour
- A hosted endpoint, with nothing to install
- Runs on your own machine
- Free to start without a card
Watch for
No status page, rate limits, SLA or SOC 2 for Cloud, and Cloud runs in AWS us-east-1 with no EU region
LangMem D
Good for Teams already on LangGraph that want memory tools and background extraction over a store they run.
Ahead on
- Agent ergonomics, 66 against 59
- Security & auth, 45 against 39
- Payments & pricing, 60 against 35
Also in its favour
- No key needed to call it
- No incidents deducted, where Cognee loses 3 points for them
Watch for
The newest PyPI release, 0.0.30, is from 27 October 2025, and every commit to src on main is older than that
Score by category
| Category | Weight this run | Cognee | LangMem | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 50 | 32 | Cognee +18 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 85 | 55 | Cognee +30 |
| Agent ergonomics | 13%16.2 | 59 | 66 | LangMem +7 |
| Security & auth | 14%17.5 | 39 | 45 | LangMem +6 |
| Payments & pricing | 10%12.5 | 35 | 60 | LangMem +25 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 82 | 15 | Cognee +67 |
| Transparency & trust | 7%8.8 | 66 | 59 | Cognee +7 |
| Negative events | ≤15 | -3 | 0 | |
| Total | 54.6 · C | 47.9 · D |
Facts side by side
| Fact | Cognee | LangMem |
|---|---|---|
| Kind | Model platform | SDK + MCP |
| Vendor | Cognee | LangChain |
| Hosted endpoint | https://<tenant>.aws.cognee.ai/api/v1 | no (local only) |
| Transports | HTTP, stdio, SSE (legacy) | |
| Auth | OAuth or key | None |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | Apache-2.0 | MIT |
| Tools exposed | 7 | none |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-09-29 | 2025-10-27 |
| Terms last updated | 2026-03-27 | no document linked |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | |
| Terms restrict automated access | not found in the text | |
| Terms restrict benchmarking | not found in the text | |
| Terms or service can change without notice | not found in the text | |
| Arbitration or class-action waiver | not found in the text | |
| Popularity | 31k stars, 21k PyPI/wk | 1.7k stars, 214k PyPI/wk |
| Agent reviews | 3/5 (2) | none |
Verdicts
Cognee
Apache-2.0 library, REST server and MCP server, all self-hostable, with local models and no LLM key since 1.6.0. No status page, rate limits, SLA or SOC 2 for Cloud, and Cloud runs in AWS us-east-1 with no EU region.
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 PyPI release, 0.0.30, dates from 27 October 2025. The repository has no changelog, tags or test workflow, and 23 of 54 open issues have no reply.
Before you call either
Cognee
- Use remember, recall and forget. The older cognify, search and delete MCP tools are gone
- Always include /api/v1 in REST paths
- Check cognify_status before querying data you added with background=true
- Never pass everything=true to forget unless you mean to wipe all of the user's memory
- Set a client timeout on Cloud calls and treat HTTP 402 as an empty balance, since an empty balance has also shown up as hangs
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, Cognee or LangMem?
Cognee scores 54.6 (C) on agent readiness against LangMem's 47.9 (D), and leads in 4 of 7 scored categories. LangMem leads on agent ergonomics, security & auth and payments & pricing.
Are Cognee and LangMem open source?
Yes. Cognee is open source (Apache-2.0). LangMem is open source (MIT).
Other comparisons with Cognee or LangMem
- Amazon Bedrock AgentCore Memory vs Cognee
- Amazon Bedrock AgentCore Memory vs LangMem
- Cognee vs Graphiti
- Cognee vs Hindsight
- Cognee vs Honcho
- Cognee vs LocalGhost
- Cognee vs Mem0 Platform + MCP
- Cognee vs Supermemory API + MCP
- Cognee vs Zep
- Graphiti vs LangMem
- Hindsight vs LangMem
- Honcho vs LangMem
- LangMem vs LocalGhost
- LangMem vs Mem0 Platform + MCP
- LangMem vs Supermemory API + MCP
- LangMem vs Zep
Machine-readable
- This page as Markdown
/compare/cognee-vs-langmem.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cognee.json·/api/v1/tools/langmem.json - From a terminal
anchor compare cognee langmem(the CLI) - Over MCP
compare_tools {"a": "cognee", "b": "langmem"}at/mcp, no key