Skip to content

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.

Channels
5
Agent
Agent harness

Controls planning, tool use, and response flow.

Agents SDK runtime

Durable identity, state, connections, scheduling, and recovery.

Agent class
Tools
5
Observability Logs · metrics · traces

Agents on Cloudflare are composed from four parts:

Get started

Three commands to a running agent. No API keys required — the starter uses Workers AI by default.

Terminal window
npx create-cloudflare@latest --template cloudflare/agents-starter
cd agents-starter && npm install
npm run dev

The 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.

Example agents

Chat agent

Build a streaming AI chat agent with tools and human-in-the-loop approvals.

Slack agent

Build an agent that responds to Slack messages, mentions, and commands.

Voice agent

Build a real-time voice agent with speech-to-text and text-to-speech.

Browser agent

Build an agent that can inspect pages, capture screenshots, and use browser tools.

Email agent

Build an agent that sends, receives, routes, and replies to email.