MemorySync
Official SDK

LangGraph + MemorySync

Durable cross-thread memory for LangGraph agents: a native store, context injection, and fact extraction from user messages.

Overview

The langgraph surface of the LangChain packages ships a genuine BaseStore implementation compiled straight into any graph via store= (its values live in MemorySync framework state, apart from the user’s memories), pre-model context injection through create_react_agent hooks in both languages and create_agent middleware in Python, a persist node that sends the latest user message for fact extraction (a re-run node or retried model call is recognised, so nothing is extracted twice), 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.2.0 (PyPI) / memorysync-langchain 1.2.0 (npm)
Last setup review
2026-10-01
Permissions
A MemorySync API key with read and write scopes; store deletes need delete permission.
Limits
Requires langgraph 1.2+ (Python 3.10+) or @langchain/langgraph 0.2+ (Node 18+). Thread state belongs in a checkpointer such as langgraph-checkpoint-postgres; this integration is the long-term memory half.
Open setup documentation →

Capabilities

Quick Start

from langchain.agents import create_agent
from 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 facts from 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.