EveryDev.ai
Sign inSubscribe
  1. Home
  2. Tools
  3. LangMem
LangMem icon

LangMem

Context Engineering

Open-source SDK from LangChain for long-term memory in LLM agents, with hot-path tools, a background memory manager, and native LangGraph storage integration.

Visit Website

At a Glance

Pricing

Open Source
Free tier available

Get started with LangMem at no cost with Python package via PyPI and All core SDK features.

Managed memory service (invite/beta): Custom/contact/mo

Engagement

Available On

SDK
Web
Windows
macOS
Linux

Resources

WebsiteDocsGitHubllms.txt

Topics

Context EngineeringAgent MemoryRetrieval-Augmented Generation

About LangMem

LangMem is a Python SDK for adding long-term memory to LLM agents. It provides two complementary paths:

  • Hot path tools (create_manage_memory_tool, create_search_memory_tool) that agents call during conversations to store and retrieve facts, preferences, and other context.
  • Background manager that periodically extracts, consolidates, and updates memories outside the request path.

The core API is storage-agnostic and works with LangGraph’s BaseStore implementations (e.g., in-memory for dev, Postgres for production). It supports semantic and episodic memory patterns, prompt optimization/“procedural memory,” and dynamic namespaces for user- or team-scoped memories. Typical setups pair LangMem with LangGraph agents, Postgres/pgvector for persistence, and common model providers (Anthropic, OpenAI).

Install: pip install -U langmem Requires: Python 3.10+

Use it to build agents that remember user preferences across sessions, keep evolving profiles, and refine prompts over time—without hand-rolling memory extraction, deduplication, and retrieval plumbing.

LangMem - 1

Community Discussions

Be the first to start a conversation about LangMem

Share your experience with LangMem, ask questions, or help others learn from your insights.

Pricing

FREE

Free Plan Available

Get started with LangMem at no cost with Python package via PyPI and All core SDK features.

  • Python package via PyPI
  • All core SDK features
  • Self-hosted storage (in-memory, Postgres/pgvector)

Managed memory service (invite/beta)

Managed memory service (invite/beta) plan with Hosted long-term memory store and LangGraph-native integration.

Custom
contact sales
  • Hosted long-term memory store
  • LangGraph-native integration
View official pricing

Capabilities

Key Features

  • Hot-path memory tools for store/search within agent runs
  • Background memory manager for batch extraction and consolidation
  • Storage-agnostic core API; works with LangGraph BaseStore
  • Native integrations for InMemoryStore and AsyncPostgresStore
  • Dynamic namespaces for user/team-scoped memories
  • Supports semantic, episodic, and procedural (prompt) memory patterns
  • Embeddings-based retrieval (e.g., OpenAI text-embedding-3-small)
  • Typed/structured memories via Pydantic models
  • CrewAI and custom-agent usage guides
  • MIT-licensed; Python package via PyPI

Integrations

LangGraph
LangGraph Platform
PostgreSQL (pgvector)
Anthropic
OpenAI
CrewAI

Demo Video

LangMem Demo Video
Watch on YouTube

Reviews & Ratings

No ratings yet

Be the first to rate LangMem and help others make informed decisions.

Developer

LangChain, Inc.

LangChain is a company focused on building a comprehensive framework for developing applications with large language models (LLMs) through composable building blocks for orchestrating agentic workflows.

Founded 2023
San Francisco, CA
$160M raised

Used by

Cisco (Outshift platform engineer - 10x…
Replit
Clay
Harvey
+39 more
Read more about LangChain, Inc.
WebsiteGitHubX / Twitter
3 tools in directory

Similar Tools

Hyperspell icon

Hyperspell

Memory and context layer for AI agents that connects to user data sources for automatic memory and context-aware responses.

Zep icon

Zep

Context engineering platform that gives AI agents long-term memory via a temporal knowledge graph, Graph RAG, and context assembly. SDKs for Python/TS/Go, MCP server support, and usage-based pricing.

Claude Mem icon

Claude Mem

A memory management system for Claude AI that enables persistent context and conversation history across sessions.

Browse all tools

Related Topics

Context Engineering

Techniques for optimizing context windows to improve AI responses.

20 tools

Agent Memory

Memory layers, frameworks, and services that enable AI agents to store, recall, and manage information across sessions. These tools provide persistent, semantic, and contextual memory for agents, supporting personalization, long-term context retention, graph-based relationships, and hybrid RAG + memory workflows.

19 tools

Retrieval-Augmented Generation

RAG Systems that enhance LLM outputs by retrieving relevant information from external knowledge bases, combining the power of generative AI with information retrieval for more accurate and contextual responses.

31 tools
Browse all topics
Back to all tools
Explore AI Tools
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
Main Menu
  • Tools
  • Developers
  • Topics
  • Discussions
  • News
  • Blogs
  • Builds
  • Contests
Create
Sign In
    Sign in
    15views
    0saves
    0discussions