Cloudflare Open Sources Kitesurf Browser Engine for AI Agents
Cloudflare has open-sourced Kitesurf, its stateless browser engine designed for AI agents, allowing developers to self-host and run instances on Workers.
Before you start: versions, package names and storage identifiers change over time. Check the commands against the official documentation for your setup before running them, especially anything that creates, deletes or overwrites data.
Kitesurf Source Code Released on GitHub
Cloudflare has officially released Kitesurf as an open-source project on GitHub under the Apache 2.0 license. The stateless browser engine, built specifically for AI agents, is now available for developers to read, modify, run locally, and deploy directly to their own Cloudflare accounts.
Initially introduced in August with subsequent updates adding WebMCP support and API improvements, Kitesurf runs entirely on Cloudflare Workers without requiring a traditional browser container. It parses HTML, applies CSS, executes page JavaScript, and renders screenshots while consuming less CPU and memory than standard browsers like Chromium.
Architecture and Core Components
The repository combines Cloudflare’s Developer Platform with an ecosystem of open-source Rust packages compiled to WebAssembly. Key technologies include Blitz for HTML parsing, the DOM, layout, and painting; Stylo for CSS handling; and Boa for running JavaScript inside WebAssembly when execution cannot happen in Dynamic Workers. Text layout and 2D graphics are powered by Linebender libraries, while Krilla handles PDF output.
The codebase is organized into three main functional parts inside the repository’s packages directory: the Engine manages browser sessions and client connections, PageScript executes page operations and JavaScript, and PageRenderer handles output drawing. It also features built-in support for the Chrome DevTools Protocol (CDP), letting practitioners connect automation clients like Puppeteer or point AI harnesses directly at the local CDP port.
Local Development and Deployment Requirements
Developers can build and run Kitesurf locally by cloning the repository, installing dependencies via pnpm, and starting the local development engine:
git clone https://github.com/cloudflare/kitesurf.git
cd kitesurf
pnpm install --frozen-lockfile
pnpm run dev
The initial build compiles the Rust core and its dependencies before launching a local development server via Wrangler at http://127.0.0.1:8787. Once tested locally, developers can deploy the engine to their own Cloudflare accounts using the command pnpm run deploy.
Deploying a custom instance to a personal account carries a strict technical limit: a Workers Paid plan is explicitly required because Kitesurf relies on Dynamic Workers to generate isolated worker environments for individual web pages.
Source
Official announcement or documentation
Some links on this page may be affiliate links. If you buy through them we may earn a commission at no extra cost to you. See our affiliate disclosure.