Control hosted cloud browser infrastructure for AI agents through the SDK, REST, or CDP.
Browser Infrastructure is hosted cloud browser infrastructure for AI agents,
controlled through the SDK, REST, or CDP. A browser’s CDP URL is a WebSocket
endpoint for remotely controlling Chrome.Get an API key and
export it:
The examples use the V3 SDK browser resource and the V4 REST browser endpoint.
See the developer overview when choosing
an interface for a new integration.
from browser_use_sdk.v3 import BrowserUseclient = BrowserUse()browser = client.browsers.create(proxy_country_code="us")print(browser.cdp_url)# When finished:client.browsers.stop(browser.id)
import { BrowserUse } from "browser-use-sdk/v3";const client = new BrowserUse();const browser = await client.browsers.create({ proxyCountryCode: "us" });console.log(browser.cdpUrl);// When finished:await client.browsers.stop(browser.id);
browser.close(), disconnecting CDP, or client.close() does not stop the
managed browser. Use client.browsers.stop(browser.id) or call
PATCH /api/v4/browsers/{id} with {"action":"stop"}.
Connect over CDP
Use the CDP URL with Playwright or Puppeteer.
Browser settings
Configure proxies, screen size, recording, and timeout.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.