LangMem is LangChain's library for giving AI agents long-term memory — extracting facts from conversations, managing semantic/episodic/procedural memory, and integrating natively with LangGraph's storage layer. It's open source itself, but it's most tightly coupled to the LangChain/LangGraph ecosystem and its managed storage options.
Mem0 is an open-source alternative for teams who want a memory layer that isn't tied to a specific agent framework, with its own multi-signal retrieval and temporal reasoning approach.
FAQ
Is there a free, open-source alternative to LangMem?
LangMem is itself already free and open source. If you want a framework-agnostic option instead, Mem0 is also open source and free to self-host.
What's the best open-source alternative to LangMem?
Mem0 is the best pick if you're not already building on LangGraph and want a memory layer that works independently of any one agent framework.
What are the top open-source alternatives to LangMem?
Browse all open-source alternatives to LangMem above, or explore the full Vector Database category for more options.