Playwright Cloud

Playwright Cloud — Hosted Playwright Browsers

connectOverCDP to a managed fleet across Chromium, Firefox and WebKit. Stagehand-compatible. CI-friendly. Cheaper at scale.

  • chromium.connectOverCDP / firefox.connect / webkit.connect — all supported.
  • Stagehand-compatibility mode for Browserbase migrants — drop the connect URL in.
  • CI billing tier with weekend-reserved capacity for nightly E2E runs.
  • Test artefacts (videos, traces, screenshots) stored for your retention window.
playwright.tsTypeScript
import { chromium, firefox, webkit } from 'playwright'

const TOKEN = process.env.BFH_API_KEY!
const ws = (browser: string) =>
  `wss://cloud.browserforhire.com?token=${TOKEN}&browser=${browser}`

for (const [name, type, engine] of [
  ['chromium', chromium, 'chromium'],
  ['firefox', firefox, 'firefox'],
  ['webkit', webkit, 'webkit'],
] as const) {
  const browser = await type.connect(ws(engine))
  const page = await (await browser.newContext()).newPage()
  await page.goto('https://example.com')
  console.log(name, await page.title())
  await browser.close()
}

What you get

Multi-browser

All three Playwright engines available behind the same connect URL. Pass &browser=firefox or &browser=webkit to switch.

CI-friendly

Reserved capacity for nightly runs. Parallel suites scale to your tier limits with deterministic queuing.

Stagehand-compatible

Existing Stagehand code runs as-is. Same env=CUSTOM + browserWSEndpoint shape.

FAQ

Does Playwright Test work with this?+
Yes. Set the connectOptions.wsEndpoint in your playwright.config.ts. We also publish a sample CI workflow for GitHub Actions and GitLab CI.
Can I record videos and traces?+
Yes. Add &record=true&trace=on. Artefacts are stored against your retention window (1–90 days depending on tier) and accessible via the dashboard or API.

Ship Chrome to production today.

Free 1,000 credits, no credit card. Drop-in replacement for Browserless.