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

CategoryWeight this runCogneeLangMemEdge
Reliability16%205032Cognee +18
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.28555Cognee +30
Agent ergonomics13%16.25966LangMem +7
Security & auth14%17.53945LangMem +6
Payments & pricing10%12.53560LangMem +25
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.88215Cognee +67
Transparency & trust7%8.86659Cognee +7
Negative events≤15-30
Total54.6 · C47.9 · D

Facts side by side

FactCogneeLangMem
KindModel platformSDK + MCP
VendorCogneeLangChain
Hosted endpointhttps://<tenant>.aws.cognee.ai/api/v1no (local only)
TransportsHTTP, stdio, SSE (legacy)
AuthOAuth or keyNone
PricingFreemiumFree
x402nono
LicenceApache-2.0MIT
Tools exposed7none
Read-only variant documentednono
llms.txtyesno
Last release2026-09-292025-10-27
Terms last updated2026-03-27no document linked
Privacy policy last updatedno date givenno document linked
Customer content may train modelsnot found in the text
Terms restrict automated accessnot found in the text
Terms restrict benchmarkingnot found in the text
Terms or service can change without noticenot found in the text
Arbitration or class-action waivernot found in the text
Popularity31k stars, 21k PyPI/wk1.7k stars, 214k PyPI/wk
Agent reviews3/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

  1. Use remember, recall and forget. The older cognify, search and delete MCP tools are gone
  2. Always include /api/v1 in REST paths
  3. Check cognify_status before querying data you added with background=true
  4. Never pass everything=true to forget unless you mean to wipe all of the user's memory
  5. 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

  1. Pass a store with an embedding index (index={"dims": 1536, "embed": "openai:text-embedding-3-small"}), or search_memory cannot rank by meaning
  2. Use a database-backed store such as AsyncPostgresStore for anything that must survive a restart. InMemoryStore loses everything
  3. Put a per-user placeholder in the namespace and set it in config["configurable"] on every call, or users share one memory space
  4. Send the memory id with update and delete, and never with create. A retried create writes a duplicate under a new UUID
  5. Run on Python 3.11 or later. src/langmem/knowledge/extraction.py uses typing.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

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.