Skip to content
CrawlfolioSourced research on web data for AI
Menu

Explainer

CDP or WebDriver BiDi? What your cloud browser speaks

Cloud browser docs I read mostly hand you a CDP endpoint. What CDP and BiDi are, which tools speak which, and what to check before you commit.

Two keys beside a brass keyhole plate, one key with a vermilion head
AI-generated image · Made for this page

If you build on Playwright or Puppeteer and rent a managed cloud browser, use the CDP URL the vendor gives you and don’t worry about WebDriver BiDi yet. If your code is Selenium, pick a Selenium grid that documents BiDi, and treat Selenium’s CDP calls as temporary.

A cloud browser hands you one URL, and the protocol behind that URL decides which of your client calls will work. That is the thing the explainers I read never say, so it is the spine of this post.

I have no live sessions of my own to report. Every capability below is what a vendor’s docs said when I read them on November 24, 2026. This post belongs to my agent browsers hub, and the pricing side of cloud browsers lives in my comparison of cloud browsers for AI agents.

Short on time?

Short on time? Here's my pick

Playwright or Puppeteer against a managed cloud browser
Use the vendor's CDP URL and ignore BiDi for now
Five of the six cloud-browser docs I read hand out a CDP WebSocket, and Chrome says Chromium keeps CDP. Medium-high confidence: documented, not connected to.
Selenium code
A Selenium grid that documents BiDi, with webSocketUrl
BrowserStack and Sauce Labs both document it, and Selenium's own pages call its CDP access temporary. Medium-high confidence.
Firefox or WebKit targets
A vendor with a native-protocol route, not a CDP URL
connectOverCDP is Chromium-only. Browserless documents Playwright routes for Firefox and WebKit, and it is the only vendor I found that does. Medium confidence.
A new project where you control the browser
Puppeteer or Playwright on CDP for Chrome today
Add BiDi only if you need Firefox or cross-browser coverage. Medium confidence.

Prices verified . Sponsors cannot buy a verdict or a position.

What are CDP and WebDriver BiDi? #

CDP is Chromium’s own protocol for inspecting and controlling the browser. WebDriver BiDi is the W3C’s attempt at a cross-browser standard for the same job.

Chrome’s DevTools protocol viewer lists tip-of-tree, a stable 1.3 and a V8 Inspector version for Node.js, and states no stability policy on the page. DevTools protocol viewer. Selenium’s page is blunter: CDP depends heavily on the browser version, its methods can change between versions, and Selenium supports the three most recent Chrome versions. Selenium CDP page.

BiDi is a standard in progress. The W3C Working Draft I read is dated November 13, 2026, sits on the Recommendation track, and says it may be updated, replaced or obsoleted. It carries messages over a WebSocket, and a client opts in by setting the webSocketUrl capability to true. W3C WebDriver BiDi.

The editors come from Mozilla and Google. Chrome’s own article says CDP is Chrome- and DevTools-specific, which is why it can’t be copied into a cross-browser spec. Chrome for Developers.

The short version: CDP is deep and Chromium-bound, BiDi is shallower and standardised. For the glossary entry, see CDP in my glossary.

Will WebDriver BiDi replace CDP? #

Not inside Chromium, according to the Chrome team. Their article asks whether BiDi will replace CDP and answers “No. Chromium-based browsers will continue to use CDP for debugging purposes.” Chrome for Developers.

That article is undated, so I can’t tell you how recent the statement is. It also explains why the two differ: CDP latency is low because client and server usually run on the same machine, and BiDi was designed to need fewer round trips, with Chrome’s example being one instead of two to get an object id and a value.

A cloud browser is, by definition, not the same machine as your script. I found no measurement of what that does to either protocol, so I draw no conclusion from it.

On Chrome, BiDi is also not a second engine. The chromium-bidi project describes itself as a JavaScript layer that translates between BiDi and CDP, with ChromeDriver hosting the BiDi endpoints. chromium-bidi README.

Puppeteer’s connector shows the same thing. As I read the source, it first tries pure BiDi, falls back to BiDi over CDP when that fails, and refuses the fallback for Firefox. puppeteer-core 25.1.0 source.

