agents-sdk

Build stateful AI agents with durable workflows on Cloudflare Workers.

71|18|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/Science-Discovery/Aether --skill agents-sdk-science-discovery
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agents-sdk
Source: https://github.com/Science-Discovery/Aether/tree/main/packages/opencode/test/fixture/skills/agents-sdk
Command: npx skills add https://github.com/Science-Discovery/Aether --skill agents-sdk-science-discovery

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build stateful AI agents on Cloudflare Workers to enable developers to orchestrate edge AI tasks with durable workflows, real-time communication, and seamless client integration.

Core Features & Use Cases

  • Persistent agent state with the Agent class and state management
  • Durable workflows, scheduling, and real-time WebSocket apps
  • RPC exposure via @callable methods for frontend and external services
  • MCP integration and React hooks for client apps
  • Use cases include chat bots, autonomous edge agents, and edge-deployed workflows

Quick Start

Install the Agents SDK in your project and start by defining an Agent class with callable methods to expose RPC endpoints.

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 by using the Agent class to manage persistent state, enabling durable workflows and real-time WebSocket applications across edge deployments.

Can I use RPC methods to expose agent functions to external services?▼

Yes, you can expose RPC methods to external services by defining @callable methods within your Agent class, allowing frontend applications and external systems to trigger agent functions directly.

Does Cloudflare Workers support durable workflows and scheduled tasks for AI agents?▼

Cloudflare Workers supports durable workflows and scheduled tasks for AI agents through the Agents SDK, enabling reliable execution of long-running edge processes and autonomous operations.

What is the best way to manage persistent state for real-time chat applications at the edge?▼

The best way to manage persistent state for real-time chat applications at the edge is using the Agent class in Cloudflare Workers, which provides built-in state management and WebSocket support.

Do I need React hooks to integrate Cloudflare agents with my client app?▼

You do not strictly need React hooks, but the Agents SDK provides them to seamlessly integrate client applications with Cloudflare Workers agents, simplifying frontend state and data synchronization.