Cloudflare Agents SDK
Deploy agents at the edge on Cloudflare Workers.
Open source
Best for teams that want to run agents at the edge with ultra-low latency, leveraging Cloudflare's global network, Durable Objects for state, and AI Gateway for model routing.
Selection advice
Choose Cloudflare Agents SDK when edge latency and global distribution are your primary constraints. It's the path to Agent deployment on Workers, not a general-purpose framework.
Best for
- edge deployment
- Cloudflare ecosystem
- low-latency agents
- global distribution
Not ideal for
- teams not on Cloudflare
- agents requiring heavy GPU compute
- long-running workloads
Core concepts
edge agentsWorkersDurable ObjectsAI Gateway
Minimal implementation shape
Write an agent as a Cloudflare Worker, store state in Durable Objects, route model calls through AI Gateway, and deploy globally in seconds.