So choosing BiDi on Chrome doesn’t remove CDP. It adds a layer on top and drops the CDP-only features.

One vendor post says the opposite. Evomi, a proxy vendor, describes CDP as being superseded by BiDi, which contradicts Chrome’s wording. Evomi. I trust the browser maker on its own browser.

What do Puppeteer, Playwright and Selenium speak? #

All three sit on top of a protocol and mostly hide it, but they disagree about which one is the future. Puppeteer and Playwright default to CDP on Chromium, while Selenium’s docs push you towards BiDi.

Tool On Chrome On Firefox Calling a remote browser What the docs warn
Puppeteer CDP by default; BiDi is opt-in with protocol: 'webDriverBiDi' BiDi by default puppeteer.connect with browserWSEndpoint; the default protocol for connecting is CDP (connect options) CDP-only calls throw UnsupportedOperation over BiDi
Playwright connectOverCDP for a CDP URL The docs I read never mention BiDi connectOverCDP (Chromium only) or connect, which needs a matching Playwright server CDP connection is lower fidelity than Playwright’s own protocol
Selenium BiDi via the webSocketUrl capability; CDP access is temporary BiDi is described as the cross-browser path A Selenium remote URL on a grid CDP supports only the three newest Chrome versions

Puppeteer states its reasoning plainly. It keeps Chrome on CDP because not all CDP features are supported over BiDi yet, and it turns BiDi on by default for Firefox. Puppeteer BiDi page.

Chrome’s Firefox-in-Puppeteer post adds that Chrome stays on CDP so existing automations don’t break. Chrome for Developers.

Playwright’s page documents connectOverCDP as lower fidelity than Playwright’s own connection and supported only for Chromium-based browsers. It also warns that if you launch the browser yourself without Playwright’s arguments, some functionality may break. Playwright BrowserType.

The connect call is different: its docs say the client’s major and minor version must match the Playwright that launched the server. A cloud browser that only exposes a CDP URL doesn’t appear to run that server, which is my reading of why connectOverCDP is the call you meet most.

Playwright’s repository has a server/bidi folder containing files such as bidiChromium.ts and bidiFirefox.ts. Playwright repository. That tells me BiDi code exists, and nothing about how mature it is.

Mozilla’s wiki describes the Playwright BiDi work as a prototype and as experimental support, so I won’t say Playwright drives Firefox over BiDi. Mozilla wiki.

Selenium is the clear BiDi advocate. Its BiDi page calls it the cross-browser replacement for CDP, built with the browser vendors, and its CDP page says those pages are being phased out and tells you to prefer the BiDi ones. Selenium BiDi, Selenium CDP.

Both stories are true, for different tools. Puppeteer says CDP stays the Chrome default, and Selenium says BiDi is the way forward.

Evenly spaced vertical ridges in green and purple, with the green catching light toward the right
Two protocols side by side, and Puppeteer says CDP is still its Chrome default Photo: Thom Milkovic / Unsplash · Unsplash License

What does your cloud browser hand you? #

Mostly a CDP WebSocket URL. Of the six cloud-browser docs I opened, five document one, Bright Data lists three frameworks without naming a protocol, and the only places I saw BiDi documented were two Selenium grids.

Service What the docs hand you CDP Selenium or WebDriver BiDi Worth knowing
Browserbase A connectUrl after you create a session Documented, for connectOverCDP and puppeteer.connect Documented: seleniumRemoteUrl with custom headers (quickstart) Not mentioned on the page I read You have 5 minutes to connect to a new session; Selenium examples request Chrome
Browserless (v2) A wss:// endpoint with a token Documented, for Puppeteer connect() and Playwright connectOverCDP() Not supported in v2, per its docs Not mentioned /playwright routes cover Firefox, WebKit and Edge with Playwright’s native protocol
Steel A websocketUrl per session, described as the CDP URL Documented Not mentioned Not mentioned Closing your connection does not release the session
Hyperbrowser A wsEndpoint per session Documented, for Playwright, Puppeteer or any CDP-compatible tool Not mentioned Not mentioned None found on the page
Cloudflare Browser Run A wss:// CDP URL under the Cloudflare API Documented, for any CDP client Not mentioned Not mentioned keep_alive defaults to 60,000 ms, range 10,000 to 1,200,000; a read-only mode exists
Bright Data Scraping Browser Integration with Puppeteer, Playwright and Selenium Not named on the page I read Listed as an integration Not mentioned I read one page, so the protocol is unconfirmed
BrowserStack A hosted Selenium Grid Not stated Yes Documented via seleniumBidi: true The example is Chrome and JavaScript; the post is undated
Sauce Labs A Selenium grid Documented, with Selenium 4+ Yes Documented via webSocketUrl set to true Connections close after 60 minutes without messages and 4 hours after opening

