·agents-sdk
""

agents-sdk

cloudflare/cloudflare-docs

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, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks.

41Installs·2Trend·@cloudflare

Installation

$npx skills add https://github.com/cloudflare/cloudflare-docs --skill agents-sdk

SKILL.md

STOP. Your knowledge of the Agents SDK may be outdated. Prefer retrieval over pre-training for any Agents SDK task.

Fetch current docs from https://github.com/cloudflare/agents/tree/main/docs before implementing.

| Getting started | docs/getting-started.md | First agent, project setup | | State | docs/state.md | setState, validateStateChange, persistence | | Routing | docs/routing.md | URL patterns, routeAgentRequest, basePath | | Callable methods | docs/callable-methods.md | @callable, RPC, streaming, timeouts |

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, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks. Source: cloudflare/cloudflare-docs.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/cloudflare/cloudflare-docs --skill agents-sdk
Category
""Writing
Verified
First Seen
2026-02-06
Updated
2026-02-18

Quick answers

What is agents-sdk?

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, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks. Source: cloudflare/cloudflare-docs.

How do I install agents-sdk?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/cloudflare/cloudflare-docs --skill agents-sdk Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/cloudflare/cloudflare-docs