#3939th of 41 in Memory
langmem
Python library giving LangGraph agents long-term memory tools and background extraction
- Stars
- 1.8k
- License
- MIT
- Last commit
- Nov 2026
- Language
- Python
1,419 on 2 May 20261,793 on 21 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
LangChain is hiring: 101 open roles
Overview
LangMem is a Python library that lets agents store, search and consolidate long-term memories. It provides tools an agent calls during a conversation to write and search memories, a background manager that extracts and updates memories, and prompt refinement helpers. Persistence goes through LangGraph's BaseStore, or any storage you wire to its functional core API.
Who it is for: Python developers adding long-term memory to LangGraph agents
Strengths
- Hot-path memory tools plus a background manager cover both write patterns
- Core API is storage-agnostic; LangGraph BaseStore integration is built in
- Works with DB-backed LangGraph stores such as AsyncPostgresStore for persistence
- Installs with one pip command and a few lines of setup
Weaknesses
- Examples and native integration assume LangGraph; other stacks must use the functional core
- Quickstart InMemoryStore loses memories on restart
- Needs an external LLM provider API key and an embedding model
- Library only: no standalone server or UI
What it needs
- no GPU
- Needs LangGraph, LLM provider API key (e.g. Anthropic), Embedding model (e.g. OpenAI text-embedding-3-small), Postgres (optional, for persistent store)
- Models: Anthropic, OpenAI
Also in Memory
See all 41| Rank | Project | Score |
|---|---|---|
| #36 | skillclawLocal proxy that evolves reusable agent skills from recorded sessions | 51 out of 100 |
| #37 | memory-lancedb-proLanceDB-backed long-term memory plugin for OpenClaw agents | 46 out of 100 |
| #38 | simplememLong-term memory for LLM agents, with text and multimodal backends | 41 out of 100 |
| #40 | memoryosTiered short, mid and long-term memory for LLM agents, with MCP server | 30 out of 100 |
| #41 | memobaseUser-profile memory backend for LLM apps with event timeline | 14 out of 100 |