Skip to main content
The Browser API gives you a raw Chrome DevTools Protocol (CDP) connection to Browser Use’s stealth infrastructure. No agent — you write the automation code, we provide the undetectable browser with proxies and CAPTCHA handling. There are two ways to connect:
  • WebSocket URL — single wss:// URL, no SDK needed. Pass config as query params, browser auto-stops on disconnect.
  • SDK — create a browser via the API, get a cdp_url, connect with your framework of choice.

WebSocket URL (no SDK)

Connect to a cloud browser with a single WebSocket URL. All configuration is passed as query parameters — no SDK or REST calls needed.
This is the simplest way to get a CDP connection. Just point Playwright, Puppeteer, or any CDP client at the URL.

Playwright

Puppeteer

Query parameters

How it works

The browser is automatically created when you connect and automatically stopped when the WebSocket disconnects. No need to call any API to start or stop the browser.
CDP discovery endpoints are also exposed over HTTPS for tools that use HTTP auto-discovery — e.g. https://connect.browser-use.com/json/version?apiKey=YOUR_API_KEY.

SDK

Create a browser session

Connect with Playwright

Connect with Puppeteer

Connect with Selenium

Manage sessions

Always stop browser sessions when done. Sessions left running will continue to incur charges until the timeout expires.

Parameters

See Models & Pricing for browser session and proxy costs.