Kitesurf is an open-source browser for agents, not a Chrome replacement
Cloudflare has open-sourced Kitesurf, its browser for AI agents, under the Apache 2.0 license. The code is on GitHub, including the engine, the Rust core, the DOM shims, the renderer, and a CLI. Kitesurf runs entirely on Cloudflare Workers. It parses HTML, applies CSS, executes page JavaScript, and renders screenshots without a browser container. It speaks the Chrome DevTools Protocol, so Puppeteer, Playwright, and agents that already use CDP can connect to it.
The important word in that description is "agents." Kitesurf is not trying to be a general-purpose browser for people. It is a browser-shaped runtime for the tasks agents actually perform: fetch a page, parse it, execute its JavaScript, extract text, click a button, take a screenshot. Cloudflare's pitch is that Chromium was built for humans, and that its tabs, themes, extensions, and pixel-perfect rendering are overhead when the consumer is a model.
That pitch is credible, but it comes with trade-offs. Kitesurf uses much less CPU and memory than Chromium on the workloads Cloudflare measured, and it is slower in wall-clock time. It is under heavy development. Self-hosting the open-source code requires a paid Workers plan because it uses Dynamic Workers to isolate pages. The open-source release is a real milestone, but it is not a drop-in replacement for Chrome.
What Kitesurf is, and what it is not
Kitesurf is a stateless browser engine. The Engine component handles browser sessions and client connections. PageScript runs the page and its JavaScript. PageRenderer draws the result. The three components communicate over Workers RPC. The Engine holds session state; the other components are designed to be disposable. If a renderer gets stuck, the Engine can kill it and start a new one.
The protocol choice is smart. CDP is the interface that existing browser automation tools already speak. A team that has a Puppeteer script does not need to rewrite it to try Kitesurf. The same is true for Playwright, chrome-remote-interface, and the Chrome DevTools frontend. Cloudflare's Browser Run product exposes Kitesurf as an option with a browser=kitesurf parameter, and the local development server exposes a CDP endpoint at ws://127.0.0.1:8787/devtools/browser.
What Kitesurf is not is a full Chrome implementation. Cloudflare says it passes more than 215,000 Web Platform Tests and is adding hundreds of passing tests every week. That is a large number, and it covers the parts that matter for agents: CSS, DOM, HTML, selection, SVG, and XHR. It is not the whole web platform. A site that depends on a Chrome-specific API, a proprietary codec, a browser extension, or a rendering quirk that Kitesurf has not implemented may behave differently.
That is the normal state of a young browser engine. The question is not whether it is identical to Chrome. It is whether it is good enough for the agent tasks you care about. For a screenshot of a marketing page, a form fill, or a text extraction, it may be. For a complex single-page application with heavy WebGL, it may not be.
The architecture is a Rust/Wasm browser kit
Kitesurf is built from a stack of open-source Rust projects compiled to WebAssembly. Blitz provides HTML parsing, the DOM, layout, and painting. Stylo, Firefox's CSS engine, provides CSS parsing, cascading, and computed styles. Boa runs JavaScript inside Wasm as a last resort when the code cannot run in a Dynamic Worker. Linebender libraries provide text layout and 2D graphics, and Krilla generates PDF output.
That is a pragmatic assembly of components rather than a from-scratch browser. Cloudflare says it started from obscura, a Rust headless engine, and ported it to Workers with the help of an AI agent. The first port did not work well. The team then gave the agent a detailed plan and a clear definition of success, and the result was good enough to build on.
The testing strategy is the part other browser projects should copy. Cloudflare used the Web Platform Tests as a set of goalposts for the AI agents, and it added integration and visual regression tests that run multi-step Puppeteer scripts against both Chromium and Kitesurf on real websites. The visual comparison catches differences that a DOM assertion would miss. That is how you use an agent to build a browser without letting it declare victory on a page that renders as a blank rectangle.
The isolation model is also worth understanding. Kitesurf assumes every page load is untrusted. The SandboxOutbound worker is the only component that can touch the network. It enforces CORS, injects browser-shaped headers, filters responses, and keeps each page's cookies in a separate jar. The other components get only the network access they need. That is a sensible design for an agent browser, because an agent may be pointed at arbitrary URLs chosen by a model or a user.
The performance trade-off: memory versus latency
The benchmark numbers tell a clear story. On a 14-URL corpus, with medians of five Browser Run quick-action runs, Kitesurf used 380 ms of CPU for a screenshot versus 1,173 ms for a warm Chromium, a 3.1x reduction. For HTML extraction, it used 229 ms versus 877 ms, a 3.8x reduction. Memory was 57.8 MiB versus 271.0 MiB for a screenshot, a 4.7x reduction, and 39.4 MiB versus 273.7 MiB for HTML extraction, a 7.0x reduction.
The wall-clock numbers go the other way. A screenshot took 1,148 ms in Kitesurf versus 637 ms in Chromium, so Kitesurf was 1.8x slower. HTML extraction took 820 ms versus 472 ms, 1.7x slower. Cloudflare attributes the gap to Chromium's JIT and to rasterization and JPEG/PNG encoding, and says it will keep optimizing.
That trade-off is the whole product thesis. If you pay for CPU and memory, Kitesurf can be much cheaper per page. If you pay for latency, Chromium is better. An agent that runs thousands of pages in a batch cares about the former. An interactive agent that needs a response in under a second cares about the latter. The right choice depends on the workload, and Cloudflare is not claiming that Kitesurf wins every benchmark.
The stateless design reinforces the batch use case. A stateless component can be killed and restarted, run in parallel, and sized to demand. That is a good fit for bursty agent traffic. It is a worse fit for a long-lived browser session with a lot of client-side state, because the state has to be reconstructed or kept in the Engine.
Self-hosting is open source, not free
The Apache 2.0 license lets teams read the code, modify it, and deploy their own instance. That is a real benefit for organizations that need to inspect the security model or run the browser inside their own Cloudflare account. The repository includes the engine, the Rust core, the DOM shims, the renderer, and the CLI, so the important parts are there.
The catch is the infrastructure. Kitesurf uses Dynamic Workers to create isolated Workers for pages. Dynamic Workers require a Workers Paid plan. The code is open source, but running it is not free. A team that wants to self-host needs to budget for the plan, the build pipeline, and the operational work of running a browser engine. That is still likely cheaper than running Chromium at scale, but it is not zero.
The local development story is straightforward. Clone the repository, run pnpm install --frozen-lockfile, then pnpm run dev. The first build compiles the Rust core, which takes time; later builds reuse the cache. Wrangler serves the engine at http://127.0.0.1:8787. From there, a Puppeteer script can connect to the CDP endpoint and take a screenshot. The deploy command is pnpm run deploy.
The contribution process is also worth noting. Cloudflare asks contributors to open an issue with a minimal reproduction or a proposed approach and get vouched by a maintainer before opening a pull request. That is a sensible way to manage a project that is under heavy development and likely to receive a lot of low-quality AI-generated patches. It also means the project is not a free-for-all; the maintainers are trying to keep the review queue usable.
The compatibility and prompt-injection questions
The biggest open question is compatibility. A browser engine is a moving target. The web platform adds features constantly, and sites depend on quirks that are not in the spec. Kitesurf's 215,000 passing WPT tests are impressive, but they are a snapshot. The project needs to keep up with new tests, new browser APIs, and new site behavior. That is a full-time job, and Cloudflare is committing to it.
The second question is JavaScript coverage. Kitesurf runs most page JavaScript in Dynamic Workers, but it uses Boa, a Rust ECMAScript engine, for eval because Workers does not support native eval. Running a JavaScript engine inside a JavaScript runtime is not the most efficient design, and Boa's compatibility may lag behind V8. Cloudflare says it will migrate away from Boa when native eval support lands in Workers. Until then, pages that rely heavily on eval may behave differently.
The third question is prompt injection. An agent browser is a bridge between a model and the open web. A page can contain instructions that the model interprets as part of its task. Kitesurf's isolation model protects the browser process from the page, but it does not protect the model from the page's text. That is a problem for the agent harness, not just the browser. Cloudflare's announcement does not claim to solve it, and teams should not assume that a sandboxed browser is a safe browser.
The fourth question is anti-bot behavior. Many sites try to detect headless browsers and block them. Kitesurf may look different from Chrome at the network and rendering layers, which could make some sites treat it as a bot. That is a feature for site owners and a problem for agents. The project will need to document its behavior and let operators make informed choices.
What would make agent browsers mainstream
The case for an agent browser is strong. Agents need to interact with websites that were designed for humans, and running a full Chromium instance per agent is expensive. A lighter engine that speaks CDP, runs on a serverless platform, and scales horizontally is a better fit for many workloads. Kitesurf is the most credible open-source attempt at that idea so far.
The case is not yet closed. Kitesurf is slower in wall time, incomplete in compatibility, and under heavy development. It requires a paid Workers plan to self-host, and it is tied to Cloudflare's platform in ways that may matter for portability. Teams that need a general-purpose browser should still use Chromium. Teams that need a cheap, isolated, scriptable browser for batch agent work should test Kitesurf against their own pages and measure the results.
The open-source release changes the calculus. Before, Kitesurf was a managed Cloudflare product. Now, a team can read the code, run it locally, and audit the isolation model. That is the right direction for infrastructure that agents will use to touch the web. The next milestone is not a bigger benchmark. It is a clear compatibility matrix, a documented security model, and evidence that the engine can keep up with the web without a full-time browser team.
Sources
- Kitesurf is now open source — Cloudflare Blog, 2026-11-13
- Introducing Kitesurf — Cloudflare Blog, 2026-08-06
- cloudflare/kitesurf — GitHub