agents-sdk

Develop AI agents on Cloudflare Workers with durable workflows and WebSockets.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/involvex/llms-remote --skill agents-sdk-involvex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/involvex/llms-remote/tree/main/.agents/skills/agents-sdk
Command: npx skills add https://github.com/involvex/llms-remote --skill agents-sdk-involvex

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a robust framework for building stateful, real-time, and durable AI agents on Cloudflare Workers, simplifying complex application development.

Core Features & Use Cases

  • Stateful Agents: Manage persistent agent state with automatic synchronization.
  • Real-time Communication: Supports RPC, WebSockets, and streaming for interactive applications.
  • Durable Workflows: Orchestrate multi-step tasks with built-in retries and error handling.
  • Use Case: Develop a customer support chatbot that maintains conversation history, integrates with external APIs via callable methods, and can trigger long-running background processes for complex user requests.

Quick Start

Use the agents-sdk skill to create a new agent instance named 'my-counter' of the 'Counter' class.

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?

You can build stateful AI agents on Cloudflare Workers using this SDK, which provides automatic state synchronization, durable workflows, and real-time WebSocket support to manage persistent conversation context seamlessly.

Can I use WebSockets for real-time communication in Cloudflare Workers agents?

Yes, the SDK supports real-time communication in Cloudflare Workers agents through WebSockets, RPC methods, and streaming, allowing you to build interactive applications like customer support chatbots.

How do I orchestrate durable workflows with retries on Cloudflare Workers?

You orchestrate durable workflows on Cloudflare Workers using the SDK's built-in multi-step task capabilities, which provide automatic retries and error handling for long-running background processes triggered by user requests.

Does this agents SDK integrate with React for client-side applications?

Yes, the agents SDK integrates with React for client-side applications. It supports callable RPC methods and real-time WebSocket connections, allowing seamless interaction between your Cloudflare Workers backend and React frontend.

What is the best way to manage persistent state for AI chatbots on edge networks?

The best way to manage persistent state for AI chatbots on edge networks is using this SDK, which provides automatic state synchronization on Cloudflare Workers to maintain conversation history and context across sessions reliably.

Can I connect my Cloudflare Workers agent to an MCP server?

Yes, you can connect your Cloudflare Workers agent to an MCP server. The SDK includes built-in features for MCP server connections alongside email handling and callable RPC methods for extended agent capabilities.