More unique IPs than any network on the planet, in the world's largest residential pool. That's Shifter.More unique IPs than any network, in the world's largest pool. That's Shifter.

See the numbers

Camoufox vs Nodriver vs Patchright vs SeleniumBase: Stealth Browsers Benchmarked Behind Residential Proxies

We ran four stealth browsers behind the same residential proxy against public bot tests. Results headless and headed, WebRTC leaks, time zones and fixes.

Data Science · Updated November 25, 2026 · 8 min read
headlessheadedCamoufoxpassedpassedNodriverflaggedpassedPatchrightflaggedpassedSeleniumBaseno resultno result
Same proxy, same tests: only amber Camoufox passed the bot verdicts in both headless and headed mode.
Knowledge
On this page
  1. The four tools
  2. What we tested
  3. The results
  4. Four findings
  5. Setting each one up with a proxy
  6. Which one to choose
  7. How we tested
  8. The bottom line
  9. Sources and references

Stealth browsers promise automation that looks like a person at the keyboard. Four open-source projects get most of the attention: Camoufox, Nodriver, Patchright and SeleniumBase. We ran all four on the same machine, behind the same German residential proxy session, against the same public bot-detection test pages, in headless and headed mode. This post shows what passed, what leaked, and what to fix. For where these tools fit in a wider setup, see our web scraping overview.

The four tools

ToolEngineApproachVersion tested
CamoufoxFirefoxA modified Firefox build that rotates realistic fingerprints0.4.11, browser 159.0 beta
NodriverChromeDrives Chrome directly over the DevTools protocol, without WebDriver0.50.99
PatchrightChromeA patched Playwright that removes common automation traces1.60.1
SeleniumBaseChromeSelenium framework with an “undetected” UC mode4.51.12, UC mode

They differ from antidetect browsers, which are desktop apps for managing many browser profiles by hand. These are libraries for code.

What we tested

Every run used one sticky German residential session, a Cable/DSL home connection, so all four tools saw the same exit. We checked:

  • The exit: country and connection type, at our own IP lookup.
  • WebRTC: whether the browser revealed the machine’s real IP around the proxy.
  • Consistency: the browser’s time zone and language against the German exit.
  • Four public bot tests: bot.sannysoft.com, BrowserScan’s bot detection page, deviceandbrowserinfo.com’s “Are you a bot?” page, and CreepJS.
  • Start-up time: from launch to the first page loaded through the proxy, median of three headless runs.

The results

CamoufoxNodriverPatchrightSeleniumBase UC
Proxy with loginBuilt inExperimental optionBuilt inBuilt in
Start-up, medianAbout 30 s2.0 s2.2 s6.7 s
Real IP leaked via WebRTCNoYesYesNo
Time zone matched the exitYesNoNoNo
Headless
Sannysoft checks failed1 of 313 of 313 of 310 of 31
BrowserScanNormalRobotRobotDid not finish
”Are you a bot?”HumanBotBotDid not finish
CreepJS headless score0%67%67%0%
Headed
Sannysoft checks failed1 of 310 of 310 of 310 of 31
BrowserScanNormalNormalNormalDid not finish
”Are you a bot?”HumanHumanHumanDid not finish
CreepJS headless score0%0%0%0%

Camoufox’s start-up time varied most: 5 seconds in one run and about 30 seconds in the others. SeleniumBase’s two “did not finish” results mean the test pages never completed their checks in UC mode, in either mode, so we count them as no result rather than a pass or a fail.

Four findings

1. Headless Chrome still gives itself away. Patchright and Nodriver in headless mode were flagged by every test, and their user agent still said “HeadlessChrome”. The same tools in headed mode passed everything. If you use either one, run it headed, under a virtual display on servers, or change the headless traces yourself. SeleniumBase’s UC mode hid the headless user agent; Camoufox looked the same in both modes.

2. WebRTC leaked the real IP. With Patchright and Nodriver, the browser’s WebRTC check revealed the machine’s own public IP address, even though every page loaded through the proxy. WebRTC can use UDP, which an HTTP proxy does not carry. We tested two Chrome switches with Patchright: --webrtc-ip-handling-policy=disable_non_proxied_udp stopped the leak; --force-webrtc-ip-handling-policy did not. Our guide to WebRTC leaks explains the mechanism.

3. The time zone gave the location away. The three Chrome-based tools reported the machine’s own time zone, not Berlin. A German IP with a clock set elsewhere is an easy inconsistency to spot. Camoufox’s geoip option set the time zone from the exit IP automatically. It also picked an unusual browser language each run, such as Italian for Germany, so set the locale yourself.

4. Test pages are not the real world. Passing a public test shows a tool hides the obvious traces. Real anti-bot systems also weigh network fingerprints, behaviour, request rates and IP reputation. Our guide to TLS and HTTP/2 fingerprinting covers the network side, which none of these pages measured.

Setting each one up with a proxy

