$npx skillfedfor your agent

langmem

Prebuilt utilities for memory management and retrieval.

With conditionsPyPI Artificial IntelligenceReleased Oct 2025725.9K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — langmem-0.0.30-py3-none-any.whl
v0.0.30 · released 2025-10-27 · Python >=3.10 · 8 runtime deps: langchain-anthropic, langchain-core, langchain-openai, langchain, langgraph-checkpoint, langgraph, langsmith, trustcall

Yes, if you are building LangGraph agents and need persistent memory across conversations. The low install friction and permissive MIT license make adoption straightforward. However, the aging maintenance status (291 days since last release) warrants checking that its dependencies remain compatible with your langchain and langgraph versions before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >=3.10 and an API key for an LLM provider (e.g., ANTHROPIC_API_KEY environment variable).
  • Low install friction with a pure-Python wheel.
  • Maintenance status is aging—last release was 291 days ago—but the package carries eight runtime dependencies, so updates to upstream libraries could affect stability.

License · maintenance · safety

permissive license (permissive) — MIT License permits unrestricted use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

last release 2025-10-27 (291 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 725,853 downloads/mo, #5,219 on PyPI

Verify before relying

pip install -U langmem

from langmem import create_manage_memory_tool, create_search_memory_tool
from langgraph.prebuilt import create_react_agent
from langgraph.store.memory import InMemoryStore

store = InMemoryStore(index={"dims": 1536, "embed": "openai:text-embedding-3-small"})
agent = create_react_agent(
    "anthropic:claude-3-5-sonnet-latest",
    tools=[create_manage_memory_tool(namespace=("memories",)), create_search_memory_tool(namespace=("memories",))],
    store=store,
)
agent.invoke({"messages": [{"role": "user", "content": "Remember that I prefer dark mode."}]})
  • Whether the package is actively maintained or in long-term support mode despite the aging status
  • Performance characteristics when managing large conversation histories or high-frequency memory operations
  • Compatibility guarantees with specific versions of langchain, langgraph, and langsmith
Same gist for agents: .md · .json

What it is and what it does

LangMem is a memory management library for LangGraph agents that helps them learn and adapt from conversations over time. It provides both a functional core API (usable with any storage system) and native integration with LangGraph's storage layer, allowing agents to extract important information, optimize behavior through prompt refinement, and maintain knowledge across sessions.

The package offers memory tools that agents can invoke during conversations to record and search information, plus a background memory manager that automatically consolidates and updates agent knowledge. It works with LangGraph's InMemoryStore for development or production-grade stores for persistence. Agents can decide what to remember without special commands—they simply use the provided tools during normal interaction.

Use it for

  • Build chatbots that remember user preferences and adapt responses across multiple conversations without explicit commands.
  • Create agents that extract and consolidate key facts from long conversations to maintain consistent context.
  • Implement background memory consolidation to automatically refine agent knowledge and improve future interactions.
  • Develop multi-turn agents that search past interactions to answer questions about previous user statements or preferences.
  • Persist agent memories across server restarts using LangGraph's storage backends for production deployments.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building LangGraph agents and need persistent memory across conversations.

The low install friction and permissive MIT license make adoption straightforward. However, the aging maintenance status (291 days since last release) warrants checking that its dependencies remain compatible with your langchain and langgraph versions before committing to production use.

Install

langmem on PyPI

Before you install

Low install friction with a pure-Python wheel. Maintenance status is aging—last release was 291 days ago—but the package carries eight runtime dependencies, so updates to upstream libraries could affect stability.

Requires Python >=3.10 and an API key for an LLM provider (e.g., ANTHROPIC_API_KEY environment variable).

License in practice

MIT License permits unrestricted use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install -U langmem

from langmem import create_manage_memory_tool, create_search_memory_tool
from langgraph.prebuilt import create_react_agent
from langgraph.store.memory import InMemoryStore

store = InMemoryStore(index={"dims": 1536, "embed": "openai:text-embedding-3-small"})
agent = create_react_agent(
    "anthropic:claude-3-5-sonnet-latest",
    tools=[create_manage_memory_tool(namespace=("memories",)), create_search_memory_tool(namespace=("memories",))],
    store=store,
)
agent.invoke({"messages": [{"role": "user", "content": "Remember that I prefer dark mode."}]})

Verify before relying

  • Whether the package is actively maintained or in long-term support mode despite the aging status
  • Performance characteristics when managing large conversation histories or high-frequency memory operations
  • Compatibility guarantees with specific versions of langchain, langgraph, and langsmith

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
8 packages
langchain-anthropiclangchain-corelangchain-openailangchainlanggraph-checkpointlanggraphlangsmithtrustcall
MaintenanceAging 291 days since the last release
First released
Downloads725,853 / month, #5,219 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: langmem-0.0.30-py3-none-any.whl

Tags

Capabilities
agent memory managementconversation context persistencelanggraph memory toolslong-term agent memoryagent knowledge extractionmemory search and retrievalagent learning from interactions
Topics
agent-memorylanggraph-integrationconversation-context

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “agent memory management”

  • langmemLangMem provides memory management tools for LangGraph agents,…
  • memoriMemori is a Python SDK that automatically captures and recalls…
  • echo-agentEcho Agent is a self-hosted, long-running AI agent runtime that…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also genagent · mem0ai · memori · langgraph-supervisor · agent-framework-mem0 · langgraph-swarm · agent-framework-azure-ai · langgraph-api · reme-ai · langgraph-prebuilt

Further reading