Three details in that table matter more than the ticks.

First, Selenium doesn’t reach a cloud browser the same way as the others. Browserbase gives a separate seleniumRemoteUrl, an HTTP WebDriver endpoint, rather than the CDP connectUrl. Browserless v2, on the other hand, says Selenium and WebDriver aren’t supported and that v2 speaks CDP, not the WebDriver protocol. Browserless docs.

Second, a vendor can offer two incompatible routes. Browserless says connecting a CDP client to a /playwright route fails, and so does the reverse. Your client and your route have to match.

Third, Cloudflare ships its own fork, @cloudflare/playwright, whose docs list Firefox, Android and Electron, plus different Chrome versions, as not yet fully supported. They also say its userAgent setting does not bypass bot protection. Cloudflare Playwright. The page doesn’t mention connectOverCDP or BiDi at all.

For a Browserbase against Browserless comparison that isn’t about protocols, see Browserbase vs Browserless and Browserbase vs Hyperbrowser.

Two bundles of golden light lines crossing at right angles against a dark amber background
A client and a vendor route have to match, or the connection fails Photo: Julian Rösner / Unsplash · Unsplash License

What breaks if you switch protocols? #

Anything that is CDP-only, and anything where your client and the endpoint don’t speak the same dialect. Puppeteer’s page is the most precise list I found.

Over BiDi on Chrome, Puppeteer says createCDPSession() throws UnsupportedOperation, along with most emulation (CPU throttling, media features, vision deficiency), accessibility, coverage, tracing, drag-and-drop, network conditions, offline mode, metrics, screencast and some request-interception and response-body methods. Puppeteer BiDi page.

What does work over BiDi, per the same page: navigation, cookies, script evaluation, selectors (except ARIA), input, dialogs, screenshots, a subset of PDF options, permissions, and request interception without custom abort errors. The page shows version 25.18.1 and no release dates, so treat the list as a snapshot.

Feature gaps also go stale quickly. Mozilla’s December 2023 post said BiDi in Chrome then lacked cookie store access, network interception and some emulation, and Puppeteer’s current page lists interception as supported. Mozilla Hacks. Check the date on any list you rely on.

Switching also changes your session behaviour, not only your calls. A few examples from the docs:

  • Playwright connectOverCDP has a default timeout of 30,000 ms, per the BrowserType page.
  • Steel keeps the session alive after you close Playwright or Puppeteer, so you call its release method. Steel docs.
  • Sauce Labs closes CDP and BiDi connections after 60 minutes without messages. Its page says legacy macOS versions (Sierra, El Capitan, Yosemite) are not supported, and that Selenium will eventually move away from CDP. Sauce Labs docs.

If you are weighing hosted against running your own browsers, the protocol is one input among several; I cover the rest in self-hosting vs managed browsers. And once a session fails, debugging a browser agent covers what to capture.

What about Firefox and Safari? #

Firefox is where BiDi is the primary path, and Safari is a gap in my reading. For Firefox, Puppeteer turns BiDi on by default, and CDP support in Firefox has been deprecated since Firefox 129. Chrome for Developers.

Whether CDP is actually gone is where my sources disagree. Chrome’s post said removal was scheduled for the end of 2024.

Mozilla’s wiki gives no removal version, and its milestone 14, completed January 5, 2025, listed resolving bugs that block the removal of CDP among its goals. Mozilla’s own 2023 post said there was no specific timeline. Mozilla wiki, Mozilla Hacks.

The wiki’s more recent entries show activity: milestone 20 was completed June 28, 2026 and milestone 21 on September 27, 2026, with milestone 22 in development. None names a CDP removal. So I’d say it is deprecated and leave the present state open.