All four take a username and password. With the Shifter gateway, the country and a sticky session go in the username.

Camoufox, with location matching on:

from camoufox.sync_api import Camoufox

with Camoufox(headless=True, geoip=True, proxy={
    "server": "http://p.shifter.io:443",
    "username": f"{USER}-country-de-sid-abc123-ttl-900",
    "password": PASSWORD,
}) as browser:
    page = browser.new_page()

Patchright, with the two fixes from our test:

from patchright.sync_api import sync_playwright

with sync_playwright() as p:
    ctx = p.chromium.launch_persistent_context(
        profile_dir, channel="chrome", headless=False, no_viewport=True,
        timezone_id="Europe/Berlin", locale="de-DE",
        proxy={"server": "http://p.shifter.io:443",
               "username": f"{USER}-country-de-sid-abc123-ttl-900",
               "password": PASSWORD},
        args=["--webrtc-ip-handling-policy=disable_non_proxied_udp"],
    )

Nodriver, through its experimental proxy option. Our first attempt, answering the proxy login by hand over the DevTools protocol, hung; this option worked:

import nodriver as uc

browser = await uc.start()
tab = await browser.create_context(
    "about:blank",
    proxy_server=f"http://{USER}-country-de-sid-abc123-ttl-900:{PASSWORD}@p.shifter.io:443",
)

SeleniumBase, in UC mode:

from seleniumbase import SB

with SB(uc=True, proxy=f"{USER}-country-de-sid-abc123-ttl-900:{PASSWORD}@p.shifter.io:443") as sb:
    sb.open("https://example.com")

For the Chrome-based tools, add the WebRTC switch and set the time zone and language to match the exit. Our guide to residential proxies in Playwright covers sessions and bandwidth in more depth.

Which one to choose

  • Camoufox if you want the most done for you: it passed BrowserScan, the bot test and CreepJS in both modes, failed one Sannysoft check, matched the time zone and did not leak. Accept the slower start and Firefox’s differences, and set the language yourself.
  • Patchright if you already use Playwright: fast, and clean in headed mode once the WebRTC switch and time zone are set.
  • Nodriver if you want a light, fast Chrome driver and can live with an experimental proxy option. Same fixes as Patchright.
  • SeleniumBase if your code is built on Selenium: clean on Sannysoft and CreepJS, no WebRTC leak, but two of the four tests never completed for it, so test it against your own targets.

Whichever you pick, use it for legitimate work: testing your own sites, monitoring public pages and collecting public data, at a pace sites can handle. For agents built on these browsers, our guide to Browser Use agents behind residential proxies covers sessions and concurrency, and residential proxies provide the local exits.

How we tested

On 25 November 2026 we ran each tool on an Intel Mac mini with macOS 15.8 and Chrome 158, using the versions listed above. Every run used the same sticky German residential session. Each tool ran once in headless and once in headed mode against the same pages, in the same order, with fixed waits for each page to finish. Start-up times are the median of three further headless runs. Nodriver ran on Python 3.15 because its current version needs Python 3.10 or later; the others ran on Python 3.9. The real IP check compared WebRTC candidates with the machine’s own address without recording it. Results are a snapshot: these tools and the test pages change often, and one machine and one exit cannot represent every setup.

The bottom line

Behind the same residential proxy, Camoufox was the only tool that passed the bot verdicts in both modes without extra work, at the cost of a slow start and one Sannysoft check. Patchright and Nodriver were fast and passed in headed mode but leaked the real IP through WebRTC and kept the machine’s time zone until fixed. SeleniumBase’s UC mode was clean where the tests finished. Whatever you choose, fix WebRTC, match the time zone to the exit and test against the sites you actually use.

Sources and references

Frequently asked questions

Which stealth browser did best in the test?

Camoufox. In our test on 25 November 2026 it passed BrowserScan and deviceandbrowserinfo's bot test and scored 0% headless on CreepJS in both headless and headed mode, with no WebRTC leak and a time zone that matched the proxy. It was also the slowest to start, at about 30 seconds in most runs.

Is headless mode detectable?

For the Chrome-based tools we tested without extra changes, yes. Patchright and Nodriver in headless mode were flagged as robots on every bot test, and CreepJS rated both 67% headless. The same tools in headed mode passed the same tests.

Do stealth browsers leak your real IP behind a proxy?

Some do. Patchright and Nodriver revealed the machine's real IP address through WebRTC in both modes. Launching Chrome with --webrtc-ip-handling-policy=disable_non_proxied_udp stopped the leak in our test. Camoufox and SeleniumBase did not leak.

Do these tools support authenticated proxies?

All four can use a proxy with a username and password. Patchright and Camoufox take it as a proxy setting, SeleniumBase as a user:password@host:port string, and Nodriver through its experimental create_context(proxy_server=...) option.

Ready to get started?

Try Shifter's residential proxies, 205M+ IPs, 195+ countries, from $0.10/GB.

Get Started