# LangMem

> Helps agents learn and adapt from their interactions over time

Source: https://talira.ai/catalog/langmem-9k84aqah
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / agents / memory](https://talira.ai/categories/ai/agents/memory)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Backed by: [LangChain](https://talira.ai/orgs/langchain.md)

LangMem is LangChain's Python library for long-term memory in AI agents. It extracts important information from conversations, refines an agent's prompts from feedback to improve its behaviour, and keeps memories consistent across sessions. It offers a core memory API that works with any storage system, tools an agent calls to record and search memories during a conversation, and a background memory manager that extracts, consolidates and updates knowledge automatically, with native integration with [LangGraph](https://talira.ai/catalog/langgraph-0wg8grbt.md)'s long-term memory store.

## Links

- Website: https://langchain-ai.github.io/langmem/
- GitHub: https://github.com/langchain-ai/langmem
- Docs: https://langchain-ai.github.io/langmem/

## Problems it solves

- give my LangGraph agent long-term memory across conversations
- let an agent save and search memories about a user during a chat
- extract and consolidate facts from conversations in the background
- improve my agent's prompt automatically from feedback
- personalise agent responses from past interactions
- memory primitives that work with my own storage

## Features

- core memory API for any storage system
- memory management and search tools for agents
- background memory manager
- prompt optimisation from conversations and feedback
- native LangGraph long-term memory store integration

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.69, adoption 0.65, momentum 0.58, community 0.47, backing 0.30, extensibility 0.00.

- last commit 8 days ago
- 13 commits in the last 90 days
- 1.8k GitHub stars
- 14 contributors
- backed by LangChain

## Related

- Works with [LangGraph](https://talira.ai/catalog/langgraph-0wg8grbt.md)

## Alternatives

- [Mem0](https://talira.ai/catalog/mem0-1hspsvwb.md): The memory layer for AI agents
- [Letta](https://talira.ai/catalog/letta-8fr9dnmv.md): Build stateful agents with memory that can learn and improve over time
- [Zep](https://talira.ai/catalog/zep-54v4ajs8.md): The enterprise context layer for reliable agents
- [Hindsight](https://talira.ai/catalog/hindsight-epw5kxdn.md): Long-term memory for AI agents that learns from experience
- [GBrain](https://talira.ai/catalog/gbrain-d17b9xxa.md): One brain for you and your company, read by every agent you use
- [Honcho](https://talira.ai/catalog/honcho-yke09mhe.md): Memory infrastructure for building stateful agents

## Sources

[^1]: https://github.com/langchain-ai/langmem/blob/main/README.md (checked 23 Nov 2026)
[^2]: https://github.com/langchain-ai/langmem/blob/main/LICENSE (checked 23 Nov 2026)
