Introduction
browser-gateway is the open router for cloud browsers.
The open router for cloud browsers. You bring the backends, we handle the routing, state, and dashboard.
browser-gateway routes WebSocket connections across any browser provider you already have. Browserless, Steel, Browserbase, Lightpanda, Cloudflare Browser Rendering, raw Chrome, or your own runtime, and adds the layer everyone reinvents on top: profile capture, session replay, cost control, observability.
What it does
- Router: priority chains, weighted round-robin, latency-aware, least-connections. Failover and cooldowns per provider.
- Profiles: capture cookies + localStorage on session end, inject on next connect, on any provider. IndexedDB and service workers also round-trip on the self-hosted runtime. Encrypted at rest with a key you control.
- Session replay: record CDP screencast frames for the sessions you choose, and read them back through the REST API.
- Live view: watch any session live from the dashboard.
- REST + MCP + WebSocket: three protocols, one gateway. Puppeteer, Playwright, Stagehand, MCP clients all work unchanged.
- Computer use: run Claude's browser and computer use tools, or Gemini computer use, on any provider. See Computer Use.
- Dashboard: providers, sessions, profiles, logs, webhooks, live playground, config editor.
When to use it
- You use multiple browser providers and want a single endpoint with failover
- You run agents that need to resume logged-in state across days
- You need to review what an agent saw when it broke
- You want to swap providers without touching client code
When NOT to use it
- You need a full browser automation API, use Playwright, Puppeteer, Stagehand
- You only want a browser and have no provider: on the cloud, managed browsers give you one without a provider account
- You need anti-detect / stealth, different product category
Next
- Quickstart: 5-minute install and first connection
- Configuration:
gateway.ymlreference - Profiles: capture / inject / provider pinning