Cloudflare AI: Browser Rendering & Web Tools

You ask your assistant to "take a screenshot of that product page" and it tries with the built-in headless browser — but the page is behind a Cloudflare challenge, or the JavaScript-heavy layout won't render locally. You're stuck copying URLs and switching to a desktop browser just to see what the page actually looks like.

Cloudflare's Browser Rendering API fixes this. It runs a full headless Chromium instance on Cloudflare's edge network — fast, reliable, and capable of rendering even the most complex JavaScript-heavy pages. Connect it to Meggy, and your assistant gains the ability to capture high-fidelity screenshots, extract full-page content, and interact with web pages that would otherwise be inaccessible.

What It Does

Cloudflare Browser Rendering gives Meggy a remote headless browser with several advantages over the built-in local browser:

Capability Local Browser Cloudflare Rendering
JavaScript rendering Basic (Chromium) Full V8 engine on edge
Cloudflare-protected sites Often blocked Bypasses challenges
Performance Uses your CPU/RAM Runs on Cloudflare's edge
Availability Requires Chromium installed Always available
Screenshots Local only High-fidelity remote

When Cloudflare credentials are configured, Meggy automatically uses the remote rendering API for browser operations that benefit from it — while still falling back to the local headless browser when the API is unavailable.

Setting Up

Getting started takes about two minutes:

  1. Create a Cloudflare account — Go to dash.cloudflare.com/sign-up and create a free account (or sign into an existing one)
  2. Find your Account ID — It's displayed on your Cloudflare dashboard under Workers & Pages in the right sidebar
  3. Create an API Token — Go to Profile → API Tokens and create a token with the Browser Rendering permissions
  4. Enter credentials in Meggy — Open Settings → Models → Configure Web APIs, expand the Cloudflare section, paste your Account ID and API Token, and click Test Connection

Your credentials are stored in the system keychain — encrypted and never saved in plain text.

During Onboarding

If you're setting up Meggy for the first time, the Web APIs step in the onboarding wizard includes a Cloudflare section. Expand it, enter your credentials, and you're done — no extra configuration needed.

How It Integrates

Cloudflare Browser Rendering enhances Meggy's existing browser tools:

The integration is seamless — your assistant uses the best available rendering method automatically. If Cloudflare is configured and the local browser fails, the remote renderer takes over.

Pricing

Cloudflare Browser Rendering is a paid service. Check Cloudflare's pricing page for current rates. The free tier includes limited requests per day, which is usually enough for personal use.

What's Next?