agents-sdk

Build stateful AI agents on Cloudflare Workers using the Agents SDK.

29|1|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/bohdanbirdie/cloudstash --skill agents-sdk-bohdanbirdie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/bohdanbirdie/cloudstash/tree/main/.agents/skills/agents-sdk
Command: npx skills add https://github.com/bohdanbirdie/cloudstash --skill agents-sdk-bohdanbirdie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build AI agents on Cloudflare Workers using the Agents SDK to simplify creation and management of stateful agents.

Core Features & Use Cases

  • Durable state management with Agent class and SQLite persistence
  • Callable RPC and real-time WebSocket interactions
  • Workflows integration for long-running tasks and human-in-the-loop
  • MCP support and React hooks for client apps
  • Quick-start examples and tooling for deployment

Quick Start

Install dependencies and start the development server to begin building Cloudflare Agents with the SDK.

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?

Build stateful AI agents on Cloudflare Workers using the Agents SDK, which provides an Agent class with SQLite persistence to manage durable state. It simplifies creating and managing agents without external state infrastructure.

Does the Cloudflare Agents SDK support real-time WebSocket applications?

Yes, the Cloudflare Agents SDK supports real-time WebSocket applications by providing callable RPC and WebSocket interactions. This enables two-way communication between clients and your stateful agents.

How do I handle long-running workflows and human-in-the-loop tasks in Cloudflare Workers?

Handle long-running workflows and human-in-the-loop tasks in Cloudflare Workers by integrating the Agents SDK with Cloudflare Workflows. This manages durable execution and pauses for external input.

Can I use React hooks with AI agents built on Cloudflare Workers?

Yes, you can use React hooks with AI agents built on Cloudflare Workers. The Agents SDK provides client-side React hooks to connect frontend applications directly to backend agent state and RPC.

What is the best way to add scheduled tasks to a Cloudflare AI agent?

The best way to add scheduled tasks to a Cloudflare AI agent is using the Agents SDK. It includes built-in support for scheduled tasks alongside durable state management and MCP server capabilities.

Do I need a separate database for state management with Cloudflare Workers agents?

No, you do not need a separate database for state management with Cloudflare Workers agents. The Agents SDK handles durable state persistence automatically using SQLite within the Agent class.