Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

agents-sdk

Skill by openai

Builds AI agents on Cloudflare Workers using the Agents SDK. For developers creating stateful agents, durable workflows, WebSocket apps, scheduled tasks, MCP servers, or chat applications.

  • Score 87
  • 8.4k stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install agents-sdk

Built from the published package, never by AI.

git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.claude/skills && cp -r /tmp/plugins/plugins/cloudflare/skills/agents-sdk ~/.claude/skills/agents-sdk

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install agents-sdk in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through building agents with the Cloudflare Agents SDK on Cloudflare Workers. It covers the Agent class, SQLite-backed state that syncs to clients, callable RPC methods invoked over WebSocket, and scheduling. It also covers Workflows through AgentWorkflow, MCP servers and clients, email handling, streaming chat, and React hooks.

The skill tells the assistant to fetch current docs from the cloudflare/agents repository before implementing, because its own knowledge may be outdated. It includes a table of doc topics and code examples for Wrangler configuration, the Agent class, routing, and a React client. It is aimed at developers building stateful agents and chat apps on Cloudflare.

Written from the project's SKILL.md and checked against it.

What it can do

  • State managementUses setState with validateStateChange and onStateUpdate hooks, with SQLite-backed persistence.
  • Callable RPCExposes @callable() methods over WebSocket, with an optional streaming mode.
  • SchedulingRuns one-time delayed tasks, cron tasks, and recurring intervals with scheduleEvery().
  • WorkflowsStarts durable multi-step background tasks through AgentWorkflow using runWorkflow.
  • MCP integrationConnects to MCP servers or builds your own MCP server with McpAgent.
  • Streaming chatBuilds chat agents with AIChatAgent and resumable streams.
  • React hooksProvides useAgent and useAgentChat for client apps.
  • Email handlingReceives and replies to emails with secure routing.

What you need

  • Cloudflare Workers project
  • npm with the agents package
  • Wrangler configuration with Durable Object bindings
  • React for the client hooks

Try asking

  • Create a stateful Counter agent on Cloudflare Workers with validated state
  • Add a cron-scheduled task to my Agent that runs every hour
  • Build a React client that connects to my agent with useAgent

Good to know

  • Code Mode is marked as experimental.
  • The skill says its built-in knowledge may be outdated and prefers fetching current docs.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/cloudflare/skills/agents-sdk/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • LICENSE.txt11 KB
  • SKILL.md5 KB
  • agents/openai.yaml342 B
  • assets/cloudflare-small.svg1 KB
  • assets/cloudflare.png1 KB
Show all 12 files
  • references/callable.md2 KB
  • references/codemode.md5 KB
  • references/email.md3 KB
  • references/mcp.md4 KB
  • references/state-scheduling.md4 KB
  • references/streaming-chat.md4 KB
  • references/workflows.md4 KB

Alternatives to agents-sdk

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

agents-sdk: common questions

What is the Cloudflare Agents SDK used for?

The source says it is used to build AI agents on Cloudflare Workers, including stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, and chat applications.

Does the skill use the latest Cloudflare docs?

The skill tells the assistant to fetch current docs from the cloudflare/agents repository before implementing. It says this is preferred over pre-trained knowledge.

Does it support MCP servers?

Yes. The source covers connecting to MCP servers with the MCP client and building your own with McpAgent.

How do I install agents-sdk?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is agents-sdk free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is agents-sdk safe to use?

It scores 87 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to agents-sdk?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

agents-sdk Install

Add to stack

Loading.