· Memory/ Head to head

LangMem vs Cognee

Both are open source memory options with comparable terms, so the choice comes down to which model of the problem you prefer — compare the descriptions below rather than the licence.

LangMem

Memory primitives that plug straight into LangGraph checkpoints.

Open source · can be self-hosted · SDKs for Python

Cognee

Builds a graph + vector memory layer over your agent's history and documents.

Open source · can be self-hosted · SDKs for Python

· Side by side/ 1 of 6 differ
LangMemCognee
LicenceOpen sourceOpen source
Pricingopen sourceopen source
Self-hostableYesYes
LanguagesPythonPython
Installpip install langmempip install cognee
Keys requiredNoneNone
· Common questions/ FAQ

What is the difference between LangMem and Cognee?

Both are open source memory options with comparable terms, so the choice comes down to which model of the problem you prefer — compare the descriptions below rather than the licence. LangMem: Memory primitives that plug straight into LangGraph checkpoints. Cognee: Builds a graph + vector memory layer over your agent's history and documents.

Can LangMem and Cognee be self-hosted?

LangMem can run on your own infrastructure. Cognee can run on your own infrastructure.

Are LangMem and Cognee open source?

LangMem is open source (open source). Cognee is open source (open source).

Build a stack with LangMemAll memory options
· For agents/ This page, machine-readable

Every page here answers to Accept: text/markdown and returns the same content at roughly a tenth the tokens. No separate site, no toggle — same URL.

curl -s -H "Accept: text/markdown" https://newagent.build/compare/langmem-vs-cognee