> ## Documentation Index
> Fetch the complete documentation index at: https://skyvern.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# connect_to_browser_over_cdp

Connect to any browser running with Chrome DevTools Protocol (CDP) enabled, whether local or remote.

<CodeGroup>
  ```python Python theme={null}
  browser = await skyvern.connect_to_browser_over_cdp("http://localhost:9222")
  page = await browser.get_working_page()
  ```

  ```typescript TypeScript theme={null}
  const browser = await skyvern.connectToBrowserOverCdp("http://localhost:9222");
  const page = await browser.getWorkingPage();
  ```
</CodeGroup>

## Parameters

| Parameter            | Type             | Required | Description                                              |
| -------------------- | ---------------- | -------- | -------------------------------------------------------- |
| `cdp_url` / `cdpUrl` | `str` / `string` | Yes      | The CDP WebSocket URL (e.g., `"http://localhost:9222"`). |

## Returns `SkyvernBrowser`
