← All frameworks

LangMem

Long-term memory for LangGraph agents: extraction, consolidation and retrieval.

Memory

Long-term memory for LangGraph agents: extraction, consolidation and retrieval. Built by LangChain.

Others in memory

Common questions

Is LangMem free to use?

LangMem is open source and free to run yourself. You still pay whichever model provider you point it at, and this tutorial is free with no signup.

Do I need to know Python to use LangMem?

Basic Python is enough. Functions, dictionaries and imports cover most of what LangMem asks of you.

When should I not use LangMem?

When something else in memory fits the job better. The others in that group are listed below.

Lessons for LangMem are being written. Meanwhile the APIs for AI tutorial covers the same ground: state, tools, loops, memory and human approval. Most of it carries straight over.

Start the APIs for AI tutorial →