agents-sdk

Develop AI agents on Cloudflare Workers with state, RPC, and workflows.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/fengzhizi319/opencode --skill agents-sdk-fengzhizi319
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/fengzhizi319/opencode/tree/main/packages/opencode/test/fixture/skills/agents-sdk
Command: npx skills add https://github.com/fengzhizi319/opencode --skill agents-sdk-fengzhizi319

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Enables developers to create, deploy, and manage AI agents on Cloudflare Workers with integrated state management, RPC, scheduling, and workflows.

Core Features & Use Cases

  • Agent Development: Simplifies building stateful AI agents supporting various functionalities like routing, callable methods, and workflows.
  • Cloudflare Integration: Seamlessly connects agents with Cloudflare's durable objects, MCP, email, and web sockets.
  • Use Case: Automate customer support flows where agents handle requests, maintain state, and trigger background workflows for responses.

Quick Start

Use the SDK to create an agent class, define callable methods, and deploy the agent to handle incoming requests.

Frequently Asked Questions about agents-sdk

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

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

The SDK enables building stateful AI agents on Cloudflare Workers by allowing you to define an agent class with callable methods. It integrates durable objects, RPC, and workflows for scalable real-time applications.

Can I use durable objects and web sockets for real-time agent communication?

Yes, the SDK seamlessly connects agents with Cloudflare's durable objects and web sockets. This enables real-time communication and persistent state management for your deployed AI workflows.

How do I automate customer support workflows with AI agents?

You can automate customer support workflows by creating agents that handle requests, maintain state, and trigger background workflows. The SDK simplifies routing and callable methods for automated responses.

Does the agents-sdk support scheduled tasks and background workflows?

Yes, the SDK supports scheduled tasks and background workflows natively. It provides integrated state management and scheduling within Cloudflare Workers to handle delayed or asynchronous tasks effectively.

What is the best way to manage state for AI agents in serverless environments?

Using an SDK integrated with Cloudflare Workers durable objects is an effective way to manage AI agent state. It handles state persistence, routing, and RPC without requiring external database setups.

Are client-side React hooks supported for interacting with deployed agents?

Yes, client-side React hooks are supported for interacting with deployed agents. This allows scalable, real-time applications to directly connect to backend AI agent state and callable methods.