[Launch options](https://cdpfleet.com/docs/options)

# `cdp`

Also expose a Chrome DevTools Protocol endpoint (cdpUrl).

**Use it for:** Puppeteer users and tools that speak raw CDP (Lighthouse, custom DevTools clients), or connecting with Playwright's connectOverCDP to reach Chromium-only features like network throttling and performance traces.

**Browsers:** [Google Chrome](https://cdpfleet.com/docs/browsers/chrome#opt-cdp), [Microsoft Edge](https://cdpfleet.com/docs/browsers/edge#opt-cdp), [Brave](https://cdpfleet.com/docs/browsers/brave#opt-cdp), [Opera](https://cdpfleet.com/docs/browsers/opera#opt-cdp), [Yandex Browser](https://cdpfleet.com/docs/browsers/yandex#opt-cdp), [Chromium](https://cdpfleet.com/docs/browsers/chromium#opt-cdp).

## Details

-   **Type:** `boolean`
-   **Default:** false
-   **Example:** `{"cdp":true}`

The launch response then carries `cdpUrl` next to `wsUrl`: a browser-level CDP WebSocket for Puppeteer (`puppeteer.connect({ browserWSEndpoint: cdpUrl, headers })`), Playwright's `connectOverCDP(cdpUrl, { headers })` in any language and version, or any raw CDP client (key in the `x-api-key` header or `?api_key=`).

Same session, proxy and limits. You can connect to `wsUrl` and `cdpUrl` at once, but closing either ends the session. Not on Patchright and Rebrowser (their stealth lives in the Playwright layer CDP bypasses), Whale, Camoufox, Firefox or WebKit.

## Used in

-   [Case 42: Puppeteer on real Google Chrome: cdpUrl, raw CDP and request interception](https://cdpfleet.com/docs/cases/puppeteer-on-real-chrome)
-   [Case 43: Can a page tell your automation client is listening? CDP and the console](https://cdpfleet.com/docs/cases/cdp-detectability)
-   [Case 26: Same Chrome, two doors: Playwright's protocol (wsUrl) or CDP (cdpUrl)](https://cdpfleet.com/docs/cases/playwright-vs-cdp)
-   [Chrome over CDP (connectOverCDP or Puppeteer)](https://cdpfleet.com/docs/examples#chrome-cdp)
-   [Microsoft Edge over CDP (Puppeteer or connectOverCDP)](https://cdpfleet.com/docs/examples#edge-cdp)
-   [Brave over CDP (Puppeteer or connectOverCDP)](https://cdpfleet.com/docs/examples#brave-cdp)
-   [Opera over CDP (Puppeteer or connectOverCDP)](https://cdpfleet.com/docs/examples#opera-cdp)
-   [Yandex Browser over CDP (Puppeteer or connectOverCDP)](https://cdpfleet.com/docs/examples#yandex-cdp)
-   [Microsoft Edge over CDP that survives a disconnect](https://cdpfleet.com/docs/examples#edge-keep-alive)
-   [Headful Opera over CDP that survives a disconnect](https://cdpfleet.com/docs/examples#opera-keep-alive)

All options: [launch options](https://cdpfleet.com/docs/options).

---
Source: https://cdpfleet.com/docs/options/cdp · Markdown: https://cdpfleet.com/docs/options/cdp.md · All docs for AI tools: https://cdpfleet.com/llms.txt
