---
title: Self-hosted Playwright
slug: playwright-self-hosted
url: "https://toolweight.com/options/playwright-self-hosted"
homepage: "https://playwright.dev"
categories: browser-automation-apis
last_verified: 2026-07-01
license: CC-BY-4.0
---

# Self-hosted Playwright

> The baseline: run Chromium in your own container and own everything

Playwright in a container on your own infrastructure is the reference point every hosted product is priced against. You get the best debugging story in the category for free, Trace Viewer is better than any vendor's replay, and pay for it with fingerprint maintenance, proxy sourcing, browser pooling and pager duty. For unprotected targets at steady volume it is both cheapest and most controllable. For adversarial targets it is a second full-time job.

## Identity

|  |  |
| --- | --- |
| Name | Self-hosted Playwright |
| Company | Self-hosted Playwright |
| One-liner | The baseline: run Chromium in your own container and own everything |
| Site | https://playwright.dev |
| Docs | https://playwright.dev/docs/docker |
| Repo | https://github.com/microsoft/playwright |
| Founded | 2020 |
| Open source | Yes |
| Licence | Apache-2.0 |
| Compared in | 1 |

## Where it is compared

### [Browser APIs](https://toolweight.com/compare/browser-automation-apis)
Ranked **#11 of 13** on default weights.
| Field | Value | Confidence | Verified | Source | Note |
| --- | --- | --- | --- | --- | --- |
| Anti-bot pass rate | - | Unknown | - | - | Panel not yet run. Stock Playwright is trivially detectable; the baseline exists to show the gap. |
| Stealth mode | ○ | Inferred | - | - | Community patches exist but you own the maintenance forever. |
| CAPTCHA solving | ○ | Inferred | - | - | - |
| Residential proxy | byo-only | Inferred | - | - | Bring a proxy vendor and wire it yourself. |
| Cold start | 2 s | Inferred | - | - | Rough figure for launching Chromium in a warm container; entirely dependent on your image and host. |
| CDP endpoint | ● | Inferred | - | - | It is your browser; the protocol is fully exposed. |
| Playwright | ● | Inferred | - | - | - |
| Puppeteer | ● | Inferred | - | - | You are running the libraries directly, so both work. |
| Session persistence | ● | Inferred | - | - | Persistent contexts on your own disk, durable as long as you manage the volume. |
| Live view | ○ | Inferred | - | - | Trace Viewer is post-hoc; a live view is a project of its own. |
| Session replay | ● | Inferred | - | - | Trace Viewer and video recording are better than any hosted replay here. |
| Max concurrency | - | Unknown | - | - | Whatever your cluster tolerates, roughly one browser per GB of RAM. |
| File downloads | ● | Inferred | - | - | - |
| Chrome extensions | ● | Inferred | - | - | - |
| Browser regions | self-hosted | Inferred | - | - | Anywhere you can run a container, including ap-southeast-2, the only reliable way to get an AU browser. |
| Agent API | ○ | Inferred | - | - | - |
| MCP server | ● | Vendor-claimed | 2026-07-01 | https://github.com/microsoft/playwright-mcp | Microsoft's official Playwright MCP server runs locally. |
| Human handoff | ○ | Inferred | - | - | - |
| Pricing model | infrastructure | Inferred | - | - | - |
| Per browser-hour | $0.03 /browser-hour | Inferred | - | - | Approximate cost of a 2 vCPU / 4 GB container on a commodity cloud. Excludes proxies, storage and your engineering time. |
| Free tier | ● | Inferred | - | - | The software is free; the servers are not. |
| GitHub stars | 73,000 | Inferred | - | - | microsoft/playwright, rounded. |
| Funding stage | open-source | Inferred | - | - | - |
| Open-source core | ● | Vendor-claimed | 2026-07-01 | https://github.com/microsoft/playwright | - |
| Positioning | The reference point every hosted browser is priced against | Inferred | - | - | - |
| Launched | 2020 | Inferred | - | - | - |

**Verdict.** Three to five times cheaper on compute than anything hosted, with the best debugging in the category, and completely defenceless against modern bot detection. If your targets do not fight you, everything above is a convenience tax. If they do, the honest comparison is a hosted bill against a full-time engineer.

## Alternatives

- [Airtop](https://toolweight.com/options/airtop), Natural-language browser API, describe the page, skip the selectors
- [Anchor Browser](https://toolweight.com/options/anchor-browser), Cloud browsers built around authenticated sessions and human takeover
- [Apify](https://toolweight.com/options/apify), Actor platform for scraping and agents, with Crawlee as the open-source core
- [Bright Data Browser API](https://toolweight.com/options/bright-data-browser-api), CDP browsers on a 70M+ residential IP network with challenge handling built in
- [Browserbase](https://toolweight.com/options/browserbase), Managed headless browsers for AI agents, with Stagehand as the SDK
- [Browserless](https://toolweight.com/options/browserless), Self-hostable headless Chrome service; BrowserQL for bot-heavy sites
- [Cloudflare Browser Rendering](https://toolweight.com/options/cloudflare-browser-rendering), Puppeteer and Playwright bindings for Workers, plus REST render endpoints
- [Hyperbrowser](https://toolweight.com/options/hyperbrowser), Agent-first browsers with hosted scrape, crawl and CUA endpoints
- [Kernel](https://toolweight.com/options/kernel), Fast-starting browsers plus a runtime for deploying browser agents
- [ScrapingBee](https://toolweight.com/options/scrapingbee), One-call HTML API with JavaScript rendering and premium proxy tiers
- [Steel.dev](https://toolweight.com/options/steel-dev), Open-source browser API for AI agents, hosted or self-run
- [ZenRows](https://toolweight.com/options/zenrows), Scraper API plus a CDP scraping browser on a shared residential pool

## Licence and attribution

Data from toolweight (https://toolweight.com), licensed CC-BY-4.0.

- Licence: [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/)
- Canonical HTML: https://toolweight.com/options/playwright-self-hosted
- Machine-readable: https://toolweight.com/options/playwright-self-hosted.md · https://toolweight.com/api/v1 · https://toolweight.com/mcp
- toolweight takes no affiliate revenue and sells no placements. Corrections: https://toolweight.com/suggest
