Skip to content
aicoolies logo
Cloudflare Agents logo

Cloudflare Agents

Build and deploy AI agents on Cloudflare's edge network

Cloudflare Agents is an open-source SDK for building and deploying AI agents that run on Cloudflare's global edge network. It provides durable state, scheduled tasks, WebSocket communication, and browser rendering capabilities within Workers. Agents persist across requests using Durable Objects and can orchestrate multi-step workflows with built-in MCP server support. Over 7,000 GitHub stars.

About Cloudflare Agents

Cloudflare Agents extends the Workers platform with primitives specifically designed for AI agent workloads. Traditional serverless functions are stateless and short-lived, making them unsuitable for agents that need to maintain conversation context, track multi-step task progress, and coordinate long-running workflows. Cloudflare Agents solves this by building on Durable Objects to give each agent instance persistent state that survives across HTTP requests and WebSocket connections, enabling agents that remember context, resume interrupted tasks, and maintain ongoing relationships with users.

The SDK provides a structured framework for defining agent capabilities including tool registration, message handling, scheduled task execution, and human-in-the-loop interaction patterns. Agents can render web pages using Cloudflare's Browser Rendering API for tasks that require visual web interaction, and communicate with clients through real-time WebSocket connections for streaming responses and progress updates. Built-in MCP server support means agents can expose their capabilities as Model Context Protocol tools, making them composable with other AI systems and IDE integrations like Claude Code and Cursor.

Deploying agents to Cloudflare's edge network provides sub-50ms cold start times and automatic geographic distribution across 300+ data centers worldwide, eliminating the latency penalties of centralized agent hosting. The pay-per-use pricing model means agents that sit idle between interactions cost nothing, making it economically viable to deploy specialized agents for niche use cases. With over 7,000 GitHub stars and Cloudflare's infrastructure backing, the Agents SDK represents a significant infrastructure play in the AI agent deployment landscape, particularly for teams already building on the Workers ecosystem.

Pricing & Platform Specs

Pricing Summary

Open-source stateful AI agent development SDK and runtime built on Cloudflare Workers, Durable Objects, and Workers AI (Apache-2.0 License). The SDK is completely free ($0). Production execution utilizes standard Cloudflare infrastructure pricing: Free tier includes 100,000 requests/day, Workers Paid starts at $5/month (including 10M requests), and Durable Objects are billed based on active execution time and storage, drastically reduced by automated agent hibernation.

full pricing breakdown →

Supported Platforms

Cloudflare Workers — global edge deployment

Explore categories, tags & use cases

Tool infrastructure for AI agents

Composio connects AI agents to 1,000+ app toolkits with managed auth, delegated user connections, sessions, tool search, MCP gateway support, CLI workflows, and sandboxed workbench execution. It targets developers building Claude, Codex, Cursor, LangChain, CrewAI, OpenAI Agents SDK, and custom agent workflows that need authenticated business actions without hand-rolling every API integration.

freemiumOpen Source

TypeScript AI agent framework

TypeScript-native framework for building AI agents and workflows with great developer experience. Provides primitives for agents with tool calling, RAG pipelines, workflow orchestration with branching/parallel steps, and integration connectors. First-class TypeScript support with type-safe tool definitions. Local dev server with playground UI for testing. Growing as a LangChain alternative for TypeScript developers building AI apps.

Open Source

Durable execution engine for workflows and AI agents

Restate is a durable execution engine that provides reliable workflow orchestration for AI agents and backend services. It runs as a single binary with no external dependencies, delivering sub-50ms latency and 94K+ actions per second. Supports TypeScript, Python, Go, Java, and Kotlin SDKs with built-in retries, sagas, and virtual object state. MIT licensed with 3,700+ GitHub stars.

freemiumOpen Source

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Cloudflare Agents?

Cloudflare Agents is an open-source SDK for building and deploying AI agents that run on Cloudflare's global edge network. It provides durable state, scheduled tasks, WebSocket communication, and browser rendering capabilities within Workers. Agents persist across requests using Durable Objects and can orchestrate multi-step workflows with built-in MCP server support. Over 7,000 GitHub stars.

Is Cloudflare Agents free?

Yes — Cloudflare Agents is open source and free to use. Open-source stateful AI agent development SDK and runtime built on Cloudflare Workers, Durable Objects, and Workers AI (Apache-2.0 License). The SDK is completely free ($0). Production execution utilizes standard Cloudflare infrastructure pricing: Free tier includes 100,000 requests/day, Workers Paid starts at $5/month (including 10M requests), and Durable Objects are billed based on active execution time and storage, drastically reduced by automated agent hibernation.

Is Cloudflare Agents open source?

Yes — Cloudflare Agents is open source.

Is Cloudflare Agents still maintained?

Yes — Cloudflare Agents is active. Its listing was last verified on September 6, 2026.

What are the best Cloudflare Agents alternatives?

The first editor-selected Cloudflare Agents alternatives are Composio, Mastra, Restate.