$npx skillfedfor your agent

cloudflare-agents

Deploy intelligent agents directly on Cloudflare Workers with built-in support for multiple LLM providers and the Model Context Protocol. Register custom tools, manage state across Cloudflare bindings, and handle real-time interactions via HTTP, WebSockets, or Server-Sent Events.

Cloudflare Agents lets you build and deploy AI agents on Cloudflare Workers with LLM and tool integration.

AI-generated summary based on this skill's SKILL.md

★ 196  29 MITupdated by secondsky

Decision gist · record as of 2026-07-25

Cloudflare Agents lets you build and deploy AI agents on Cloudflare Workers with LLM and tool integration. Deploy intelligent agents directly on Cloudflare Workers with built-in support for multiple LLM providers and the Model Context Protocol. Register custom tools, manage state across Cloudflare bindings, and handle real-time interactions via HTTP, WebSockets, or Server-Sent Events.

manual: git clone https://github.com/secondsky/claude-skills → cp -r claude-skills/plugins/cloudflare-agents/skills/cloudflare-agents ~/.claude/skills/cloudflare-agents
plugins/cloudflare-agents/skills/cloudflare-agents/SKILL.md · version 2f90a110

Use it when

  • cloudflare-agents integrates with multiple LLM providers through a unified interface.
  • Yes, cloudflare-agents supports advanced agent patterns including Retrieval-Augmented Generation (RAG) and browser automation.

Verify before relying

