Skip to the collection

agent-native · Agent Runtime & Infrastructure

Cloudflare Agents SDK

Listed on The Agent-Native Index

Build and host durable AI agents on Cloudflare's global network

What it does

Cloudflare Agents SDK is a runtime for persistent, stateful agent workloads on Cloudflare. Each agent session is backed by Durable Objects with durable identity, local SQL storage, WebSocket/SSE communication, scheduling, and recovery. The same platform exposes tools for browser automation, sandboxed code execution, AI Search, MCP tools, and agentic payments.

The 2026 Agents releases expand the runtime with Project Think for long-running agents, sub-agents, durable recovery, Browser Run through a durable browser_execute tool, and Code Mode for letting agents write and execute typed code against external tools instead of carrying huge tool-definition prompts.


Agent-facing interfaces

How agents onboard

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

See the full onboarding section in the dossier.

Protocol surface

Interface Detail
TypeScript SDK agents package / cloudflare/agents examples
Workers runtime Durable Objects, Workers bindings, scheduled tasks, WebSockets, SSE
MCP Streamable HTTP servers, MCP clients, McpAgent, McpClient, createMcpHandler
Browser automation Browser Run / Browser Rendering bindings, CDP-oriented tools
Code execution Sandbox tools and Code Mode runtime
Observability Logs, metrics, traces integrated with the Agents runtime