Jorge Turbica / blog · Blog ← All articles ES · Leer en español
AI

Cloudflare open-sources Kitesurf, its agent browser: 50 MiB per page versus Chrome's 329

Cloudflare open-sources Kitesurf, a Workers-based browser that uses 6x less memory than Chrome but is slower. How to try it and when it pays off.

50 MiB of memory to render a typical page, against 329 MiB for a freshly started Chrome. That is the number that best sums up Kitesurf, the browser for AI agents that Cloudflare open-sourced under Apache 2.0 on November 13, 2026. The flip side sits in the same table: it takes 1.79 s on that page, versus 1.01 s for Chrome.

Cloudflare launched it as a service in August and promised to open it up. Now anyone can read the code, run it locally with Puppeteer or deploy their own instance on Workers.

What it is

Kitesurf is a stateless browser engine that runs entirely on Cloudflare Workers: it parses HTML, applies CSS, runs the page's JavaScript and renders screenshots without spinning up a browser container. It speaks the Chrome DevTools Protocol (CDP), so any CDP client, like Puppeteer or an agent that already knows how to drive Chrome, can connect to it.

It doesn't reinvent everything; it assembles Rust components compiled to WebAssembly:

  • Blitz for HTML, the DOM, layout and painting.
  • Stylo for CSS parsing, the cascade and computed styles.
  • Boa as a JavaScript interpreter, only as a last resort: page JavaScript normally runs in isolated Dynamic Workers.
  • Linebender for text and 2D graphics, and Krilla for PDF output.

The architecture has three parts: the Engine manages sessions and connections, PageScript runs the page and its JavaScript, and PageRenderer draws the result.

How to try it

The repo starts locally with Wrangler:

bash
git clone https://github.com/cloudflare/kitesurf.git
cd kitesurf
pnpm install --frozen-lockfile
pnpm run dev

The first build of the Rust core is slow; after that the cache kicks in. The server listens on http://127.0.0.1:8787 and you drive it like a remote Chrome:

javascript
import puppeteer from "puppeteer-core";

const browser = await puppeteer.connect({
  browserWSEndpoint: "ws://127.0.0.1:8787/devtools/browser",
});
try {
  const page = await browser.newPage();
  await page.goto("https://example.com/");
  await page.screenshot({ path: "page.png" });
} finally {
  await browser.disconnect();
}

Deploying to your own account is pnpm run deploy, but you need the Workers Paid plan, because every page runs in an isolated Dynamic Worker.

Kitesurf vs Chrome

Cloudflare publishes its own benchmark comparing Kitesurf, Browser Run (its managed Chrome service, reused across pages) and a Chrome started from scratch for every render. These are medians over 38 pages, five runs each, from November 14, 2026, rendering a screenshot:

KitesurfBrowser RunChrome (cold start)
Wall time1.79 s1.20 s1.01 s
CPU time387 ms1.67 s767 ms
Memory50 MiB400 MiB329 MiB

If you only ask for the HTML, with no screenshot, memory drops to 29 MiB and wall time to 1.37 s, versus 894 ms for Chrome.

On compatibility, Kitesurf passes 77.3% of the Web Platform Tests files it runs (9,093 of 11,764). Cloudflare highlights a 98.3% subtest pass rate, but that number is inflated by the encoding/ folder, which contributes 1.14 million subtests, almost all green. The areas an agent cares about are weaker: fetch/ at 74%, shadow-dom/ at 68% and css/ at 87.8%.

Where it wins and where it loses

It wins on density. With more than six times less memory and half the CPU of a cold Chrome, far more concurrent sessions fit on the same hardware. For an agent that opens hundreds of pages in parallel just to read them, that matters more than half a second of latency. And being stateless, there are no profiles or hung processes to clean up.

It loses on latency and fidelity. On heavy pages the gap widens a lot: the Cloudflare blog takes 4.12 s versus 983 ms in Chrome, and the Wikipedia portal 3.55 s versus 852 ms. With 77% of WPT files passing, some sites will render differently or simply break. For end-to-end tests of your own site, where you want to see what users see, Chrome is still the reference.

The agent fit is good. Because it speaks CDP, switching from Chrome to Kitesurf means changing a WebSocket URL, and its WebMCP support (80.3% of those tests passing) points at sites that expose tools directly to agents.

Verdict

Who it's for: teams already on Workers running agents that read lots of pages, extract data or take screenshots at scale, where cost per session is what counts. Also anyone who wants to see how a browser gets built from modern Rust components.

Who it's not for: anyone who needs rendering fidelity, JavaScript-heavy sites or end-to-end tests, and anyone who doesn't want to be tied to Workers, since running it outside Cloudflare isn't a documented option. The numbers come from Cloudflare's own 38-page benchmark: before switching, I'd rerun the comparison on the pages your agent actually visits.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