StateSync is the global state database for AI coding agents. One shared memory across Cursor, Claude, OpenAI & Emergent — with 70% smaller context on every call.
# 2 lines. Any agent. Persistent memory.
pip install agent-state-api
from agent_state import StateSync
sync = StateSync(api_key="ss_live_...")
# Cursor saves the state
sync.checkpoint(
project="my-app",
messages=history,
files=["App.js", "server.py"],
agent="cursor",
)
# Claude Desktop resumes exactly where Cursor left off
ctx = sync.pull(project="my-app", agent="claude")
# → 12,400 tokens instead of 62,000 (80% smaller)A middleware layer that gives every AI agent the same brain — with the cost profile of a cache and the reliability of a database.
RAM + Disk architecture for agent memory. Hot messages stay verbatim, cold ones compress to dense semantic snapshots.
Cursor, Claude, OpenAI, Emergent — one shared brain. Switch tools mid-project without losing a single decision.
Hybrid semantic + temporal scoring keeps only mathematically relevant tokens. Verified 70–85% reduction on real projects.
Drop a JSON snippet into any MCP-compatible client. No plugins, no wrappers, no 50 different integrations.
See which agent wrote which line, when, and why. Compliance-ready trails across your whole engineering org.
`pip install`, paste your key, done. Works with the OpenAI Agents SDK and any framework speaking HTTP.
{
"mcpServers": {
"statesync": {
"url": "https://api.statesync.dev/mcp",
"headers": { "Authorization": "Bearer ss_live_..." }
}
}
}Every plan pays for itself after the first big context sync. Cancel anytime.
Instead of resending your whole conversation, our compression engine scores each message by semantic relevance to the current task and temporal recency. Only the mathematically relevant slice is passed to the LLM, plus a dense summary of the rest. On real coding sessions we measure 70–85% token reduction.
Anything that speaks HTTP or MCP: Cursor, Claude Desktop, Windsurf, OpenAI Agents SDK, Emergent, custom Python/TypeScript agents. Two lines of SDK code or a JSON snippet in your MCP config.
Only conversation history, file paths, and decisions are stored — never file contents. Data is encrypted at rest, and Enterprise customers can request EU-region hosting or self-hosted deployment.
Yes. 1,000 free state syncs per month forever, no credit card required. Great for solo vibe coders.
Enterprise plan includes on-prem / VPC deployment with dedicated support engineers.
Cut your token bill by 70% and give every AI in your stack the same long-term memory.