For a cloud-browser buyer, the practical point is narrower. A CDP URL is Chromium-only, and Playwright says so for connectOverCDP. If you need Firefox or WebKit, the vendor has to offer something else.

Of the services above, the only one I found that documents Firefox and WebKit routes is Browserless, through Playwright’s native protocol on /playwright. Cloudflare’s fork lists Firefox as not yet fully supported. I found nothing on Safari’s BiDi status.

Does the protocol change whether you get blocked? #

I found no evidence that it does, and two vendor posts that disagree in tone. Neither publishes a comparison I could read.

Evomi says CDP leaves detectable artifacts and that BiDi is detectable differently. It is a proxy vendor, and the post ends with promotion. Evomi.

Scrapfly, which sells a cloud browser API, argues that CDP controls Chromium but isn’t a stealth layer, that detection depends on effects inside the browser rather than the external connection, and that a remote location alone adds no stealth. Scrapfly.

Both are vendor opinion, and neither has a published test. I wouldn’t choose a protocol to avoid blocks. Cloudflare’s own Playwright page says its user agent setting doesn’t bypass bot protection, which points the same way.

I searched Hacker News comments for the topic. The listing returns 18 comments from 2022 to 2026, mostly opinion about the protocols, and none that I saw was a measurement. Six come from one commenter who says in another comment that they are building a BiDi-based Selenium successor, so I didn’t treat any of it as evidence. HN comment search.

Which one should you pick? #

Pick by client and by target browser, then check the endpoint’s docs. This is my read of the pages above, not a measured result.

Your situation Pick Why Confidence
Playwright against a managed cloud browser The vendor’s CDP URL with connectOverCDP Five of six cloud-browser docs hand out CDP; Chrome says Chromium keeps it Medium-high
Puppeteer against a managed cloud browser puppeteer.connect with the vendor’s WebSocket endpoint Connect defaults to CDP, and CDP is the Chrome default Medium-high
Selenium code A Selenium grid with BiDi through webSocketUrl Selenium calls CDP temporary; BrowserStack and Sauce Labs document BiDi Medium-high
Firefox or WebKit targets A vendor with a native-protocol route, such as Browserless /playwright A CDP URL is Chromium-only Medium, one vendor found
New project, you control the browser Puppeteer or Playwright on CDP for Chrome; BiDi only for Firefox or cross-browser tests CDP is the default and has the wider feature set today Medium
You depend on CDP-only features (emulation, tracing, coverage) Stay on CDP Puppeteer lists them as unsupported over BiDi High

If I were choosing for a small agent team on Playwright, I’d take CDP and spend the saved time elsewhere. I’d revisit that only if I needed Firefox coverage or a vendor started documenting a BiDi endpoint.

What I would do #

Before choosing a cloud browser, I’d open its docs and find the connection URL. If it is a wss:// CDP URL, I’d check that my client has a matching connect call. If it is a Selenium remote URL, I’d check that the grid offers BiDi.

Then I’d check the three things that bite: whether the browser engine is Chromium only, how sessions end (release calls and timeouts), and which of my CDP-only calls, such as emulation, tracing or accessibility, I actually rely on. The table above covers the first two for the eight services I read, and only your own code can answer the third.

FAQ

Is CDP the same as native Playwright?

No. Playwright's docs describe connectOverCDP as Chromium-only and lower fidelity than its own protocol connection. A cloud browser's CDP URL fits connectOverCDP, while Playwright's own protocol needs a matching Playwright server on the other end.

Will WebDriver BiDi replace CDP?

Chrome's team says no for Chromium. Its article states that Chromium-based browsers will continue to use CDP for debugging purposes, and the chromium-bidi project works by translating BiDi into CDP.

Does my cloud browser support WebDriver BiDi?

Check its docs. Of the eight services I read, only the two Selenium grids, BrowserStack and Sauce Labs, document BiDi. The docs for Browserbase, Browserless, Steel, Hyperbrowser, Cloudflare and Bright Data do not mention it, which is not proof that it is absent.

Can I use Selenium with Browserless?

