Tutorials
Kitesurf: Cloudflare's Browser for AI Agents, Self-Hosted in Four Commands (No Chromium)
Kitesurf self-hosting guide: Cloudflare's open-source browser engine for AI agents runs without Chromium. Steps, requirements and the real deploy cost.

Last updated: November 27, 2026 · 7-minute read
Cloudflare open-sourced a browser engine with no Chromium in it on November 13, 2026. The repository, cloudflare/kitesurf, had 1,889 stars when checked on November 16, 2026. This post walks through self-hosting it locally and shows exactly what deploying it costs.
What Kitesurf Is
Kitesurf is an experimental browser engine that runs on Cloudflare Workers. It parses HTML, applies CSS, executes page JavaScript, and renders screenshots and PDFs without Chrome or a browser container. The engine is stateless and speaks the Chrome DevTools Protocol, so CDP clients such as Puppeteer can drive it.
Cloudflare introduced Kitesurf in August 2026 as the browser inside its Browser Run service. A September 2026 update added WebMCP support, new APIs and improved compatibility. The source was published on GitHub on November 13, 2026 under Apache 2.0.
When checked on November 16, 2026, the repo had 93 forks and 376 commits, and was created September 30, 2026. Bundled fonts, data and dependencies keep their own licenses.
Cloudflare's docs say Kitesurf correctly renders pages such as TodoMVC (vanilla, React, Vue, Angular, Preact), Wikipedia, Hacker News, the Cloudflare Blog, and much of the Cloudflare dashboard. The August announcement reported Kitesurf passing 215,000+ Web Platform Tests, and growing.
TL;DR
- Kitesurf runs on Cloudflare Workers with no Chromium dependency.
- You can self-host it locally with four commands after installing the toolchain.
- It exposes a CDP endpoint for Puppeteer and other clients.
- A Workers Paid plan is required to deploy on Cloudflare.
- Local development costs nothing beyond your own machine.
- The engine has no built-in authentication; protect it before real use.
How the No-Chromium Engine Works
Kitesurf has three main parts. The Engine manages browser sessions and client connections. PageScript runs the page and its JavaScript. PageRenderer draws the result, with a separate Rust scene rasterizer turning recorded page scenes into pixels.
Other packages include dom-shim for DOM APIs inside the page worker, core for Rust layout, paint and JavaScript engine code, scene-host-wasm for local scene rasterization, and kitesurf-cli as a terminal client. Each page gets its own isolated Worker. The engine's configuration includes a Worker Loader binding, and Kitesurf uses it to start a separate worker for each page and renderer. Cloudflare Dynamic Workers provide this capability.
Page scripts normally run in Dynamic Workers using V8 isolates. When that is not possible, Boa — a JavaScript engine written in Rust and compiled to WebAssembly — runs page JavaScript inside Wasm, as the last resort only when Dynamic Workers cannot run the JavaScript. The Rust stack includes Blitz for HTML, DOM, layout and painting, Stylo for CSS, and Linebender libraries for text and graphics. Krilla generates PDF output.
Kitesurf patches its Rust dependencies, and the patch series live in scripts/patches/, where Bazel applies them itself. Cloudflare's stated goal is to give AI agents a lightweight browser that uses less CPU and memory than a full browser like Chromium and scales on demand across the Workers network. That is Cloudflare's own claim. The open-source announcement publishes no CPU or memory figures of its own.
Requirements Before You Start
You need these tools before building. The README lists them explicitly.
- Bazelisk, installed as bazel. Bazel builds everything and downloads the pinned Bazel, Rust toolchains, wasm-bindgen and binaryen itself.
- Node.js 22 or newer.
- pnpm 9.15.4, the version the repository pins in package.json. Install it with npm install --global pnpm@9.15.4.
- On macOS, GNU tar (brew install gnu-tar).
- Rust through rustup, needed only for editing vendored crate patches. The file rust-toolchain.toml pins the same nightly Bazel uses.
Self-Host Kitesurf in Four Commands
Run these four commands. The README lists them in order.
pnpm run dev builds the WebAssembly modules and the page and renderer bundles with Bazel, then starts wrangler dev. The first build compiles the Rust core and its vendored crates, which takes a while. Later builds reuse Bazel's cache.
The engine listens on http://127.0.0.1:8787. Visit http://127.0.0.1:8787/health to confirm it is running. The root URL shows a landing page with a form to open a URL in Chrome DevTools, example pages, and the CDP endpoints. If port 8787 is taken, set KITESURFPORT — for example, KITESURFPORT=8799 pnpm run dev.
Connect Puppeteer Over CDP
Install puppeteer-core in the controlling project. Connect to the browser WebSocket endpoint, open a page, navigate, take a screenshot, and disconnect:
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(); }
HTTP discovery is available at http://127.0.0.1:8787/json/version. Chrome DevTools also works: open http://127.0.0.1:8787/ in Chrome and enter a URL, or use chrome://inspect with 127.0.0.1:8787 added as a network target. The hosted DevTools frontend can only connect to 127.0.0.1. A bundled frontend can be built with the --config=devtools Bazel option, and the first build downloads about 250 MB of frontend.
The README warns that Kitesurf provides a CDP endpoint, not a full Chrome implementation. Some Chrome DevTools features do not work yet. If your agent needs the full browser instead, the Playwright MCP post covers driving a real Chromium through its accessibility tree.
What Deploying Actually Costs
Deploy from the repository root with one command:
The command builds with Bazel and uploads with Wrangler. Without --name, the Worker is called kitesurf.
A Workers Paid plan is required, because Kitesurf uses Dynamic Workers to create isolated Workers for pages. Local development runs under wrangler dev on your own machine and costs nothing beyond that machine.
So the floor for a deployed instance is $5 a month, plus whatever CPU and extra Dynamic Workers the traffic burns.
Honest Caveats
The project is experimental and under heavy development. Cloudflare's stated focus is making the engine more compatible, more reliable and more efficient.
Kitesurf cannot play video or render WebGL. It cannot negotiate a bot-challenge handshake with real TLS fingerprints. It cannot start a long-running, authenticated session that requires persistent state. For those cases, Cloudflare itself points users to Browser Run's default browser, which is powered by Chromium.