cloudflare-browser — community cloudflare-browser, moltworker, community, ide skills, Claude Code, Cursor, Windsurf

Verified
v1.0.0
GitHub

About this Skill

Ideal for Automation Agents requiring seamless interaction with headless browsers via Cloudflare's Browser Rendering service Run OpenClaw, (formerly Moltbot, formerly Clawdbot) on Cloudflare Workers

cloudflare cloudflare
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The cloudflare-browser skill by cloudflare is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for Automation Agents requiring seamless interaction with headless browsers via Cloudflare's Browser Rendering service

Core Value

Empowers agents to control headless browsers using Chrome DevTools Protocol over WebSocket, enabling advanced browser automation and rendering capabilities with Cloudflare Workers, leveraging environment variables like `CDP_SECRET` and configurations in `openclaw.json`

Capabilities Granted for cloudflare-browser

Automating browser interactions for web scraping tasks
Generating screenshots of web pages using Cloudflare's Browser Rendering
Debugging web applications with CDP protocol over WebSocket

! Prerequisites & Limits

  • Requires `CDP_SECRET` environment variable set
  • Needs browser profile configured in `openclaw.json` with `cdpUrl` pointing to the worker endpoint
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

cloudflare-browser

Install cloudflare-browser, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Cloudflare Browser Rendering

Control headless browsers via Cloudflare's Browser Rendering service using CDP (Chrome DevTools Protocol) over WebSocket.

Prerequisites

  • CDP_SECRET environment variable set
  • Browser profile configured in openclaw.json with cdpUrl pointing to the worker endpoint:
    json
    1"browser": { 2 "profiles": { 3 "cloudflare": { 4 "cdpUrl": "https://your-worker.workers.dev/cdp?secret=..." 5 } 6 } 7}

Quick Start

Screenshot

bash
1node /path/to/skills/cloudflare-browser/scripts/screenshot.js https://example.com output.png

Multi-page Video

bash
1node /path/to/skills/cloudflare-browser/scripts/video.js "https://site1.com,https://site2.com" output.mp4

CDP Connection Pattern

The worker creates a page target automatically on WebSocket connect. Listen for Target.targetCreated event to get the targetId:

javascript
1const WebSocket = require('ws'); 2const CDP_SECRET = process.env.CDP_SECRET; 3const WS_URL = `wss://your-worker.workers.dev/cdp?secret=${encodeURIComponent(CDP_SECRET)}`; 4 5const ws = new WebSocket(WS_URL); 6let targetId = null; 7 8ws.on('message', (data) => { 9 const msg = JSON.parse(data.toString()); 10 if (msg.method === 'Target.targetCreated' && msg.params?.targetInfo?.type === 'page') { 11 targetId = msg.params.targetInfo.targetId; 12 } 13});

Key CDP Commands

CommandPurpose
Page.navigateNavigate to URL
Page.captureScreenshotCapture PNG/JPEG
Runtime.evaluateExecute JavaScript
Emulation.setDeviceMetricsOverrideSet viewport size

Common Patterns

javascript
1await send('Page.navigate', { url: 'https://example.com' }); 2await new Promise(r => setTimeout(r, 3000)); // Wait for render 3const { data } = await send('Page.captureScreenshot', { format: 'png' }); 4fs.writeFileSync('out.png', Buffer.from(data, 'base64'));

Scroll Page

javascript
1await send('Runtime.evaluate', { expression: 'window.scrollBy(0, 300)' });

Set Viewport

javascript
1await send('Emulation.setDeviceMetricsOverride', { 2 width: 1280, 3 height: 720, 4 deviceScaleFactor: 1, 5 mobile: false 6});

Creating Videos

  1. Capture frames as PNGs during navigation
  2. Use ffmpeg to stitch: ffmpeg -framerate 10 -i frame_%04d.png -c:v libx264 -pix_fmt yuv420p output.mp4

Troubleshooting

  • No target created: Race condition - wait for Target.targetCreated event with timeout
  • Commands timeout: Worker may have cold start delay; increase timeout to 30-60s
  • WebSocket hangs: Verify CDP_SECRET matches worker configuration

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is cloudflare-browser?

Ideal for Automation Agents requiring seamless interaction with headless browsers via Cloudflare's Browser Rendering service Run OpenClaw, (formerly Moltbot, formerly Clawdbot) on Cloudflare Workers

How do I install cloudflare-browser?

Run the command: npx killer-skills add cloudflare/moltworker/cloudflare-browser. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for cloudflare-browser?

Key use cases include: Automating browser interactions for web scraping tasks, Generating screenshots of web pages using Cloudflare's Browser Rendering, Debugging web applications with CDP protocol over WebSocket.

Which IDEs are compatible with cloudflare-browser?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for cloudflare-browser?

Requires `CDP_SECRET` environment variable set. Needs browser profile configured in `openclaw.json` with `cdpUrl` pointing to the worker endpoint.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add cloudflare/moltworker/cloudflare-browser. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use cloudflare-browser immediately in the current project.

Related Skills

Looking for an alternative to cloudflare-browser or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI