A powerful agent skill for building and deploying stateful, durable AI agents, WebSocket-enabled applications, and background workflows on Cloudflare Workers.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agents-sdk
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install agents-sdk using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Cloudflare Agents SDK skill enables developers to construct highly resilient, stateful AI agents directly on top of the Cloudflare Workers global network. Integrating this skill allows your developer workflow to seamlessly leverage persistent state, real-time WebSocket communication, and durable execution primitives. With built-in features like SQLite-backed state management, callable Remote Procedure Calls (RPC), and resilient background execution, the SDK is perfect for creating chat agents, voice systems, and autonomous digital workers.
Deploying these agents utilizing Openclaw Skills maximizes your control over long-lived multi-step tasks. By tapping into durable objects and automated workflows, developers can confidently build production-grade agentic architectures. This integration delivers the foundational patterns, routing configuration, and API blueprints needed to successfully execute workflows on the edge.
@callable endpoints in your Cloudflare Workers script, establishing a SQLite-backed state synchronized seamlessly./agents/{agent-name}/{instance-name} or handled through custom handlers.Ensure your environment has the correct packages installed. Start by verifying or running the installation commands:
npm ls agents
If the package is not yet installed in your project, install it with npm:
npm install agents
For chat-centric agents, make sure to install the companion AI SDK libraries:
npm install agents @cloudflare/ai-chat ai @ai-sdk/react
Add the necessary configuration inside your wrangler.jsonc file to enable Durable Object bindings and database migrations:
{
"compatibility_flags": ["nodejs_compat"],
"durable_objects": {
"bindings": [{ "name": "MyAgent", "class_name": "MyAgent" }]
},
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["MyAgent"] }]
}
Note: Ensure you do not enable experimentalDecorators in your tsconfig.json to prevent breaking the @callable decorator structure.
The Cloudflare Agents SDK organizes and tracks state using SQLite-backed structures natively bound to Durable Objects. State changes must pass validation and trigger sync handlers across client connections.
| Configuration Type | Binding / Tag Requirement | Purpose |
|---|---|---|
durable_objects |
bindings key matching class name |
Binds the persistent state agent to the global route |
migrations |
Unique migration tags (e.g., v1, v2) |
Creates SQLite-backed schemas without rewriting historical migrations |
ai |
AI binding key |
Links the agent with Workers AI models and tools |
For state serialization, the typical payload structure consists of simple state models:
type State = {
count: number;
messages?: Array<{ role: string; content: string }>;
};
runFiber() and stash() to write code blocks that survive Worker eviction and process complex sequences to completion.this.queue() complete with automatic exponential backoff and jitter configurations via this.retry().McpAgent and secure transport layers like SSE and RPC with Openclaw Skills implementations.Loading
A comprehensive developer guide and AI skill for configuring, sending, and routing transactional emails seamlessly using Cloudflare Email Service.

A powerful SDK for building secure, isolated code execution environments inside Cloudflare Workers to power AI interpreters, CI/CD pipelines, and runtime sandboxes.

A high-performance AI coding assistant skill designed to build, optimize, and test stateful, coordinated applications using Cloudflare Durable Objects.

An automated workflow skill that enables AI agents to configure Cloudflare Turnstile widgets, deploy verification Workers, and implement frontend bot protection end-to-end.

An automated AI-powered arXiv academic paper collector and daily digest system designed specifically for Obsidian vaults on Windows.

An interactive educational skill providing deep historical analysis of the rise of ISIS, Zarqawi, and Middle Eastern counterterrorism based on Joby Warrick's Black Flags.








































