Cloudflare Agents SDK
TypeScript SDK for building stateful, durable AI agents that run on Cloudflare Durable Objects.
What it does
Developers build agents as classes that each get their own persistent state, SQL storage, WebSockets, schedules and lifecycle, hibernating when idle. The SDK adds chat, email, voice and webhook channels, an MCP client, and tools such as sandboxes, browsers and web search, and can also host your own MCP servers.
What an agent can do with it
- persist per-agent state and SQL
- sync state to React clients
- schedule durable tasks
- connect to MCP servers
- build remote MCP servers
- handle chat, email and voice channels
How to set it up
npm install agents (or start from the agents-starter template) and deploy to Workers with Wrangler.
Full steps: Cloudflare's documentation.
Use cases that use it
Review Cloudflare audit logs and settings with an agent
Use Cloudflare's MCP servers to ask who changed DNS or firewall settings and get a report from… Read →
IT & DevOps · Cloudflare MCP servers · Claude · CloudflareSort a live news or link feed into topic buckets
Send each incoming headline or post to Jev with a fixed bucket list, so analysts read a sorted feed… Read →
Decision models (Jev) · Jev (TypeSafe AI) · RSS · Cloudflare WorkersTell human form fills from bot submissions
Measure how a visitor fills a form, describe it in a few sentences, and let Jev decide person or… Read →
Decision models (Jev) · Jev (TypeSafe AI) · Cloudflare Workers · Next.jsScreen user-submitted listings before they go live
Ask a decision model a set of questions about each new listing's text, links and images, and send… Read →
Decision models (Jev) · Jev (TypeSafe AI) · Cloudflare Clef · Cloudflare WorkersSources
Descriptions are written by Agents Lookup unless marked as quoted. Each link opens the original.
- Official page: developers.cloudflare.com/agents (checked 2026-11-19)
- Cloudflare list where it appears: github.com/cloudflare/agents