Add managed long-term memory to LangGraph agents with LangMem
Give LangGraph agents memory management and search tools so they can store, retrieve, and update durable facts across sessions.
Install
npx skills add https://github.com/agentskillexchange/skills/tree/main/skills/add-managed-long-term-memory-to-langgraph-agents-with-langmem
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install agentskillexchange-skills@llmmart
git clone https://github.com/agentskillexchange/skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole agentskillexchange/skills collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Add managed long-term memory to LangGraph agents with LangMem
Give LangGraph agents memory management and search tools so they can store, retrieve, and update durable facts across sessions.
Prerequisites
Python, langmem, LangGraph or LangChain agent runtime, persistent store such as Postgres for production, LLM provider API key
Installation
Use the upstream install or setup path that matches your environment:
- pip install -U langmem
Requirements and caveats from upstream:
- python
Basic usage or getting-started notes:
Configure your environment with an API key for your favorite LLM provider:
export ANTHROPIC_API_KEY="sk-..." # Or another supported LLM provider
Here's how to create an agent that actively manages its own long-term memory in just a few lines:
Extracted from upstream docs: https://raw.githubusercontent.com/langchain-ai/langmem/HEAD/README.md
Documentation
Source
Files (skills)
-
SKILL.md 1.7 KB
--- name: "Add managed long-term memory to LangGraph agents with LangMem" slug: "add-managed-long-term-memory-to-langgraph-agents-with-langmem" description: "Give LangGraph agents memory management and search tools so they can store, retrieve, and update durable facts across sessions." github_stars: 1502 verification: "security_reviewed" source: "https://github.com/langchain-ai/langmem" author: "LangChain" publisher_type: "organization" category: "Developer Tools" framework: "Custom Agents" tool_ecosystem: github_repo: "langchain-ai/langmem" github_stars: 1502 --- # Add managed long-term memory to LangGraph agents with LangMem Give LangGraph agents memory management and search tools so they can store, retrieve, and update durable facts across sessions. ## Prerequisites Python, langmem, LangGraph or LangChain agent runtime, persistent store such as Postgres for production, LLM provider API key ## Installation Use the upstream install or setup path that matches your environment: - pip install -U langmem Requirements and caveats from upstream: - python Basic usage or getting-started notes: - Configure your environment with an API key for your favorite LLM provider: - export ANTHROPIC_API_KEY="sk-..." # Or another supported LLM provider - Here's how to create an agent that actively manages its own long-term memory in just a few lines: - Source: https://github.com/langchain-ai/langmem - Extracted from upstream docs: https://raw.githubusercontent.com/langchain-ai/langmem/HEAD/README.md ## Documentation - https://langchain-ai.github.io/langmem/ ## Source - [Agent Skill Exchange](https://agentskillexchange.com/skills/add-managed-long-term-memory-to-langgraph-agents-with-langmem/)
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.