@agentstate/sdk
Typed client for all primitives, plus Vercel AI SDK and LangGraph adapters.
npm i @agentstate/sdk- @agentstate/sdk/ai-sdk
- @agentstate/sdk/langgraph
# one api. five primitives. no redis, no postgres, no glue.
~/as $ agentstate init .
$ # what's inside
$ # how it works
Agents talk to one edge API. Five coordination primitives share auth, projects, and durable storage — so you never wire Redis locks, custom memory tables, and chat logs separately.
Agents coordinate through one hub
REST, TypeScript/Python SDK, or MCP — same auth, same project.
Cloudflare Worker validates the key, scopes, and rate limits.
State, leases, claims, tokens, and conversations behind one API.
D1 at the edge — versioned events, search indexes, audit trails.
Dashboard analytics, webhooks, bulk export, and SSE state watch.
$ # five primitives
why not just memory?[compare]
$ # install
Copy a recipe for your stack. Same API from TypeScript, Python, AI SDK, LangGraph, or raw REST.
$ # examples that ship
full guides in [docs]· runnable samples on[github/examples]
$ # packages
Install the client for your language, wire MCP into your IDE, or call the REST API directly.
Typed client for all primitives, plus Vercel AI SDK and LangGraph adapters.
npm i @agentstate/sdkHTTPX client with LangGraph checkpointer extras for Python agent fleets.
pip install agentstateRun AgentState tools in Cursor, Claude Desktop, or Windsurf over stdio.
npx @agentstate/mcpPoint any MCP client at the hosted endpoint — OAuth 2.1 or bearer key.
https://agentstate.app/api/mcpSnake_case JSON, bearer auth, cursor pagination — small enough for agent context.
curl https://agentstate.app/api/v1/...$ # also
$ # pricing
AgentState is free. No paid tier. Use the hosted cloud without a credit card, or run the full MIT-licensed stack on your own Cloudflare account forever.
all five primitives · dashboard · sdks · remote mcp
mit forever · your d1 · your limits
# ship the agent, not the backend.
Spin up a project, grab a key, and persist your first conversation in two minutes. no credit card.
~/as $ agentstate start