
Cloudflare Agents
github.com/cloudflare/agents- Category
- AI Agents
- Rank
- No. 385Tools index
- Pricing
- Freemium
- Type
- TOOL
- Builder
- cloudflare
- GitHub
- 5.4k stars
- Latest release
- agents@0.20.1
- Added
- Jul 4, 2026
About
Cloudflare Agents is a framework and runtime for building and deploying stateful AI agents on Cloudflare's global network, with persistent state via Durable Objects, WebSockets, scheduling, and edge execution.
What it does
Cloudflare Agents models each agent as an addressable actor with its own lifecycle and SQLite-backed data. Instances sleep while inactive, wake for work, synchronize changes across connected clients, and support scheduled jobs, live communication, callable operations, chat, voice, workflows, and protocol integrations.
Why it's ranked here
The strongest case is operational continuity. The SDK documents recovery from eviction, deployment, disconnects, and human approval waits, plus resumable streams and idempotent submissions. Its broad package set covers far more than chat plumbing. The cost is a strong commitment to Cloudflare Workers and Durable Objects.
What's good
State synchronization and typed remote calls reduce routine client-server plumbing. The framework supports both React and framework-neutral clients. Its chat layer persists messages and resumes streams, while the opinionated Think package adds branching history, compaction, search, durable turns, and sub-agent streaming. More than thirty demos cover practical integration patterns.
Tradeoffs
Deployment requires Durable Object bindings, SQLite migrations, compatibility settings, and Cloudflare tooling. Several ambitious surfaces remain experimental, including Think, Workspace, voice, sessions, and code execution. The documentation also marks security guidance, testing guidance, model integration, retrieval, SQL reference, and a complete API reference as unfinished.
How to use it well
Choose it for TypeScript applications where conversations, scheduled work, approvals, or real-time sessions must survive beyond one request. Start with the core actor primitives when you want control, or Think when its chat lifecycle fits. Bring your own model strategy and application authorization. It is not a general cloud-neutral agent runtime.
Technical notes+
The private pnpm monorepo in package.json uses Nx for build and test orchestration, with formatting, linting, type checking, export checks, browser tests, and end-to-end tasks. README.md lists the core agents package plus @cloudflare/ai-chat, @cloudflare/think, @cloudflare/codemode, @cloudflare/shell, @cloudflare/voice, @cloudflare/worker-bundler, and hono-agents. docs/agents/index.md separates Agent, AIChatAgent, Think, voice mixins, and Workflows by use case. docs/codemode/index.md describes connector-mediated sandbox execution with no direct network access, durable replay logs, approvals, and reusable snippets. docs/shell/index.md specifies SQLite-backed virtual files with optional R2 spillover. agent-think/test/server.ts uses MSW as a network tripwire, while examples/a2a/src/server.ts demonstrates an A2A JSON-RPC and SSE interface backed by Durable Object SQLite.
Observed
- License
- MIT
- Primary language
- TypeScript
- Package management
- Private pnpm monorepo with Nx task orchestration
- Install surface
- npm starter template plus separately installable core and scoped packages
- Interfaces
- TypeScript libraries, React hooks, vanilla JavaScript clients, MCP client and server support, HTTP, WebSockets, RPC, SSE, and A2A JSON-RPC
- Platform support
- Cloudflare Workers and Durable Objects, with browser-side agent and sandbox executor surfaces
- Repository structure
- Separate packages, documentation, design records, guides, experimental work, OpenAI SDK examples, and more than thirty self-contained demos
Read from README.md, package.json, docs/index.md, docs/AGENTS.md, docs/shell/index.md, docs/think/index.md, docs/voice/index.md, docs/agents/index.md, docs/codemode/index.md, agent-think/src/index.ts, agent-think/test/server.ts, examples/a2a/src/server.ts.
Intel on Cloudflare Agents
Tags
Tech Stack
Comments (0)
No comments yet
Indexed by a proprietary survey. Corrections welcome.