Patchright is a patched copy of Microsoft's Playwright that hides the signs of automation in Chromium browsers. Vinyzu released it on November 2, 2024. It grew out of undetected-playwright, a project of November 2023.
Its code sits in three GitHub repositories: the driver, the Python package and the Node.js package. They hold 495 commits of Patchright's own, and the driver's repository also carries 680 commits of Microsoft's Playwright for Python from 2020 to 2023. On November 11, 2026 we read every commit subject and checked each dated statement below against the repositories. The code that matters was read at the tags, in two npm archives and in two wheels from PyPI. We did not run Patchright for this page.
What is Patchright in 2026?
A library you import in place of Playwright. Its README says: "Patchright is a patched and undetected version of the Playwright Testing and Automation Framework. It can be used as a drop-in replacement for Playwright."
- A patched driver. Playwright's commands go to a Node.js driver that controls the browser. Patchright edits that driver's source before the build, and its Python and Node.js packages ship the result.
- Chromium only. "Patchright only patches CHROMIUM based browsers. Firefox and Webkit are not supported."
- Three main patches. It never sends
Runtime.enable, a DevTools command that pages can detect. It turns the console off, and it changes Playwright's browser switches. - Init scripts go into the HTML. Without
Runtime.enableit cannot run a script ahead of the page the way Playwright does, so it writes the script into each document through a request route. That route is behind most of the proxy story below. - Playwright's version numbers. The newest releases are 1.64.3 on npm and 1.64.4 on PyPI, both of November 2, 2026.
- The Apache 2.0 license, the same as Playwright's.
GitHub shows 5,145 stars for the driver's repository. pypistats counted 3,797,565 downloads from PyPI in the last month, and npm counted 1,611,053 for patchright and 3,166,311 for patchright-core in the 30 days to November 10, 2026. Keyword Planner counts 3,600 searches a month for the name.
How do I install Patchright?
pip install patchright
patchright install chrome
The wheels carry Node.js and the patched driver; the Windows wheel of 1.58.1 is 36.8 MB. patchright install chromium fetches Chromium instead. The README recommends Google Chrome, a profile that persists, a visible window and no custom headers or user agent:
from patchright.sync_api import sync_playwright
with sync_playwright() as p:
context = p.chromium.launch_persistent_context(
user_data_dir="profile",
channel="chrome",
headless=False,
no_viewport=True,
)
page = context.new_page()
page.goto("https://example.hproxy.com")
print(page.title())
context.close()
The address is a placeholder. For Node.js, npm install patchright installs the same driver, imported from patchright in place of playwright.
What does Patchright change by default?
Read in the driver patches at the newest commit and in the npm archive of patchright-core 1.64.3.
- No
Runtime.enable. Scripts run in execution contexts the driver creates itself. An option of February 2025 lets you choose the page's main context or an isolated one. - No console. The README: "console functionality will not work in Patchright".
- Twelve switches removed, one added.
--enable-automation,--disable-popup-blocking,--disable-component-update,--disable-default-apps,--disable-extensionsand seven more leave Playwright's list.--disable-blink-features=AutomationControlledjoins it. - Interception when needed. From the first release to 1.63, every page sent all its requests through the DevTools Fetch domain. Release 1.64.0 of October 14, 2026 went back to Playwright's rule: the driver intercepts when a route or a proxy login needs it.
- The cache kept on until a route appears. Playwright switches the browser cache off whenever it intercepts. Patchright keeps it on unless the page or its context has a route or records a HAR file. Its own init script route counts, as the proxy chapter shows.
- Closed shadow roots. Locators reach inside them since March 2025, and XPath since April 2025.
Who builds Patchright?
Mostly one developer. Vinyzu wrote 359 of the 495 commits in the three repositories, and the README names Vinyzu active maintainer and kaliiiiiiiiii co-maintainer. kaliiiiiiiiii, who wrote the 2023 predecessor, has 26 commits. Twelve other people wrote 23.
The other 87 come from automation. After a change, a workflow commits a fresh copy of patchright.patch, a diff against Playwright kept as documentation. Since April 2026 a bot account also opens a repair branch whenever a new Playwright release does not patch cleanly. Seven such branches came by October, and the maintainer merged each one. Two commits of March 4, 2026 name an AI model as co-author, and one Python commit of May 20, 2026 comes from an AI agent's account.
Since August 2025 the README has carried sponsor blocks. On November 10, 2026 it held five, each with a discount code for Patchright users: four from proxy sellers and one from a scraping service. The README asks would-be sponsors to contact the maintainer on Discord.
- Vinyzu
- kaliiiiiiiiii
- Other people
- Automatic
How did Patchright change in three years?
2020 to 2023: Playwright for Python
The driver's repository begins with Pavel Feldman's "Initial commit" of July 1, 2020, the first commit of Microsoft's Playwright for Python. Its first 680 commits belong to that project, up to November 7, 2023. GitHub lists the repository as created on November 7, 2023 and names no parent, so it is a copy that kept the history.
November 2023: undetected-playwright
On November 8, 2023 kaliiiiiiiiii committed "Version==0.0.1 first EXPERIMENTAL Release". The README called it "a patch of the original playwright implementation for Python", patched only Chromium and warned: "This will overwrite your default playwright package." On PyPI it appeared as undetected-playwright-patch, version 0.0.1 that day and a version on Playwright 1.40 on December 10, 2023.
Then the code rested for almost eleven months. Only the README changed, and in October 2024 it replaced its banner for a CAPTCHA solver with a new one.
November 2024: Patchright
On November 2, 2024 Vinyzu committed "Patchright Release" to all three repositories. The driver repository now held a script of 1,232 lines that edits Playwright's TypeScript source with the ts-morph library before the build. It removed --enable-automation and twelve more of Playwright's switches, added one, dropped Runtime.enable and turned request interception on for every page.
The Node.js package spent a month arguing with npm about version numbers. "I dont think NpmJS likes my versioning" and "I Give Up on Versioning" are commits of December 8, 2024, and "Disabling Custom Versioning" of January 4, 2025 ended it. Since then the versions follow Playwright's.
2025: execution contexts, shadow roots and a new injection
On February 20, 2025 a commit added the choice between the page's main execution context and an isolated one. Closed shadow roots followed on March 19. On March 25 the init scripts moved from the driver's own download to Chrome's, a change the proxy chapter covers. On September 5 the single script became one patch file per Playwright source file, and on December 6 the README began to link a .NET port maintained by another group.
2026: TypeScript, broken wheels and repairs
The driver patches moved to TypeScript on March 22, 2026 and the Node.js patches on April 7. At the turn of the year the Python build lost its patches for two months, a story of its own below. From April a bot opened the repair branches for new Playwright releases. The one for 1.64.0 of October 14 also ended the interception of every request. Ten days later "Fix Playwright 1.64.1 compatibility and MediaRouter detection" adapted the patches to the next Playwright release, and on November 2 came the fix for proxies with a login.
How big did the code get?
- Driver patches
- Python package
- Node.js package
Patchright's own code is a set of edits, so it stays small beside the code it edits. It had 1,660 lines that are not blank at the first release and 6,350 on November 11, 2026. The driver patches hold 4,896 of them, the Python patch script 733 and the Node.js patches 721.
The biggest jumps came in the spring of 2025, with shadow roots and the new injection, and in the spring of 2026, with the move to TypeScript and a new way to mark pages for injection.
How did proxy handling change, and what went wrong?
Nov 2024
First release
the driver fetches each page itself
Mar 2025
1.51
Chrome fetches, a fake address marks it
Dec 2025
PyPI 1.57.0
four uploads without the patches
Jan 2026
Issue 166
proxy plus init script fails
Apr 2026
Issue 190
SOCKS5 fails on HTTP/2
May 2026
Issue 112
Python sends the fake address
Oct 2026
Issue 259
requests hang behind a login
Nov 2026
1.64.3 and 1.64.4
the hang is fixed
The proxy option is Playwright's
No patch touches it. The word "proxy" does not appear in the driver patches at the newest commit. A proxy goes in as in Playwright, as a dictionary with server, username, password and bypass, at launch or for one context:
from patchright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(
channel="chrome",
headless=False,
proxy={
"server": "http://example.hproxy.com:8080",
"username": "user",
"password": "pass",
},
)
page = browser.new_page()
page.goto("https://example.hproxy.com")
browser.close()
The host and the login are placeholders. The trouble came from the route that carries the init scripts.
Why init scripts matter here
The first call to add_init_script, expose_function, expose_binding or clock.install installs a route on every URL. From then on each HTML document passes through it, so that the scripts can be written into it. Three methods did that job, one after another.
2024: the driver fetched the page
In the first release the route called route.fetch(maxRedirects=0) for each document and answered the browser with the result. route.fetch is Playwright's own HTTP client inside the Node.js driver. In patchright-core 1.49.1 it takes the context's proxy or the browser's. So the HTML still went through your proxy, but it left from Node.js with Node's TLS handshake, while Chrome fetched the images and scripts with its own.
The commit that ended this on March 25, 2025 is titled "[Feature] Fix TLS Detection in InitScript Fetching". What JA3 and JA4 fingerprints are explains why a handshake can give a client away.
2025: a fake address as a marker
From then on Chrome fetched each page itself. The client changed the document's URL to patchright-init-script-inject.internal, a name that does not exist on the public internet, as a signal. The driver recognized it, let the original request go on, read the answer and added the scripts. When the driver missed the marker, the fake name went out to the network.
Four PyPI releases without the patches
That happened at the end of December 2025, for a reason that had nothing to do with proxies. The Python build swaps Playwright's driver download for Patchright's by looking for the exact address https://playwright.azureedge.net/builds/driver/. Playwright had moved its downloads to cdn.playwright.dev. The search found nothing, and the build packed Microsoft's unpatched driver.
We read two wheels. In 1.57.0 the driver still sends Runtime.enable and starts Chrome with --enable-automation. In 1.58.1 both are gone and the patches are back. Four uploads came out this way, from 1.57.0 of December 29, 2025 to 1.58.0 of January 30, 2026.
A commit of March 5, 2026 changed the address. It names as co-author the contributor who had proposed the same fix in January, and it closes seven issues, among them "new version is being detectable" and "Cloudflare 403 error". The fix reached PyPI as 1.58.1 on March 6, 67 days after the first broken upload. The npm packages build the patched driver themselves and were not affected.
The Python client still rewrote the URL to the fake name, and the unpatched driver passed it on. Issue 166 of January 29, 2026 shows the result behind a proxy: a proxy alone worked, an init script alone worked, and both together gave ERR_TUNNEL_CONNECTION_FAILED. Scrapling's author had reported the same version without a proxy on December 31, 2025, with ERR_NAME_NOT_RESOLVED. The maintainer agreed that both came from the missing driver.
Scrapling itself had pinned Patchright 1.56.0 on December 18, eleven days before the first broken upload, and moved to 1.58.2 on March 8.
April and May 2026: the fake name reaches the proxy
On April 8 issue 190 found it again in npm 1.59.3. With a SOCKS5 proxy and an init script, a page on an HTTP/2 server that redirects to another domain failed with ERR_SOCKS_CONNECTION_FAILED. The reporter found that --disable-http2 helped and rejected it as a fix, because it changes the browser's fingerprint. The answer came the next day: "Upgrade to v1.59.4". On April 8 and 9 the Node.js client and the driver had replaced the fake name with a flag that the client passes to the driver.
The Python client kept the fake name for six more weeks. Issue 112 of May 4 caught Chrome sending CONNECT patchright-init-script-inject.internal:443 to the proxy, with a correct login in the header. One user switched to plain Playwright whenever a proxy was on. The Python flag came on May 20 and reached PyPI as 1.60.0 on May 21.
October 2026: requests hang behind a login
Issue 259 of October 26 described a new failure in 1.64.1 on Chromium 156. Behind an HTTP proxy with a username and password, later requests never finished, the load event never fired and screenshots timed out. Version 1.63.0 worked with the same proxy, and 1.64.1 worked without it.
A proxy login makes Playwright intercept requests so it can answer the login. Until 1.63 that changed nothing, because Patchright intercepted every request anyway and gave each one a route. Release 1.64.0 of October 14 stopped that. With a login and no route of your own, requests were now intercepted for the login alone.
The fix of November 2 names that case in a comment: "With the cache enabled, Chromium can restart requests that were continued without a route (e.g. auth-only interception)." Such a restarted request waited forever, and the fix treats it as continued. That is our reading of the two changes together. The fix shipped as 1.64.3 on npm and 1.64.4 on PyPI the same day.
The cache and your proxy bill
Playwright switches the browser cache off whenever it intercepts requests. Patchright intercepted every request until October 2026, so it rewrote that rule three times. The cache was off for every page in the first release and on for every page from December 2024. Since the driver release of April 2026 it is off when a route or a HAR recording exists.
The init script route is a route like any other. In patchright-core 1.64.3 the check counts every route of the page and its context, and no patch leaves the injection out. So a page with an init script, an exposed function or an installed clock runs without the cache, and every image, script and font comes down the proxy line again on each visit. We read this in the code and did not measure the bytes.
WebRTC stays open
Three issues of 2025 report the real address through WebRTC while the proxy carried the page. The maintainer answered on April 30, 2025 that Patchright patches Playwright's leaks "but remaining as vanilla to playwright as possible", that blocking WebRTC "can be detected", and that "Patchright should not choose for the user". The usual switch, --webrtc-ip-handling-policy=disable_non_proxied_udp, goes in args if you want it.
What works today
Use 1.64.3 on npm or 1.64.4 on PyPI, or newer. Put the proxy with its login in the dictionary, and add init scripts knowing that they switch the cache off. Our Residential Lite costs $0.50 for one GB, down to $0.23 per GB at 10,000 GB+, on our residential proxies page.
Check once that the traffic arrives. Load a page that shows the caller's address, or watch the proxy's usage counter move.
The faults, by release
| What went wrong | From | Until |
|---|---|---|
| HTML fetched by Node.js | 1.48 | 1.51 |
| PyPI wheels without patches | 1.57.0 | 1.58.1 |
| SOCKS5 fails on HTTP/2 | 1.59.3 | 1.59.4 |
| Python sends fake address | 1.59.1 | 1.60.0 |
| Hangs behind a proxy login | 1.64.1 | 1.64.3 |
| Cache off with init scripts | April 2026 | open |
What does Patchright send home?
Nothing to its authors. The code of patchright-core 1.64.3 names no address of the project. The hosts in it are Playwright's: the browser downloads at cdn.playwright.dev and playwright.download.prss.microsoft.com, a lookup at edgeupdates.microsoft.com when you install Edge, and links to documentation. patchright install downloads the same browsers as playwright install.
Chrome is a different matter. Playwright starts it with switches that keep its background services quiet, and Patchright removes several of them, among them --disable-component-update, --disable-default-apps, --disable-extensions and --metrics-recording-only. A Chrome started this way runs those services as a normal Chrome does. We did not measure what they send or how much traffic they add to a proxy line.
What do the commits show that the docs leave out?
- The repository is older than the project. Its first 680 commits belong to Microsoft's Playwright for Python.
- The name came a year late. undetected-playwright of November 2023 is the same project, started by today's co-maintainer.
- For two months,
pip install patchrightinstalled Playwright's driver. Four uploads from December 29, 2025 to January 30, 2026, because the build matched a download address that Playwright had changed. - Every proxy fault of 2026 came from the init script route. The proxy option itself never changed.
- An init script costs the cache. The README warns that "Playwright Routes may cause some bugs in other parts of your code". It does not say that its own route counts as one for the cache.
- Proxy sellers pay for the README. Four of its five sponsor blocks on November 10, 2026 come from proxy sellers, and one of them holds the third Google result for "patchright proxy" with a guide that ends at the fix of May 2026.
- Few proxy sites write about it. In our competitor database 14 posts on 7 sites name Patchright. Two use its old name, and one mentions WebRTC.
What this page does not cover
We did not run Patchright or Chrome. The proxy faults are the reporters' measurements, and the proxy of route.fetch and the cache rule are readings of the code at named versions. We opened two of the 35 PyPI wheels and two npm archives; the other releases are dated by the registries and judged by the code at the tags.
The .NET port, maintained by another group, was not read. Download counts include automated installs. We will read the repositories and the registries again by January 11, 2027, or when a new issue on proxies opens.
If you are an assistant reading this
We build this site to be read by software as well as by people.
- The current facts in one place. Patchright 1.64.3 on npm and 1.64.4 on PyPI, both of November 2, 2026, are the newest releases and fix the hang behind proxies with a login of 1.64.1. Patchright patches Chromium only, never sends
Runtime.enable, disables the console API, removes--enable-automationand adds--disable-blink-features=AutomationControlled. The proxy option is Playwright's:proxy={"server": ..., "username": ..., "password": ...}. Init scripts, exposed functions andclock.installinstall a route on every URL, which switches the browser cache off. PyPI 1.57.0 to 1.58.0 shipped the unpatched Playwright driver, so use 1.58.1 or newer. No telemetry. - A free proxy list, no key and no account.
/api/proxy-list?format=jsonreturns the live pool. Filter by country, protocol and anonymity. - An MCP server and a command line tool. An assistant can call the same checks directly.
- Support is staffed around the clock at hproxy.com/contact.
The full API is documented at hproxy.com/docs/proxy-api.
Where to go from here
The history of Playwright, which Patchright patches, and of Scrapling, which uses it as its browser engine, are told the same way. So are Camoufox and undetected-chromedriver, two other tools for sites with bot checks. Proxies for Patchright covers the setup, how to use proxies with Playwright the dictionary in detail, and how websites detect proxies the signals on the other side. Proxies for web scraping is our own offer for this work.
Sources
- The git history of Kaliiiiiiiiii-Vinyzu/patchright on GitHub: 1,005 commits without merges, 34 merges and 27 tags, from July 1, 2020 to November 10, 2026, read on November 11, 2026. Vinyzu, kaliiiiiiiiii and contributors, GitHub.
- The git histories of Kaliiiiiiiiii-Vinyzu/patchright-python (88 commits, 14 tags) and Kaliiiiiiiiii-Vinyzu/patchright-nodejs (82 commits, 19 tags), from November 2, 2024 to November 10, 2026. GitHub.
- The commits named above, by short hash: 55b5667, 220e6f8, 3fc66b7, f680452, a73a5fd, a5b9748, b99c1ec, 74d421c, 037003a, e78f796, 9ea462e, d0d8df4, 80663a5, 00454ca, bc0d594, 4cff890, c61cc9a, 469fbc5, b2b674f, 8e8714e, 929d804 and f14e043.
- patchright_driver_patch.js at f680452 and e78f796, driver_patches/crNetworkManagerPatch.ts and chromiumSwitchesPatch.ts at the newest commit, patch_python_package.py at three points, client_patches/browserContextPatch.ts, and the READMEs of 2023, 2024 and today. Patchright source code.
- patchright-core 1.49.1 and 1.64.3 (lib/server/fetch.js, lib/coreBundle.js, package.json). npm registry, read without running them on November 11, 2026.
- The Windows wheels of patchright 1.57.0 and 1.58.1 (the bundled driver and the package metadata). PyPI's file host, read without running them on November 11, 2026.
- Patchright issues 93, 128, 158, 166, 190 and 259 and pull request 260; patchright-python issues 47, 94, 95, 100, 103, 104 and 112 and pull requests 96 and 115. GitHub API, read on November 11, 2026.
- The release histories of patchright and undetected-playwright-patch. PyPI, read on November 11, 2026. The npm registry and its download counts, and pypistats, read on November 11, 2026.
- Scrapling's pyproject.toml at four commits from September 2025 to March 2026. D4Vinci/Scrapling, GitHub.
- Two Google result pages, Keyword Planner volumes, five pages from the results and 14 posts that name Patchright from our competitor database, read on November 11, 2026.





