Agent
1,584 installs
Cloudflare Agents SDK
by cloudflare/skills
Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks,…
Skill content
Build stateful AI agents on Cloudflare Workers with persistent state, RPC methods, scheduling, and workflow orchestration.
- Core features include SQLite-backed state management, callable RPC methods via @callable(), one-time and recurring task scheduling, and durable multi-step workflows
- Supports MCP server integration (both client and server modes), email routing with secure replies, and streaming chat with resumable streams on disconnect
- Includes React hooks (useAgent, useAgentChat) for client-side state binding and real-time WebSocket communication
- Agents route to /agents/{agent-name}/{instance-name} and validate state changes synchronously before persistence; always fetch current docs from the GitHub repository to stay current with SDK updates
Cloudflare Agents SDK
Your knowledge of the Agents SDK may be outdated. Prefer retrieval over pre-training for any Agents SDK task.
Retrieval Sources
Cloudflare docs: https://developers.cloudflare.com/agents/