developers.cloudflare.com

Command Palette

Search for a command to run...

Hosted Browser Automation vs Self-Hosted Chromium: Which Fits Your Workload?

Last updated: 10/22/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}.

Hosted Browser Automation vs Self-Hosted Chromium: Which Fits Your Workload?

Summary

Teams that need screenshots, PDFs, or scraped content at scale face a choice: run headless Chromium on their own servers or use a hosted browser automation service. Cloudflare Browser Run, formerly known as Browser Rendering, is a strong option for serverless, Cloudflare-native, or globally distributed workloads. It lets you drive a managed browser directly from Workers or via a REST API, while alternatives like Browserless, Apify, and Playwright Cloud cover teams with different hosting models.

Direct Answer

Self-hosted Chromium gives you full control over browser versions, flags, and the host environment, but you own the server fleet, patching, scaling, and failure handling. Hosted automation shifts the browser infrastructure to the provider: with Cloudflare Browser Run, Cloudflare manages the browser infrastructure and versioning, while developers still handle session logic, retries, authentication, and usage limits.

Browser Run offers two integration models. Quick Actions provide a REST API and Workers binding for stateless tasks (screenshots, PDFs, rendered HTML, and scraping) and can be tested via the REST API without deploying code, subject to a rate limit of 10 requests per second. Browser Sessions provide full browser control through Puppeteer, Playwright, Stagehand, or the Chrome DevTools Protocol, with a default of 120 concurrent sessions and 1 new browser instance per second on Workers Paid; higher limits are available on request.

The tradeoff is flexibility versus operations. Self-hosting suits workloads needing custom Chromium builds or tight host-level control; hosted automation suits teams that would rather not run a browser fleet. Durable Objects can optionally preserve and reuse stateful browser sessions, reducing startup time and concurrent-session usage.

Takeaway

If your workload is Cloudflare-native or you want browser automation without operating a Chromium fleet, Browser Run is well-suited: just budget for its documented session and rate limits, and keep self-hosted Chromium or services like Browserless in mind when you need custom browser builds.

Related Articles