cloudflare-do

Build Cloudflare Durable Objects for per-agent state, WebSockets, and hibernation.

22|4|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/joelhooks/atproto-agent-network --skill cloudflare-do
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-do
Source: https://github.com/joelhooks/atproto-agent-network/tree/main/.agents/skills/cloudflare-do
Command: npx skills add https://github.com/joelhooks/atproto-agent-network --skill cloudflare-do

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cloudflare Durable Objects provide a scalable pattern for maintaining per-agent state, handling lifecycle events, and enabling reliable conversations between agents over WebSocket connections.

Core Features & Use Cases

  • Durable Object-based agent state with per-instance storage and deterministic behavior.
  • WebSocket handling and hibernation support to maintain long-lived connections without consuming constant compute.
  • DO-to-DO communication and alarm scheduling for autonomous, federated agent workflows.

Quick Start

Instantiate a Durable Object, wire up a WebSocket connection, and configure storage and alarms to begin using the pattern.

Frequently Asked Questions about cloudflare-do

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

FAQPage Schema
How do I manage per-agent state with Cloudflare Durable Objects?

You can manage per-agent state with Cloudflare Durable Objects by applying a reusable pattern that provides per-instance storage and deterministic behavior for agent runtimes. This pattern wires DOs to persist memory and handle lifecycle events autonomously.

How does WebSocket hibernation work for Cloudflare Workers agents?

WebSocket hibernation in Cloudflare Durable Objects maintains long-lived connections without consuming constant compute. The pattern enables agents to sleep securely between active messages, reducing operational costs while retaining state.

Can I schedule autonomous tasks using Cloudflare Durable Object alarms?

Yes, you can schedule autonomous tasks using Cloudflare Durable Object alarms. The pattern configures alarm scheduling to trigger federated agent workflows and execute DO-to-DO communication seamlessly without external cron triggers.

What is needed to deploy Durable Objects for agent state on Cloudflare?

Deploying Durable Objects for agent state requires TypeScript or JavaScript, Cloudflare DO APIs for storage and websockets, and Wrangler configuration to build and deploy the agent runtime successfully to the edge.

Why use Durable Objects instead of standard Workers for persistent agent memory?

Use Durable Objects instead of standard Workers for persistent agent memory because DOs provide scalable, per-instance storage with deterministic behavior, whereas standard Workers are inherently stateless and lack built-in storage APIs.