Build Agents on Cloudflare
Build and host Agents on Cloudflare, connect chat, voice, email, Slack, and webhooks to a durable agent runtime with Browser, Sandbox, AI Search, MCP, Payments, and other MCP tools.
When you host agents on Cloudflare, each agent session has a durable identity, local SQL storage, real-time connections, scheduled work, and recoverable execution.
Deploy once and Cloudflare runs your agents across its global network, scaling to tens of millions of instances. No infrastructure to manage, no sessions to reconstruct, no state to externalize.
Controls planning, tool use, and response flow.
Durable identity, state, connections, scheduling, and recovery.
Agents on Cloudflare are composed from four parts:
- Communication channels define how users and systems reach your agent, such as chat, voice, email, Slack, webhooks, and other event sources.
- The agent harness defines the loop: how the agent calls models, selects tools, handles tool results, streams responses, and decides whether to continue. Use Project Think for an opinionated harness, or build your own loop directly on the Agents SDK runtime.
- The Agents SDK runtime provides durable infrastructure: the
Agentclass, state, sessions, routing, WebSockets, scheduling, fibers, and observability. - Tools give the agent capabilities: browser automation, sandboxed code execution, AI Search, MCP tools, and payments.
Three commands to a running agent. No API keys required — the starter uses Workers AI by default.
npx create-cloudflare@latest --template cloudflare/agents-startercd agents-starter && npm installnpm run devThe starter includes streaming AI chat, server-side and client-side tools, human-in-the-loop approval, and task scheduling — a foundation you can build on or tear apart. You can also swap in OpenAI, Anthropic, Google Gemini, or any other provider.
Build a streaming AI chat agent with tools and human-in-the-loop approvals.
Build an agent that responds to Slack messages, mentions, and commands.
Build a real-time voice agent with speech-to-text and text-to-speech.
Build an agent that can inspect pages, capture screenshots, and use browser tools.
Build an agent that sends, receives, routes, and replies to email.