Kitesurf browser engine for AI agents goes open source
Cloudflare has released Kitesurf, its experimental browser engine designed for AI agents, as open source software under the Apache 2.0 license on GitHub. The project, first introduced in August and updated in September with WebMCP support and new APIs, allows developers to inspect the code, run it locally, and deploy their own instance on Cloudflare Workers. The release fulfills a commitment made during earlier announcements to let developers run their own browser engine on their own Cloudflare accounts.
Kitesurf runs entirely on Cloudflare Workers and parses HTML, applies CSS, executes page JavaScript, and renders screenshots without a traditional browser container. It supports the Chrome DevTools Protocol (CDP), enabling clients such as Puppeteer to connect. The engine is designed to give AI agents a lightweight, efficient browsing capability that consumes less CPU and memory than full browsers like Chromium and scales on demand across Cloudflare's global Workers network.
The Kitesurf repository contains several open-source Rust packages compiled to WebAssembly that form the engine's foundation. Blitz handles HTML parsing, the DOM, layout, and painting; Stylo provides CSS parsing, cascading, and computed styles; Boa runs JavaScript inside WebAssembly as a last resort on Dynamic Workers; and Linebender libraries offer text layout and 2D graphics, while Krilla generates PDF output. These component projects retain their respective licenses, and the repository's NOTICE file documents third-party attributions.
Kitesurf consists of three main parts: the Engine manages browser sessions and client connections, PageScript runs the page and its JavaScript, and PageRenderer draws the rendered result. All packages, including the engine's Rust core, DOM shims, renderer, and Kitesurf CLI, live separately in folders under the repository's packages directory, allowing developers to explore how the pieces fit together. The modular structure supports customization and extension of individual components.
To run Kitesurf locally, developers must follow the repository's build requirements, clone the repository, install dependencies, and start the engine. The first build compiles the Rust core and its dependencies, which requires some time; subsequent builds reuse the build cache. The command "pnpm run dev" starts a local development server at http://127.0.0.1:8787, where users can try a page in Chrome DevTools or use it programmatically with a NodeJS script connecting via the CDP endpoint.
Developers can deploy Kitesurf to their own Cloudflare account once local testing is complete. A Workers Paid plan is required because the engine uses Dynamic Workers to create isolated Workers for pages. From the repository root, the command "pnpm run deploy" publishes the engine to the user's account. Cloudflare welcomes forks and contributions via GitHub, though Kitesurf remains under heavy development with a focus on improving compatibility, reliability, and efficiency. The team encourages users to start with contribution guidelines, open issues for minimal reproductions, and participate on Discord.
Source credits
By Celso Martinho from Cloudflare Blog. Edited by SetuGeo.