Not on its v2 service, according to its docs, which say Selenium and WebDriver aren't supported in BaaS v2 and that v2 speaks CDP, not the WebDriver protocol. Browserbase, by contrast, documents a Selenium remote URL next to its CDP connection URL.

Does Puppeteer use BiDi?

By default on Firefox, yes. On Chrome it defaults to CDP, because not every CDP feature is supported over BiDi yet. You can opt in on Chrome with the protocol option set to webDriverBiDi, and unsupported calls throw an UnsupportedOperation error.

Is BiDi harder to detect than CDP?

I found no test that answers it. Evomi, a proxy vendor, says the two are detectable in different ways, while Scrapfly says CDP controls Chromium and is not a stealth layer, and that detection relies on in-browser effects. Neither published a comparison.

Is CDP removed from Firefox?

It has been deprecated since Firefox 129. Chrome's post said removal was scheduled for the end of 2024, but Mozilla's wiki gives no removal version, so I can't confirm the current state.

Why does my cloud browser session outlive my script?

Some vendors keep a session open until you release it or a timer ends. Steel's docs say closing the Playwright or Puppeteer connection does not release the session, and Cloudflare's keep_alive defaults to 60,000 ms. Read each vendor's release and timeout rules.

Sources

27 sources, accessed .

Official pricing, docs, changelogs and status pages 21

  1. W3C WebDriver BiDi Working Draft (13 November 2026) w3.org · accessed
  2. Chrome for Developers: WebDriver BiDi, the future of cross-browser automation (undated) developer.chrome.com · accessed
  3. Chrome for Developers: Firefox support in Puppeteer with WebDriver BiDi (undated) developer.chrome.com · accessed
  4. Chrome for Developers: WebDriver BiDi support in BrowserStack (undated) developer.chrome.com · accessed
  5. Puppeteer: WebDriver BiDi support pptr.dev · accessed
  6. Puppeteer: ConnectOptions reference pptr.dev · accessed
  7. Playwright: BrowserType reference playwright.dev · accessed
  8. Selenium: WebDriver BiDi selenium.dev · accessed
  9. Selenium: Chrome DevTools Protocol selenium.dev · accessed
  10. Chrome DevTools Protocol viewer chromedevtools.github.io · accessed
  11. Mozilla wiki: WebDriver BiDi milestones wiki.mozilla.org · accessed
  12. Mozilla Hacks: WebDriver BiDi post (Dec 12, 2023) hacks.mozilla.org · accessed
  13. Cloudflare Browser Run: CDP developers.cloudflare.com · accessed
  14. Cloudflare Browser Run: Playwright developers.cloudflare.com · accessed
  15. Browserbase: using a browser session docs.browserbase.com · accessed
  16. Browserbase: Selenium quickstart docs.browserbase.com · accessed
  17. Browserless: browser-as-a-service v2 start docs.browserless.io · accessed
  18. Steel: sessions steel.dev · accessed
  19. Hyperbrowser: sessions overview hyperbrowser.ai · accessed
  20. Bright Data: Scraping Browser introduction docs.brightdata.com · accessed
  21. Sauce Labs: CDP and BiDi sessions docs.saucelabs.com · accessed

GitHub code, issues and releases 3

  1. chromium-bidi README github.com · accessed
  2. Playwright repository: server/bidi folder github.com · accessed
  3. puppeteer-core 25.1.0 source: BrowserConnector.ts cdn.jsdelivr.net · accessed

Community discussions 1

  1. Hacker News comment search: webdriver bidi cdp hn.algolia.com · accessed

Other blogs 2

  1. Evomi: CDP vs BiDi for scrapers (May 22, 2026) evomi.com · accessed
  2. Scrapfly: Chrome CDP, stealth and detection (Oct 1, 2026) scrapfly.io · accessed

Last updated November 24, 2026. Researched and drafted with AI tools; editorial review by the site owner is pending.

What readers say

Used one of the tools in this guide? Tell other readers how it went. I read every review before it goes up, and I never turn one down for being negative. How reviews work.

No reader reviews yet. Yours could be the first.

Write a review
Your rating

What did you use it for, what worked, and what didn't? 30 to 1500 characters. Please don't include links.

Your connection to the company

Your review appears with the name you enter, after I approve it. I don't ask for your email. Privacy.