Cloudflare open-sources Kitesurf
Most AI agents that touch the web today drive a copy of Chrome. That works. But Chrome was built for people. It carries tabs, video, GPU work and a lot of memory that an agent never uses. When you run thousands of agent tasks a day, you pay for all of it.
In August 2026 Cloudflare launched Kitesurf, a browser built for agents instead. On November 13 they open sourced it under the Apache 2.0 license. Here is what it is, how it compares to the options you already use, and where we think it fits.
What Kitesurf is
Kitesurf is a headless browser engine that runs inside V8 isolates on Cloudflare Workers. It is not Chromium. Cloudflare built it from Rust projects compiled to WebAssembly: Blitz and Stylo for HTML and CSS, Parley for text layout, and blitz-paint for drawing pixels. The team says it went from idea to launch in 12 weeks, and it already passes over 215,000 Web Platform Tests.
Three ideas shape it:
- Stateless. Every session starts fresh. No cookies or history carry over.
- Cheap per task. It skips what agents do not need, like tabs, extensions, video and smooth 60 FPS rendering.
- Untrusted by default. Every page is treated as hostile input. Only one part of the browser can reach the network.
Under the hood it has four parts:
- Engine is the only public part. It speaks the Chrome DevTools Protocol (CDP) and holds session state.
- PageScript runs each page in its own isolate, with its own DOM and JavaScript.
- PageRenderer turns the page into a PNG. If it stalls, the Engine kills it and retries.
- SandboxOutbound is the only part with network access. It enforces CORS and keeps a separate cookie jar per page.
Because it speaks CDP, your existing Puppeteer, Playwright and MCP clients should work with it.
How to use it
Kitesurf lives inside Cloudflare Browser Run. It is off by default. You turn it on with one parameter: browser=kitesurf. Leave it out and you get the normal Chromium browser.
Take a screenshot with one API call:
curl -X POST 'https://api.cloudflare.com/client/v4/accounts/ACCOUNT_ID/browser-run/screenshot?browser=kitesurf' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"url": "https://example.com"}' \
--output screenshot.pngFrom a Worker:
export default {
async fetch(request, env) {
return env.BROWSER.quickAction("screenshot", {
url: "https://example.com",
browser: "kitesurf",
});
},
};From the Playwright code you already have:
import { chromium } from "playwright";
const browser = await chromium.connectOverCDP(
"wss://api.cloudflare.com/client/v4/accounts/ACCOUNT_ID/browser-run/devtools/browser?browser=kitesurf",
{ headers: { Authorization: "Bearer API_TOKEN" } }
);
const page = await browser.newPage();
await page.goto("https://news.ycombinator.com");
const html = await page.content();A few notes. It does not run under wrangler dev, so set "remote": true on the binding when you test. If you just want to poke at it, the public playground at kitesurf.dev lets you load any URL and inspect the DOM, console and network.
Since the open source release you can also run your own copy. Clone the repo and run it locally with Wrangler, or deploy it to your own Cloudflare account. Deploying needs a Workers Paid plan. It ships with no login of its own, so put it behind Cloudflare Access or something similar before you expose it.
The numbers
Cloudflare compared Kitesurf to a warm pool of Chromium on 14 URLs, taking the median of five runs:
- CPU per screenshot: 380 ms vs 1,173 ms (about 3.1x less)
- CPU per HTML extraction: 229 ms vs 877 ms (about 3.8x less)
- Memory per screenshot: 57.8 MiB vs 271.0 MiB (about 4.7x less)
- Memory per HTML extraction: 39.4 MiB vs 273.7 MiB (about 7x less)
- Wall time per screenshot: 1,148 ms vs 637 ms (about 1.8x slower)
- Wall time per HTML extraction: 820 ms vs 472 ms (about 1.7x slower)
So Kitesurf uses 3 to 7 times less CPU and memory, but each task takes a bit longer. Most of the extra time goes to drawing and encoding images. For agents that is usually fine. The model call next to it takes seconds anyway.
One honest caveat. Browser Run bills by browser time and concurrent browsers, not by CPU or memory. So at today's prices most of the savings land on Cloudflare's side, and slower wall time could cost you slightly more. Kitesurf is free during beta, so this is not real money yet. Watch the pricing when the beta ends.
Kitesurf vs a native browser vs headless Chrome
There are three ways to give an agent a browser today:
- Native browser: a real Chrome window on a real computer, driven by an agent. Think Claude in Chrome, or a headed Playwright session. It has a person's real logins.
- Headless Chrome: Chromium with no window, run by Puppeteer or Playwright on your servers, or by Browser Run's default mode.
- Kitesurf: the new agent engine above.
Here is how they stack up.
- Site compatibility. Native: everything. Headless Chrome: almost everything. Kitesurf: good on common sites, but test each site you care about.
- Visual accuracy. Native and headless Chrome are pixel perfect. Kitesurf is close, not exact.
- Logged in sessions. Native uses the person's real logins. Headless Chrome can reuse saved profiles. Kitesurf has none, since every session is fresh.
- Bot challenges. Native passes most. Headless Chrome often gets flagged. Kitesurf fails checks that need a real TLS fingerprint.
- Video and WebGL. Native and headless Chrome: yes. Kitesurf: no.
- Speed per task. Native and headless Chrome are fast. Kitesurf is about 1.7x slower.
- Resources per task. Native is the heaviest. Headless Chrome uses around 270 MiB. Kitesurf uses around 40 to 60 MiB.
- Scale. Native is one machine and usually one person. Headless Chrome scales to hundreds, with real ops work. Kitesurf scales to thousands of short tasks with no servers.
- Ops work. Native needs a person's computer to be on. Headless Chrome means patching, pools and crash handling. Kitesurf on Cloudflare needs almost none.
- Isolation. Native shares the person's profile and data. Headless Chrome isolates at the container level. Kitesurf isolates every page and routes all traffic through one gate.
Pros and cons of Kitesurf
Pros
- Much less CPU and memory per task, so many more agents can run at once.
- No browser servers or pools to manage.
- Drop in. One parameter, and your CDP tools keep working.
- Safer by design. Fresh session, isolated pages and a single network gate shrink the damage a bad page can do.
- Open source under Apache 2.0, so you can self host it.
- Free during beta.
Cons
- It is beta. Some sites will not render right.
- Slower wall time than Chromium.
- No video, no WebGL.
- No persistent logins or long sessions.
- Fails bot challenges that check TLS fingerprints.
- Only a subset of CDP, so some Puppeteer or Playwright calls may not work.
- Not pixel perfect, so it is wrong for visual regression tests.
- Runs only on Cloudflare's network, and pricing after beta is unknown.
Use cases and examples
1. Research agents that read lots of public pages. A due diligence agent reads 300 competitor websites and pulls out pricing, products and team size. Each page is public, short and read only. That is exactly the job Kitesurf was built for.
2. Feeding document AI pipelines. A bylaw assistant for BC municipalities needs clean HTML or PDFs of bylaw pages from dozens of city websites. Kitesurf renders each page, the pipeline extracts the text, then chunks and indexes it.
3. Change monitoring. Every morning an agent snapshots regulator pages and lender rate sheets, diffs the HTML, and flags any wording change for a human. Stateless, bursty and cheap is a perfect match.
4. Screenshots and link previews at scale. Generate a thumbnail for every listing link shared in a CRM, or a PDF of every page an agent cited in a report.
5. Opening untrusted links safely. An email triage agent needs to check links in inbound mail. A fresh, isolated session per link limits the blast radius of a malicious page or a prompt injection.
When to use something else. Logged in portals, like lender portals, MLS or court e-filing, need a native browser or headless Chrome with a saved profile. Sites with heavy bot protection, video, maps or WebGL dashboards need Chromium. So do visual regression tests.
What about logins?
Kitesurf cannot save a login. Every session starts fresh, so no passwords, cookies or profiles carry over. Cloudflare says it is not a fit for long, logged in sessions.
If you still need a login, you have a few options:
- Log in at the start of every run. Your script fills in the login form, does the task, and the session ends. Store the password in Workers Secrets, never in code. This only works for simple forms. MFA, CAPTCHAs and bot checks will stop it. Logging in hundreds of times a day can also get the account flagged.
- Pass in a session cookie. Log in once somewhere else, then set the cookie through CDP when each session starts. Kitesurf supports only part of CDP, so test this on your site first.
- Use Chromium for those sites. It is the same Browser Run API. Just drop
browser=kitesurf. Headless Chrome can reuse sessions and saved profiles. - Use a native browser. If the task needs a real person's account, let an agent like Claude in Chrome work in their own logged in browser. Your pipeline never stores a password.
- Self host and extend it. It is open source, so you could add session storage to your own copy. For most teams that is more work than it is worth.
Our advice: if the site has an API or OAuth, use that instead of a browser login. Otherwise send anything behind a login to Chromium or a native browser, and keep Kitesurf for public pages.
How we would use it
This is not either or. The pattern we like is a simple router:
- Try Kitesurf first for public, read only work.
- If the page fails to render or gets blocked, retry on headless Chromium.
- If the task needs a person's login, hand it to a native browser with that person in the loop.
async function getPage(env, url) {
try {
return await env.BROWSER.quickAction("content", { url, browser: "kitesurf" });
} catch (err) {
// Fall back to the default Chromium browser
return await env.BROWSER.quickAction("content", { url });
}
}Kitesurf is early. But it shows where agent infrastructure is heading: browsers built for machines, priced per task and isolated by default. If your agents read the web at volume, test your top sites on it now while it is free.