Read SKILL.md below before installing (23 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

secondsky/claude-skills/cloudflare-agents · repository language: TypeScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I build AI agents on Cloudflare Workers?

cloudflare-agents lets you deploy intelligent agents directly on Cloudflare Workers with built-in support for multiple LLM providers and the Model Context Protocol. You can register custom tools, manage state across Cloudflare bindings, and handle real-time interactions via HTTP, WebSockets, or Server-Sent Events to create responsive, serverless AI agents.

What LLM providers does cloudflare-agents support?

cloudflare-agents integrates with multiple LLM providers through a unified interface. You can use OpenAI, Anthropic, and other providers by configuring them with the Model Context Protocol (MCP). This allows you to switch between providers or use multiple simultaneously within your agent implementation on Workers.

Can cloudflare-agents implement RAG and browser automation?

Yes, cloudflare-agents supports advanced agent patterns including Retrieval-Augmented Generation (RAG) and browser automation. These patterns enable your agents to retrieve contextual information and interact with web pages, extending their capabilities beyond simple LLM calls to perform complex, multi-step tasks on Cloudflare Workers.

How does cloudflare-agents handle state management?

cloudflare-agents provides built-in state management through Cloudflare bindings, allowing you to persist and retrieve agent state across requests. Combined with streaming support for real-time interactions, this enables stateful conversations and complex workflows while maintaining the serverless architecture of Cloudflare Workers.

What communication protocols does cloudflare-agents support?

cloudflare-agents handles real-time interactions through multiple protocols: HTTP for standard request-response patterns, WebSockets for persistent bidirectional communication, and Server-Sent Events (SSE) for server-to-client streaming. This flexibility lets you choose the best transport for your agent's use case on Workers.

Is cloudflare-agents open source and what license does it use?

Yes, cloudflare-agents is open source under the MIT license, allowing you to freely use, modify, and distribute it in your projects. This permissive license makes it easy to integrate the framework into commercial and personal applications.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Cloudflare Agents

Last Updated: 2025-11-21

Quick Start

export default {
  async fetch(request, env, ctx) {
    const agent = {
      tools: [
        { name: 'getTodo', handler: async ({id}) => ({id, title: 'Task'}) }
      ],
      async run(input) {
        return await processWithLLM(input, this.tools);
      }
    };

    return Response.json(await agent.run(await request.text()));
  }
};

Core Features

  • Tool Integration: Register and execute tools
  • LLM Providers: OpenAI, Anthropic, Google Gemini
  • MCP Protocol: Model Context Protocol support
  • Cloudflare Bindings: D1, KV, R2, Durable Objects

Agent Pattern

const agent = {
  tools: [...],
  systemPrompt: 'You are a helpful assistant',
  model: 'gpt-4o',
  async run(input) {
    // Process with LLM
  }
};

Resources

Core Documentation

- references/patterns-concepts.md (317 lines) - What is Cloudflare Agents, patterns & concepts, critical rules, known issues prevention

(truncated - see the full file via the links below)

File tree — 15 files
plugins/cloudflare-agents/skills/cloudflare-agents/SKILL.md
plugins/cloudflare-agents/skills/cloudflare-agents/references/advanced-features.md
plugins/cloudflare-agents/skills/cloudflare-agents/references/agent-api.md
plugins/cloudflare-agents/skills/cloudflare-agents/references/configuration-guide.md
plugins/cloudflare-agents/skills/cloudflare-agents/references/error-catalog.md
plugins/cloudflare-agents/skills/cloudflare-agents/references/http-sse-guide.md
plugins/cloudflare-agents/skills/cloudflare-agents/references/mcp-integration.md
plugins/cloudflare-agents/skills/cloudflare-agents/references/patterns-concepts.md
plugins/cloudflare-agents/skills/cloudflare-agents/references/state-management.md
plugins/cloudflare-agents/skills/cloudflare-agents/references/websockets-guide.md
plugins/cloudflare-agents/skills/cloudflare-agents/templates/basic-agent.ts
plugins/cloudflare-agents/skills/cloudflare-agents/templates/browser-agent.ts
plugins/cloudflare-agents/skills/cloudflare-agents/templates/calling-agents-worker.ts
plugins/cloudflare-agents/skills/cloudflare-agents/templates/chat-agent-streaming.ts
plugins/cloudflare-agents/skills/cloudflare-agents/templates/hitl-agent.ts

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Build and deploy AI agents on Cloudflare Workers”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

mkfast-deploy
by iamzhihuix · iamzhihuix/happy-claude-skills

Mkfast Deploy streamlines deploying mkfast-template and TanStarter projects to Cloudflare Workers by detecting which components you've enabled and generating only the steps you need. It handles template placeholder validation, environment setup, and production safety checks to prevent common deployment pitfalls.

MITdocs in Chineseupdated Apr 2026
★ 305repo stars
Cloudflare Workers Deployments
by connorads · connorads/dotfiles

Automate Cloudflare Workers deployments through Git-connected build pipelines, Wrangler configuration, and custom routing. Covers Workers Builds setup, repository connections, build triggers, static assets, custom domains, and Cloudflare Access policies for hostname protection.

no license declared → metadata onlyupdated Jul 2026
★ 15repo stars
cloudflare-zero-trust-access
by secondsky · secondsky/claude-skills

This skill provides production-ready patterns for adding Cloudflare Access authentication to Workers applications. It includes Hono middleware for one-line setup, manual JWT validation templates, service token support for backend auth, and solutions for common issues like CORS preflight blocking and missing headers.

MITupdated Jul 2026
★ 196repo stars
cloudflare-mcp-server
by secondsky · secondsky/claude-skills

Create Model Context Protocol servers running on Cloudflare Workers using TypeScript. Define tools, resources, and prompts that AI agents can invoke, with support for multiple transports including WebSocket and HTTP. Includes templates, deployment guides, and Durable Objects integration for stateful applications.

MITupdated Jul 2026
★ 196repo stars
building-ai-agent-on-cloudflare
by null-shot · null-shot/cloudflare-skills

This skill generates production-ready AI agents deployed to Cloudflare Workers using the Agents SDK. It handles persistent state management, real-time WebSocket communication, scheduled background tasks, and tool calling—everything needed for stateful, scalable agent applications.

Apache-2.0updated Jan 2026
★ 0repo stars
cloudflare-workers-ai
by secondsky · secondsky/claude-skills

Cloudflare Workers AI enables serverless GPU inference directly within Workers, supporting LLMs, embeddings, image generation, and vision models. Stream responses to avoid timeouts and buffer issues, integrate with AI Gateway for caching and cost tracking, and choose from optimized models like Llama, Qwen, and Flux.

MITupdated Jul 2026
★ 196repo stars

More skills agents-sdk (Apache-2.0)

Tags
serverless-aiagent-frameworkllm-integrationtool-orchestrationedge-computingmcp-protocolagentic-workflowsbrowser-automationrag-systems