LangGraph + MemorySync
Durable cross-thread memory for LangGraph agents: a native store, context injection, and turn persistence.
Overview
The langgraph surface of the LangChain packages ships a genuine BaseStore implementation compiled straight into any graph via store=, pre-model context injection for both create_agent middleware and create_react_agent hooks, a retry-safe turn-persistence node, and a graph-callable search tool — in Python and Node.js, sharing one wire format.
Setup status and requirements
- Supported version
- langchain-memorysync[langgraph] 1.1.0 (PyPI) / memorysync-langchain 1.1.0 (npm)
- Last setup review
- 2026-08-22
- Permissions
- A MemorySync API key with read and write scopes; store deletes need delete permission.
- Limits
- Requires langgraph 1.x and langchain-core 1.x (Python 3.10+, Node 18+). Thread state belongs in a checkpointer such as langgraph-checkpoint-postgres; this integration is the long-term memory half.
Capabilities
- LangGraph BaseStore with cross-thread durable memory
- Semantic store search with zero embedding configuration
- Pre-model context injection for create_agent and create_react_agent
- Retry-safe turn persistence from graph nodes
- Graph-callable memory search tool that never raises
- One wire format across Python and Node.js — data written by one is read by the other
Quick Start
from langchain.agents import create_agentfrom langchain_memorysync.langgraph import (MemorySyncMemoryMiddleware,MemorySyncStore,)agent = create_agent(model,tools=tools,middleware=[MemorySyncMemoryMiddleware(user_id="customer-7")],store=MemorySyncStore(),)
Use Cases
LangGraph agents that remember users across threads
Multi-step workflows with durable state
Support agents that recall past conversations
Explore More
Built for production AI systems
Build AI systems that remember
MemorySync provides the infrastructure layer for persistent memory, adaptive retrieval, and enterprise AI intelligence.
Start free. No credit card required.