Cloudflare Agents
TypeScript SDK for stateful AI agents running on Cloudflare Durable Objects
What it is
An SDK for building AI agents as persistent, stateful units on Cloudflare Workers, each backed by a Durable Object with its own SQLite storage. It covers real-time state sync over WebSockets, scheduled tasks, durable workflows with human approval, AI chat with resumable streaming, MCP servers and clients, voice, email, and sandboxed code execution. Developers building per-user or per-session agents on Cloudflare use it along with React hooks and a plain JavaScript client to connect frontends.
