Agents are persistent, stateful execution environments for agentic workloads, powered by Cloudflare Durable Objects. Each agent has its own state, storage, and lifecycle — with built-in support for real-time communication, scheduling, AI model calls, MCP, workflows, and more.
Agents hibernate when idle and wake on demand. You can run millions of them — one per user, per session, per game room — each costs nothing when inactive.
AI-chat modules used to live in agents/ai-chat-agent, agents/chat, agents/ai-react, and agents/ai-types. Those entry points still re-export, but they're deprecated — import from @cloudflare/ai-chat directly. New chat-from-scratch projects should look at @cloudflare/think.
Examples
The examples/ directory has 30+ self-contained demos. A non-exhaustive tour:
Showcase — playground/ is the kitchen-sink app: state, callable methods, scheduling, chat, tools, MCP, workflows, email, voice — all in one UI
We are not accepting external pull requests at this time — the SDK is evolving quickly and we want to keep the surface area manageable. That said, we'd love to hear from you:
What is Cloudflare Agents SDK? Cloudflare Agents SDK is a coding tool listed on Scriptiii AI Tools. SDK for building stateful AI agents on Cloudflare Workers and Durable Objects. Pricing: Free. Free to use. Best for: ai-agents, framework, agent-sdk.
Questions & answers
Everything you need to know about Cloudflare Agents SDK
What is Cloudflare Agents SDK?
Cloudflare Agents SDK is a coding tool. SDK for building stateful AI agents on Cloudflare Workers and Durable Objects.
What does Cloudflare Agents SDK cost?
Free. Free to use.
What is Cloudflare Agents SDK best for?
ai-agents, framework, agent-sdk. It is filed under Coding.