# Agents SDK

> Stateful agents on Cloudflare Workers

**Subcategory:** Cloudflare  
**License:** Apache-2.0  
**Source:** https://github.com/cloudflare/skills/blob/main/skills/agents-sdk/SKILL.md

---

## When it is useful

Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

## The Catch

Cloudflare Agents SDK on Workers (state, RPC, Workflows). “MCP/chat agent” triggers steal from the MCP cluster.
