Cloudflare Agents
Create stateful AI agents with persistent memory, real-time connections, and scheduled tasks on Cloudflare.
What it is
Cloudflare Agents is an open-source SDK for building and deploying stateful AI agents on Cloudflare Workers, where each agent instance is backed by a Durable Object for persistent state and lifecycle, with built-in WebSockets, scheduling, model calls, and MCP.
At a glance
7/7 facts sourced- Pricing
- No separate charge for the SDK — you pay for underlying Workers and Durable Objects. Workers has a free tier (100k req/day) and a paid plan from $5/mo; Durable Objects bills requests, duration, and (from Jan 2026) SQLite storage.source ↗
- Hosting model
- Cloudflare serverless — Workers for compute with each agent as a Durable Object; deploy once and Cloudflare runs the agents across its global network.source ↗
- Memory & state
- A core strength — each agent is a Durable Object with SQLite-backed local storage, persistent memory, durable identity, and recoverable execution, with no external database required.source ↗
- MCP support
- Nativesource ↗
- Integrations
- Decorator methods, state sync, scheduling, WebSockets, AI chat persistence, workflow orchestration, email/voice, browser agents, sandboxed code execution, and React hooks (useAgent, useAgentChat).source ↗
- Model providers
- Workers AI by default, plus OpenAI, Anthropic, Google Gemini, or any other provider.source ↗
- Open source
- Yessource ↗
Editorial scorecard
Overall 4.5 / 5
Our opinion — the same 0–5 rubric is applied to every platform, including Alfe. See the rubric.
Strengths
- Durable per-agent state via SQLite-backed Durable Objects, with no external database.
- Native bidirectional MCP, including hosting remote MCP servers.
- Open source (MIT) and model-agnostic.
Trade-offs
- Paid usage requires the Workers Paid plan (from $5/mo) and bills across several metered resources.
- Tied to the Workers and Durable Objects runtime and its constraints, such as CPU-time limits.
- Durable Object SQLite storage billing is newly enabled (target Jan 2026) — worth monitoring for state-heavy agents.
Our take
Editorial opinion — not a hands-on test resultIn our opinion, Cloudflare Agents is one of the more compelling options when you want stateful agents with durable, per-instance memory and are happy to build on Cloudflare's runtime. Its memory model and native MCP support are standout strengths. The trade-off is platform lock-in to Workers and Durable Objects, and multi-resource billing you should model before scaling.
Sponsored
Alfe is a managed agent-hosting platform. If you want an agent hosted and running without wiring infrastructure yourself, see Alfe → (or read its dossier).
FAQ
- Where does an agent's state live?
- In a per-agent Durable Object with SQLite-backed storage — no separate database is needed.
- Which LLM providers can it use?
- Workers AI by default, plus OpenAI, Anthropic, Google Gemini, or any other provider.
Compare Cloudflare Agents
Sources
- Cloudflare Agents docs · accessed 2026-07-01
- Cloudflare Agents on GitHub (MIT) · accessed 2026-07-01
- Workers pricing · accessed 2026-07-01
- Cloudflare Agents MCP docs · accessed 2026-07-01
The Agent Examiner editorial · last updated 2026-07-01. Facts are drawn from each vendor’s own public materials; scores are our editorial opinion (methodology).
Product and company names are trademarks of their respective owners and are used here only to identify the products under discussion.