CA
Agent builders · MCP · API / SDK · Freemium

Cloudflare Agents SDK

Build stateful globally distributed AI agents on Durable Objects, SQLite, and Workers

What you stop vibecoding

Replaces custom scripts and internal glue code for sandboxes & code execution workflows.

Dossier overview

Cloudflare Agents SDK lets developers deploy persistent AI agents directly on Cloudflare's edge network using Durable Objects, WebSockets, scheduled tasks, SQLite state, and built-in remote MCP server hosting.

Quickstart

npm i agents

What people say on X

Live feed on X ↗

We pull unfiltered builder mentions (praise and complaints) from X on our daily sync. Inspect the live unfiltered stream directly on X right now:

Read latest "Cloudflare Agents SDK" mentions on X ↗

Best use cases

  • Deploying stateful per-user agents with embedded SQLite
  • Hosting remote OAuth-protected MCP servers at the edge
  • Running scheduled background agent loops with zero idle cost

Field notes

Strengths

  • Hibernatable WebSockets and scheduled alarms
  • Embedded SQLite database per agent instance
  • Designed specifically for agent builders

Tradeoffs

  • Free/starter tiers have rate or seat limits
  • Self-hosting requires managing your own model keys and runtime

Compare with Sandboxes alternatives

ToolBest forRuns inPricingSetup
Cloudflare Agents SDKAgent buildersMCP · API / SDKFreemiumCLI / SDK install
E2BDev teams / BYOKAPI / SDKFreemiumCLI / SDK install
DaytonaAgent buildersAPI / SDKFreemiumCLI / SDK install
ModalAgent buildersAPI / SDKFreemiumCLI / SDK install
Fly MachinesAgent buildersAPI / SDKPaidAPI / SDK setup

Top Cloudflare Agents SDK alternatives

All Sandboxes & Code Execution
E2

E2B

e2b.dev

Open-source Firecracker microVM sandboxes built for running AI agent code safely

SandboxesFreemium
DA

Daytona

daytona.io

Elastic sub-90ms stateful sandboxes for running AI-generated code and RL rollouts

SandboxesFreemium
MO

Modal

modal.com

Serverless cloud compute and fast isolated Python/GPU sandboxes for AI workloads

SandboxesFreemium