cloudflare-agents

Develop autonomous agents on Cloudflare Workers with Durable Objects.

54|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/dennislee928/Ethic-Latex --skill cloudflare-agents-dennislee928
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-agents
Source: https://github.com/dennislee928/Ethic-Latex/tree/main/.claude/skills/cloudflare-agents
Command: npx skills add https://github.com/dennislee928/Ethic-Latex --skill cloudflare-agents-dennislee928

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agents, @cloudflare/puppeteer, @modelcontextprotocol/sdk, ai, @ai-sdk/openai, @ai-sdk/anthropic, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive framework for building AI-powered autonomous agents on Cloudflare Workers and Durable Objects, simplifying complex agent development and preventing common errors.

Core Features & Use Cases

  • Real-time Communication: Supports WebSockets and Server-Sent Events for bidirectional communication.
  • State Persistence: Offers built-in SQLite database for storing agent state (up to 1GB).
  • Task Scheduling: Enables scheduling tasks using delays, specific dates, or cron expressions.
  • Use Case: Develop a customer support chatbot agent that maintains conversation history, responds in real-time via WebSockets, and schedules follow-up tasks based on user interactions.

Quick Start

Use the cloudflare-agents skill to create a basic agent that handles HTTP requests and WebSocket connections.

Frequently Asked Questions about cloudflare-agents

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

FAQPage Schema
How do I build AI agents on Cloudflare Workers with persistent state?

You can build AI agents on Cloudflare Workers by utilizing Durable Objects for persistent state management, enabling real-time communication via WebSockets and Server-Sent Events while storing up to 1GB of data in a built-in SQLite database.

Can I schedule tasks and cron jobs for autonomous agents using Durable Objects?

Yes, you can schedule tasks for autonomous agents built on Durable Objects by configuring delays, specifying exact dates, or using standard cron expressions to trigger scheduled agent actions.

Does this framework support real-time communication via WebSockets and SSE for AI chatbots?

The framework supports real-time communication for AI chatbots by facilitating bidirectional data exchange through both WebSockets and Server-Sent Events (SSE) directly within Cloudflare Workers.

What are common development pitfalls when deploying AI agents on Cloudflare?

Common development pitfalls when deploying AI agents on Cloudflare include migration errors, binding mismatches, and state limit issues, which this framework specifically addresses and helps prevent during development.

How do I coordinate multiple AI agents within a Cloudflare serverless environment?

Multi-agent coordination within a Cloudflare serverless environment is facilitated through the framework's Durable Objects architecture, allowing multiple autonomous AI agents to interact and manage shared states effectively.

What is the storage capacity limit for agent state persistence in Cloudflare Durable Objects?

The storage capacity limit for agent state persistence in Cloudflare Durable Objects is up to 1GB, provided through a built-in SQLite database that stores the agent's state and conversation history.