Back to Gap Map Product / UX / Agent memory & context stores

LangMem

LangChain
open source / Overall score: 3.4

LangMem is a Python library that lets agents extract, consolidate and search long-term memories from their conversations, either through memory tools the agent calls during a chat or through a background manager that runs afterward. Its memory types include semantic facts and user profiles, episodic examples and procedural memory, where it rewrites the agent's own prompt. LangChain builds it, with native support for LangGraph's memory store.

Openness

5 high confidence
5.0
license
MIT (langmem library)
source
public
core features withheld
no — the 91-path tree at 4beb9c3 holds one MIT LICENSE and no ee/, enterprise/, commercial/ or proprietary/ path, and its dependencies are LangChain's open libraries; LangChain's paid products are the LangSmith platform
commercial
LangSmith

LangMem is a small MIT-licensed Python library, and all of it is in the public repository. Its memory primitives work with any storage system, including LangGraph's open in-memory and Postgres stores, and LangChain sells its hosted LangSmith platform as a separate product.

Adoption

3 medium confidence
3.0

Adoption is counted as monthly PyPI downloads of langmem, the library's only package. A download is an install, often an automated one, rather than an agent running in production.

Capability

4 medium confidence
4.0

LangMem extracts memories from conversations, consolidates or removes outdated ones with an LLM, and keeps semantic, episodic and procedural memory in namespaces an agent can search per user. It has no time-based forgetting of its own and leaves expiry to the store beneath it.

Verified 2026-11-20, except some scores, still awaiting re-confirmation