Skip to main content
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. Your code using a CDP URL to connect to and control a cloud browser that accesses the web Your code using a CDP URL to connect to and control a cloud browser that accesses the web Get an API key and export it:

Install the SDK

Skip this step if you use curl.

Launch a browser

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.
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.