← All posts / Tools

Cloudflare Is Building the Web for Agents: A Browser, a Wallet, and a Payment Rail

Kitesurf, Cloudflare Wallets, and the x402 protocol give AI agents their own browser, identity, and money — while new rankings crown Claude Code the top agent harness.

Cloudflare Is Building the Web for Agents: A Browser, a Wallet, and a Payment Rail

Over the past three weeks, Cloudflare has shipped three products that look unrelated until you line them up: Kitesurf, a browser built for AI agents; Cloudflare Wallets, a programmable wallet for the same agents; and support for the x402 protocol, a payment rail that lets any website charge an agent per request. Together they form something bigger than the sum of their parts — a parallel web stack where the primary user is not a human with a screen and a credit card, but an autonomous program with an isolate, a handle, and a stablecoin balance.

The timing is not accidental. August’s freshly updated agent-harness rankings, summarized in the August 24 industry roundup, place Claude Code first for long autonomous coding sessions, ahead of Codex CLI, Cursor, Gemini CLI, and GitHub Copilot. Agents are already spending hours — sometimes days — working the web on our behalf. What they have lacked is native infrastructure: identity, payment, and a cheap way to render pages. That is precisely the gap Cloudflare is attacking.

Kitesurf: a browser without Chromium

Kitesurf, announced August 6 and available free in beta inside Cloudflare’s Browser Run, is the most technically interesting of the three. It is a stateless browser written in Rust, compiled to WebAssembly, and executed inside V8 isolates on Cloudflare Workers — no Chromium underneath, no persistent sessions, no tabs or themes. AI agents, as Cloudflare bluntly puts it, do not care about any of that.

The engineering numbers explain why this matters economically. Across a 14-URL benchmark corpus, median CPU time for screenshots was 380 ms on Kitesurf versus 1,173 ms on warm-pooled Chromium — 3.1× less. HTML extraction used 229 ms versus 877 ms, a 3.8× reduction. Memory is the more dramatic story: 57.8 MiB versus 271.0 MiB for screenshots (4.7× less) and 39.4 MiB versus 273.7 MiB for HTML extraction (7× less). Chromium still wins the wall-clock stopwatch by about 1.7×, mostly due to rasterization and image encoding, but CPU and memory are what actually drive cloud bills. Less memory per session means more concurrent sessions per machine, better burst scaling, and lower prices on both sides.

Two details stand out from the origin story. First, the project began with obscura, a dependency-free headless engine written in Rust, which a Cloudflare team ported to Workers with the help of an AI agent — the port only succeeded once the team gave the agent a detailed plan and a clear definition of success. Second, the whole project is only twelve weeks old, with the first commit landing in May. It already renders TodoMVC in every major framework, Wikipedia, Hacker News, and much of the Cloudflare dashboard, and — in what the team calls “the most important test of all” — it runs Doom.

Kitesurf speaks a subset of the Chrome DevTools Protocol, which means existing Playwright and Puppeteer clients work unmodified; you simply add browser=kitesurf to the Browser Run endpoint. It is not yet suitable for video playback, WebGL, bot-challenge handshakes requiring real TLS fingerprints, or long authenticated sessions needing persistent state — Cloudflare directs those workloads to its Chromium-backed default. Think of it as an ephemeral, fully isolated engine that exists only for the duration of a task.

Wallets and x402: agents learn to pay

If Kitesurf solves “how does the agent see the web,” Cloudflare Wallets — announced August 4 — solves “how does it transact.” Today, an agent trying a new API has to navigate a human-designed login page, get a human to enter a payment method, and generate API keys. Unsurprisingly, agents frequently give up and kick the whole flow back to a person.

Wallets attack this on two axes. First, identity: each account can claim a wallet handle, giving agents a stable username when interacting with merchants — something agents have never had. Second, money: wallets store stablecoins and can spawn Virtual Wallets for agents, with programmable guardrails — spending allowances, merchant allow-lists, and per-transaction maximums — so an agent can evaluate dozens of APIs at low friction without holding the keys to the kingdom.

The payment mechanism is the x402 protocol, which attaches micropayments directly to HTTP requests, settled at the edge. Combined with Cloudflare’s Monetization Gateway, any site or API can sell AI inference, data, or content “headlessly” to agentic buyers. Cloudflare says more than 20 companies are already live in agent-initiated payment flows. Wallets slot into the existing Agents SDK, so a coding or research agent can in principle discover a tool, negotiate its price, and pay for it — per request, in stablecoins, with no human in the loop.

The harness layer: Claude Code leads

Infrastructure is only half the picture — the agents themselves run inside harnesses, and the August rankings make the current hierarchy clear. Claude Code ranks first on the depth of its hooks, subagents, and dynamic workflows, making it the default choice for long autonomous sessions. Codex CLI leads for cloud-side, pull-request-shaped autonomy; Cursor dominates in-editor workflows; Gemini CLI and GitHub Copilot round out the top five.

The sharpest observation from the rankings is that these tools are not really competing on models anymore — several run the same frontier models. What differs is session management and how gracefully the harness fails mid-task. A better harness raises throughput without raising model speed, which is exactly what project-management telemetry reported the prior week: AI now drafts half of all issues at some companies, while shipping speed lags.

Why this week matters

Two currents are converging. On the cost side, a cluster of deadlines lands on August 31: Claude Sonnet 5 rises from $2 to $3 per million input tokens ($10 to $15 output), accompanied by a tokenizer change that adds 10–35% more tokens on code; GPT-5.4 leaves Codex for ChatGPT sign-in users; and Moonshot sunsets kimi-k2.5. On the capability side, agents are gaining browsing, identity, and spending power at the infrastructure layer.

Put together, the direction is unmistakable: agent workloads are becoming a first-class economic class on the web. Per-request metering via x402 aligns neatly with rising token prices — you pay only for what the agent actually consumes. But it also concentrates new risk. Guardrailed virtual wallets are a good start, yet fraud, prompt-injection-driven spending, and audit trails for machine-initiated transactions remain largely unsolved industry-wide. CVE-2025-62593 in Ray — still unpatched in many deployments past the August 20 federal deadline, with the attack path running through a developer’s browser — is a reminder that agent-adjacent infrastructure is attack surface too.

Cloudflare’s bet is that the agentic web will be built on isolates, handles, and micropayments rather than login pages and subscriptions. Twelve weeks, three products, and one Doom port in, that bet is starting to look less like a sideshow and more like the blueprint.

Sources