puppeteer-real-browser, Rebrowser and hCaptcha.
rebrowser-puppeteer and rebrowser-playwright are Puppeteer and Playwright with patches that hide some signs of automation. puppeteer-real-browser was built on top of them. How to install each, use a proxy, what their READMEs claim, and how to get an hCaptcha token in the session.
What rebrowser-patches is
rebrowser-patches is a set of source patches for Puppeteer and Playwright, MIT licensed, on GitHub since August 2024 and at about 1,450 stars on 2 November 2026. Its README explains why it patches code instead of passing options: “Some aspects of automation libraries or browser behavior cannot be adjusted through settings or command-line switches.” You can run the patcher on a copy you already installed, but most people use the drop-in packages, which the README describes as the original libraries with the patches “applied on top of the original code, nothing more.”
| Package | Registry | Patches | Latest version |
|---|---|---|---|
rebrowser-puppeteer | npm | Puppeteer | 25.14.101, 19 October 2026 |
rebrowser-playwright | npm | Playwright for Node | 1.64.101, 19 October 2026 |
rebrowser-playwright | PyPI | Playwright for Python | 1.64.101, 19 October 2026 |
rebrowser-patches | npm | A copy you already installed | 1.1.2, 19 October 2026 |
The version numbers follow the upstream library: 25.14.101 is Puppeteer
25.14.0 with the patches, and the README says to install the latest
.10x release instead of matching the upstream patch number.
There are also rebrowser-puppeteer-core and
rebrowser-playwright-core, the patched versions of the
-core packages.
What the patches change
| Patch | What it changes, per the README |
|---|---|
Runtime.enable leak | Stops the library from sending the CDP command Runtime.enable, which the README says anti-bot scripts can detect, and finds the page’s execution context another way |
| Names in stack traces | Puppeteer’s pptr: source URL is dropped, and Playwright’s UtilityScript helper gets a random name |
navigator.webdriver | Adds --disable-blink-features=AutomationControlled so it reads false, and drops a few launch switches, among them Puppeteer’s --enable-automation |
| Utility world name | Renames Puppeteer’s __puppeteer_utility_world__ to util |
The README is just as clear about what they leave alone: “the
HeadlessChrome token in the headless user agent, fingerprints
(canvas, WebGL, fonts, screen), your IP reputation and how your script
behaves (timing, mouse movement).” Each patch has an environment variable
that switches it off, and the Runtime.enable one has modes,
covered below.
We ran rebrowser-puppeteer 25.14.101 and rebrowser-playwright 1.64.101 on
2 November 2026, headless, next to Puppeteer 25.16.0 and Playwright 1.64.1.
navigator.webdriver read true in both originals and
false in both rebrowser packages. A stack trace taken by the page
while our Puppeteer code ran showed pptr:evaluate with Puppeteer
and <anonymous> with rebrowser-puppeteer. The headless user
agent still said HeadlessChrome with all four.
Install rebrowser-puppeteer
The README’s easiest route is an npm alias: the patched packages are
installed under the original names, so your
import puppeteer from 'puppeteer'
lines keep working:
npm install puppeteer@npm:rebrowser-puppeteer \
puppeteer-core@npm:rebrowser-puppeteer-core
npm saves it in package.json as
"puppeteer": "npm:rebrowser-puppeteer@^25.14.101".
Or install rebrowser-puppeteer by name and change the import.
Either way it downloads Chrome on install, as Puppeteer does. Save this as
an .mjs file:
import puppeteer from 'rebrowser-puppeteer'
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.goto('https://example.com/')
console.log(await page.title())
console.log(await page.evaluate(() => navigator.webdriver))
await browser.close()
It printed the page title and false, with both the alias and
the direct install. To patch a puppeteer-core you already
have instead, run the patcher in your project folder; unpatch
reverts it. We patched puppeteer-core 25.14.0 this way and
navigator.webdriver read false. The README warns
that a later npm install can undo the patch.
npx rebrowser-patches@latest patch --packageName puppeteer-core
npx rebrowser-patches@latest unpatch --packageName puppeteer-core Install rebrowser-playwright (Node and Python)
The Node package also installs the playwright command, which
downloads the browser:
npm install rebrowser-playwright
npx playwright install chromium The README gives the same alias form for Playwright:
npm install playwright@npm:rebrowser-playwright playwright-core@npm:rebrowser-playwright-core import { chromium } from 'rebrowser-playwright'
const browser = await chromium.launch()
const page = await browser.newPage()
await page.goto('https://example.com/')
console.log(await page.title())
console.log(await page.evaluate(() => navigator.webdriver))
await browser.close()
In Python, run pip install rebrowser-playwright
(Python 3.10 or later) and import from rebrowser_playwright:
from rebrowser_playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
page.goto("https://example.com/")
print(page.title())
print(page.evaluate("navigator.webdriver"))
browser.close()
Both printed the title and false in our run (Python 3.12).
The Runtime.enable fix modes
The main patch has several modes, set with an environment variable; the
README says you can also change it from code while the script runs. addBinding is the default and, per the README,
keeps access to the page’s own JavaScript. alwaysIsolated runs
all your code in a separate world the page cannot observe.
0 turns the fix off. A fourth, enableDisable, is
marked “Not recommended” in the README.
REBROWSER_PATCHES_RUNTIME_FIX_MODE=addBinding node app.mjs
REBROWSER_PATCHES_RUNTIME_FIX_MODE=alwaysIsolated node app.mjs
REBROWSER_PATCHES_RUNTIME_FIX_MODE=0 node app.mjs
The difference shows up quickly. On our test page,
page.evaluate(() => window.appState) returned the page’s
value in the default mode and null in
alwaysIsolated, with both rebrowser packages. Anything that
has to call a function the page defined, such as an hCaptcha callback,
needs the default mode.
Rebrowser and proxies
A rebrowser package uses a proxy the same way as Puppeteer or Playwright.
In rebrowser-puppeteer, pass Chrome’s --proxy-server switch
and log in with page.authenticate():
import puppeteer from 'rebrowser-puppeteer'
const browser = await puppeteer.launch({
args: ['--proxy-server=http://proxy.example:8000'],
})
const page = await browser.newPage()
await page.authenticate({ username: 'user', password: 'pass' })
await page.goto('https://example.com/')
In rebrowser-playwright, pass
proxy: { server, username, password }
to chromium.launch(). Both sent our test page through a local
proxy that required a login. With rebrowser-puppeteer, Chrome’s own
background requests, such as update checks, went to the proxy as well,
which counts if you pay your proxy by the gigabyte.
The other “rebrowser proxy” is the company’s paid product. Rebrowser’s docs say every run on its cloud browsers “must have a proxy assigned”, HTTP or SOCKS5: the plans include some datacenter proxies, it sells ISP, residential and mobile ones, and you can bring your own.
What rebrowser.net is
The README says rebrowser-patches “is sponsored and maintained by Rebrowser”. On rebrowser.net the company describes three products: cloud browsers that run on Windows PCs and Android devices it hosts, which you drive with Puppeteer or Playwright over CDP; a web scraper API; and ready-made datasets. Its pricing page listed plans from $49 a month on 2 November 2026, with browser hours and proxy traffic billed from the plan’s balance.
The cloud browsers also report CAPTCHAs. Rebrowser’s CAPTCHA docs list hCaptcha as detected, with automatic solving “Not available at the moment”; on that list, only Cloudflare challenge pages and Turnstile are solved automatically. We have not used the cloud product.
puppeteer-real-browser
puppeteer-real-browser
is an npm package by zfcsoftware, now under the
ZFC-Digital
GitHub organisation, MIT licensed on GitHub and at about 1,650 stars on 2 November
2026. Instead of letting Puppeteer launch the browser, it starts your
installed Chrome with chrome-launcher and connects to it with
rebrowser-puppeteer-core (version 1.4.4 resolved to 23.10.3).
It adds ghost-cursor mouse movement (page.realClick),
puppeteer-extra plugin support, and a virtual screen through
xvfb on Linux.
Status. Since 5 February 2025 the README has opened with “This repo will no longer receive updates. Thank you to everyone who supported it.” The last release, 1.4.4 on 3 September 2025, and every release after 1.4.0 changed only the README’s sponsor section and the version number. On 2 November 2026 the repository was not archived on GitHub and the npm package was not marked deprecated. Its README also says: “If using rebrowser solves your problem, I don’t recommend using real browser.”
npm i puppeteer-real-browser import { connect } from 'puppeteer-real-browser'
const { browser, page } = await connect({
headless: 'new',
turnstile: true,
})
await page.goto('https://example.com/')
console.log(await page.title())
await browser.close() connect() returns a Puppeteer browser and
page. The README’s default is headless: false,
which it says “works most stable”, with xvfb providing the screen on Linux;
we ran only the headless form above, since the default opens a visible
window on a Mac. To use a specific Chrome, pass
customConfig: { chromePath }.
A proxy goes in its own option, and the package logs in for you:
const { browser, page } = await connect({
headless: 'new',
proxy: {
host: 'proxy.example',
port: 8000,
username: 'user',
password: 'pass',
},
})
The README claims the package “prevents Puppeteer from being detected as a
bot in services like Cloudflare and allows you to pass captchas without any
problems”, and that turnstile: true
“automatically clicks on Captchas”. In the 1.4.4 source, that option
looks for Cloudflare Turnstile’s cf-turnstile-response field
and clicks inside its container; the package has no hCaptcha code. We have not tested
its Cloudflare claims. In our headless run on Chrome 156,
navigator.webdriver read true.
Rebrowser alternatives
| Tool | What it is | Status on 2 November 2026 |
|---|---|---|
| rebrowser-puppeteer, rebrowser-playwright | Puppeteer or Playwright with rebrowser-patches applied | Released 19 October 2026 |
| Patchright | A patched Playwright for Chromium, Python and Node | Released 25 October 2026 |
| puppeteer-real-browser | Launches your Chrome and drives it with rebrowser-puppeteer-core | No updates since 2025, per its README |
| Stealth plugins | JavaScript evasions injected into the page | The rebrowser README warns they are detectable |
On stealth plugins, the rebrowser README says that adding
puppeteer-extra-plugin-stealth on top of rebrowser-puppeteer
turned two checks red on its own bot-detector page, because the plugin’s
evasions “override browser internals from JavaScript, and that is
detectable on its own.” That is the README’s claim; we have not tested it.
Do they get past hCaptcha?
The rebrowser-patches README answers this one itself: “CAPTCHA and bot-management products such as Cloudflare Turnstile, hCaptcha or Google search score all of these, so the patches alone won’t get you past them.” Patching the driver changes one of the signals that decide whether a site’s hCaptcha shows a challenge at all. Why am I getting hCaptcha covers the others, starting with the reputation of your IP address.
Once a challenge appears, none of these tools finish it. The site accepts
the form only with a valid token in the
h-captcha-response field, a
P1_ string its server checks with hCaptcha. rebrowser-puppeteer,
rebrowser-playwright and puppeteer-real-browser do not return one.
Get an hCaptcha token in a rebrowser session
NoneCap is an hCaptcha solving API. Keep rebrowser for the rest of your
run, and when a page has hCaptcha, send its sitekey and
url through the Node SDK
(npm install nonecap).
nc.solve() waits for the result and returns the token:
import puppeteer from 'rebrowser-puppeteer'
import { NoneCap } from 'nonecap'
const nc = new NoneCap({ apiKey: process.env.NONECAP_KEY })
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.goto('https://your-site.example/signup')
const sitekey = await page.$eval('[data-sitekey]', (el) => el.dataset.sitekey)
const { token } = await nc.solve({
type: 'hcaptcha',
sitekey,
url: page.url(),
user_agent: await browser.userAgent(),
}) Then put the token in the form, call the widget’s callback if the page set one, and submit:
await page.evaluate((token) => {
for (const name of ['h-captcha-response', 'g-recaptcha-response']) {
const el = document.querySelector(`textarea[name="${name}"]`)
if (el) el.value = token
}
const cb = document.querySelector('[data-callback]')?.dataset.callback
if (cb && typeof window[cb] === 'function') window[cb](token)
}, token)
await Promise.all([page.waitForNavigation(), page.click('button[type=submit]')])
await browser.close()
We ran both blocks against a local test form with a stand-in API and a fake
token. In the default mode, the token reached both fields, the page’s
data-callback function ran, and the form posted the token.
With alwaysIsolated, the fields were filled but the callback
never ran, because the page’s functions are out of reach there; use the
default mode for this step. The same page.evaluate works on
the page puppeteer-real-browser returns.
Sending the browser’s user_agent is optional; some sites need
it for the token to be accepted. If your browser goes through a proxy, you
can pass the same one as proxy so the token and the form come
from the same IP address. Failed, cancelled and expired solves are never
charged. Every field is in the API reference,
and the Puppeteer guide covers
invisible and enterprise (rqdata) sitekeys. NoneCap solves
hCaptcha only; it does not help with reCAPTCHA, Turnstile
or other CAPTCHAs.
Last updated November 2026.
Frequently asked
What is rebrowser?
rebrowser-patches is an open-source set of patches for Puppeteer and Playwright, published as drop-in packages (rebrowser-puppeteer, rebrowser-playwright) that hide some signs of automation, such as the CDP Runtime.enable call and navigator.webdriver. Rebrowser, at rebrowser.net, is the company that sponsors and maintains them, and it sells cloud browsers, a web scraper API and datasets.How do I install rebrowser-puppeteer?
npm install puppeteer@npm:rebrowser-puppeteer puppeteer-core@npm:rebrowser-puppeteer-core, and your import puppeteer from 'puppeteer' lines keep working. Or install rebrowser-puppeteer and change the imports. It downloads Chrome on install, like Puppeteer.How do I use rebrowser-playwright in Python?
pip install rebrowser-playwright and import from rebrowser_playwright instead of playwright, for example from rebrowser_playwright.sync_api import sync_playwright. Version 1.64.101 needs Python 3.10 or later.Is puppeteer-real-browser still maintained?
What does REBROWSER_PATCHES_RUNTIME_FIX_MODE do?
Runtime.enable. addBinding is the default and keeps access to the page’s own variables. alwaysIsolated runs your code in a separate world, so page globals and callbacks are out of reach. 0 turns the fix off.How do I use a proxy with rebrowser?
rebrowser-puppeteer, the same way as in Puppeteer: pass --proxy-server in args and log in with page.authenticate(). In rebrowser-playwright, pass proxy to chromium.launch(). Rebrowser’s paid cloud browsers are a separate product: its docs say every run must have a proxy, either one of theirs or your own.