agents-sdk

Build AI agents on Cloudflare Workers with the Agents SDK.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sethcarlton/dotfiles --skill agents-sdk-sethcarlton
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/sethcarlton/dotfiles/tree/main/.agents/skills/agents-sdk
Command: npx skills add https://github.com/sethcarlton/dotfiles --skill agents-sdk-sethcarlton

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Agents SDK enables developers to build and deploy robust AI agents on Cloudflare Workers, handling state, routing, and durable tasks with ease.

Core Features & Use Cases

  • Agent lifecycle: Create stateful agents with persistent state and lifecycle hooks.
  • State management & RPC: Manage state, expose @callable RPC methods, and orchestrate workflows.
  • Workflows & React hooks: Integrate durable workflows and React client hooks for frontend apps.

Quick Start

Install the Agents SDK, scaffold a Cloudflare Workers project, and begin implementing a simple agent that exposes a callable method and persists state.

Frequently Asked Questions about agents-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build AI agents on Cloudflare Workers?

You can build AI agents on Cloudflare Workers by installing the Agents SDK to manage agent lifecycle, persistent state, routing, and durable tasks within your TypeScript or JavaScript project.

How does the Agents SDK handle state management for AI agents?

The Agents SDK handles state management by providing persistent state storage and lifecycle hooks, allowing your Cloudflare Workers agents to maintain data across requests and sessions reliably.

Can I use React hooks with Cloudflare Workers agents?

Yes, the Agents SDK supports React hooks for client apps, enabling seamless integration between your frontend applications and stateful AI agents deployed on Cloudflare Workers.

Do I need TypeScript to use the Agents SDK on Cloudflare Workers?

TypeScript or JavaScript tooling is required to use the Agents SDK. You need to scaffold a Cloudflare Workers environment and install the Agents package to start implementing your agents.

How do I expose callable methods on Cloudflare Workers agents?

You can expose callable methods on Cloudflare Workers agents by using the @callable RPC decorator provided by the Agents SDK, allowing external clients to trigger specific agent functions.

What is the best way to orchestrate durable workflows for AI agents?

The best way to orchestrate durable workflows is using the Agents SDK's workflows integration, which manages long-running tasks and coordinates state across your Cloudflare Workers agents.