Playwright gets caught by anti-bots and captchas. This one runs on an anti-detect Firefox with an undetected fingerprint, compatible with your existing Playwright code.
Anti-bots ask two questions, and reCAPTCHA, hCaptcha and Cloudflare Turnstile score the answers. invisible_playwright answers yes to both.
1. Is this a real browser? Yes. It is Firefox, patched at the C++ source level.
The browser fingerprint is set inside the engine, not injected into the page: navigator, screen, GPU/WebGL, canvas, fonts, audio, WebRTC, timezone, network. Headless or headed, the same values either way.
No JS shim, no override, no seam to read.
2. Is a real person using it? Yes. The actions are humanized in the driver.
Every click, hover and drag follows a natural mouse path with human timing, no teleporting cursor.
Each input is byte-identical to a real mouse: real input source, pressure, trusted events.
Windows, in PowerShell:
Supported platforms: Windows x86_64 , Linux x86_64 . Linux arm64 is no longer supported from firefox-56 (firefox-55 is the last engine built for it).
Then save one of the examples below as main.py in my-project and run it with uv run main.py .
Random fingerprint per session
Playwright's API, sync and async, with no code changes. The same objects, the same calls, the same return values. A few surfaces are out of scope - tracing, HAR, CDP, the API request context - and each one refuses with a sentence saying why rather than misbehaving quietly. If you already use Playwright, switching is two lines:
Every session gets a distinct fingerprint (GPU, audio, fonts, screen, ~200 fields) and Bezier-curve mouse motion.
The browser object is a playwright.sync_api.Browser / playwright.async_api.Browser - every Playwright method works as-is.
Log the seed to replay a run:
Reproducible fingerprint
Schemes supported: socks5 , socks4 , http , https . DNS is routed through the proxy by default, no local leak.
Serving one browser to many clients
launch_server() serves one browser on a WebSocket to any Playwright client. Install the extra that carries the WebSocket library with uv add "invisible-playwright[remote]" .
The server listens on 127.0.0.1 with a random secret path; host= , port= and path= choose another address. A client in another language (Node, Java, .NET, Go) connects to the same address with the connect call of its own Playwright. The browser belongs to the server and ends with server.close() (or with the with block).
On Linux, set MALLOC_ARENA_MAX=2 in the environment of the process that runs it (glibc keeps a memory arena per thread otherwise); the server already hands freed memory back with malloc_trim ( INVPW_MALLOC_TRIM=0 turns that off).
The server keeps its protocol objects in a registry and, like Playwright's own server, collects the oldest ones when a type grows past a limit ( __dispose__ with reason gc ). Its limits are Playwright's, except Request , Response and Route , which are 2000 instead of 10000, and nothing younger than 10 seconds is ever collected. A client that keeps more than 2000 requests or responses in hand for longer than that gets "Target closed" on the oldest ones; one that uses them inside its callback is not affected. Set INVPW_GC_LIMITS="Request=10000,Response=10000,Route=10000" to get Playwright's numbers.
The browser timezone follows timezone= :
Pinning specific fingerprint fields
A GPU pin picks one of the validated personas rather than setting a free string, because the ~81 getParameter values and the extension list travel with the renderer name and a detector cross-checks them against it. A name the pool does not carry raises, and the error lists the ones it does.
Full list of pinnable keys, how pinning interacts with the Bayesian sampler, and common patterns are in docs/pinning.md .
The engine counts launches with an anonymous GET to the usage-counter release of the engine's repository ( oss-invisible/firefox_antidetect_patch ) on GitHub. This package's launcher and server refuse the two prefs that govern it, invisible_firefox.usage_ping.enabled and invisible_firefox.usage_ping.url , in extra_prefs .
The installed command is invisible-playwright , with a hyphen. python -m invisible_playwright works identically and needs nothing on PATH.
Documentation, guides and comparisons
If you would rather prompt than script. This page is the engine, as a Python library. Two ways to use it without writing code, both one line: from an MCP client you already have (Claude Code, Claude Desktop, Cursor), claude mcp add stealth -- uvx invisible-playwright-mcp , see the MCP server page ; or with an interface and a model included, needing only an OpenRouter key, uvx invisible-playwright-mcp ui --openrouter-key sk-or-... , see invisible_playwright_mcp . Same engine underneath, and the second is a client of the first.
All of it reads better, and is searchable, in the wiki , organised into four sections instead of one flat list:
Documentation - installation, the two-line switch from plain Playwright, proxy/timezone configuration, pinning specific fields, the CLI.
Guides - how detection actually works, in seven groups: browser identity, canvas/WebGL/fonts/ audio, network and WebRTC, the automation layer, AI agents, the detectors themselves explained from source, and testing.
Comparisons - against Patchright, nodriver and playwright-stealth, and the case for Firefox over Chromium generally.
Integrations - Scrapy, Crawlee, Robot Framework, CodeceptJS, test runners, Playwright MCP, and the frameworks it does not fit, by name.
If you don't know where to start: Three ways to make Playwright undetected is the map most other pages link back to, Playwright detected as a bot on one site is the troubleshooting order, and navigator.webdriver is not the tell you think it is explains the most famous property in this space and why patching it alone buys you almost nothing.
The detectors section now covers the commercial anti-bot products by name, each read from its own documentation or from confirmed reverse engineering: Cloudflare Bot Management and Turnstile , DataDome , Kasada , Akamai Bot Manager , PerimeterX , hCaptcha , Imperva , and the rest of the set .
The other pieces of this one. The engine is the middle of three, and the two around it are how most people reach it:
invisible_core - seed to fingerprint to preferences, plus proxy and geolocation. This package pins it.
invisible_playwright_mcp - this engine as an MCP server ( uvx invisible-playwright-mcp , for any client that brings its own model) and, in the same package, an interface with a model included, from one command. The interface is a client of the server, with no private path to the browser.
The open-source neighbours. Which one fits depends on the layer your problem is at, and on whether you need Firefox or Chromium: three ways to make Playwright undetected works through what each layer can reach, and AI browser agents and stealth covers the frameworks that pick Chromium over CDP for you.
Other patched Firefox builds - some patch C++ too, with a wider surface and a fingerprint database instead of one derived from a seed. How the stealth levels differ .
LibreWolf - a privacy-defaults Firefox to browse with, not to automate.
arkenfox/user.js - hardening through preferences. Where a preference is enough, use it.
Patchright - a patched Playwright fork: the work lands in the driver, not the binary. Comparison .
nodriver - successor to undetected-chromedriver , driving Chrome over CDP. Comparison .
rebrowser-patches - fixes the Runtime.enable CDP leak. Comparison .
fingerprint-suite - a Bayesian fingerprint generator, then injected into the page. Comparison .
playwright-with-fingerprints - values from a paid remote service, Windows-only. Comparison .
playwright-stealth - an init-script patch; its maintainer calls it a proof-of-concept. Comparison .
puppeteer-extra-plugin-stealth - the original of that lineage, last substantive commit mid-2024. What that means .
selenium-stealth - the same approach on Selenium, last commit December 2021. What that means .
pyppeteer - unmaintained by its own README, which points to playwright-python . What that recommendation is .
What is patched in the engine
Two rules hold across everything below. Every value is decided before a page can ask , inside the browser, so there is no JavaScript shim to find. And every value comes from one profile , so no two surfaces contradict each other, which is how a spoofed browser is usually caught. Source: oss-invisible/firefox_antidetect_patch .
navigator , the user agent and the client hints are derived together, so they cannot disagree: does Playwright set navigator.webdriver , client hints and Sec-Fetch .
navigator.languages and the Accept-Language header are the same declaration, sent and read: Accept-Language and navigator.languages .
Screen geometry, devicePixelRatio and the media queries exposing it are declared, not read from the host: devicePixelRatio and the Firefox pref , CSS media query fingerprinting .
Canvas readback is deterministic per seed and keeps the real shape, rather than blocked or noised: canvas fingerprint noise , why a canvas fingerprint changes every run .
WebGL reports a coherent GPU persona: vendor, renderer and the parameter limits are cross-checked, not set one at a time: WebGL renderer strings , WebGL parameters are identical .
Fonts ship with the browser, so the same faces exist on every host and the platform font engine no longer chooses: bundled fonts across platforms , why headless browsers render different fonts , detecting installed fonts from JavaScript .
Text metrics follow those fonts: measureText returns ten-plus numbers from one call, with no permission prompt: measureText and TextMetrics .
Canvas and WebGL agree across operating systems for the same seed: cross-platform consistency , canvas differs across operating systems .
The audio stack answers from the profile rather than from the host device: AudioContext fingerprinting , sample rate and latency .
The codec table is declared, so a Linux host does not answer a Windows question with Linux support: codec fingerprinting .
Behind a proxy, WebRTC's UDP goes through the proxy when the proxy can carry it, so the server-reflexive candidate is the proxy's exit, and otherwise no datagram leaves the machine at all; candidates are real, never patched in the page: WebRTC ICE candidate spoofing , does the WebRTC IP match the proxy exit .
DNS resolves through the proxy, including when the proxy is not in the preferences: does a proxy leak DNS , how to check for a proxy IP leak .
The timezone comes from the egress IP, resolved offline, so it matches the exit: timezone and proxy mismatch , offline GeoIP timezone .
Input events come from the real input path, so isTrusted is true because it is true: Playwright clicks and isTrusted .
The pointer follows a human path and timing, at a cadence a real device could produce: human mouse movement , mouse dynamics as behavioural biometrics .
The debugger surface does not answer the timing questions that give a driven browser away: debugger timing detection .
Closed-mode shadow roots are reachable, which stock Playwright cannot do in either engine, while the page still reads null : closed shadow roots .
MIT - see LICENSE . The patched Firefox binary is distributed under the MPL-2.0 (Firefox upstream license). The C++ patches against mozilla-central that produce that binary are at oss-invisible/firefox_antidetect_patch .
This project is for educational purposes only. It is provided as-is, with no warranties. I take no responsibility for how it is used. Use it at your own risk and in compliance with the laws of your jurisdiction.
Built by Federico Elia
Release files for invisible-playwright 0.60.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .
Source distribution (sdist)
Built distribution (wheel)
Total release size: 3.3 MB
Release files / invisible_playwright-0.60.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Release files / invisible_playwright-0.60.0-py3-none-any.whl
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Security for invisible-playwright 0.60.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Both files in this release have been uploaded with provenance metadata.
Attestation for invisible_playwright-0.60.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Attestation for invisible_playwright-0.60.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
Release history Release notifications | RSS feed
Nov 27, 2026 2 release files Full provenance
Nov 24, 2026 2 release files Full provenance
Nov 21, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 18, 2026 2 release files Full provenance
Nov 16, 2026 2 release files Full provenance
Nov 15, 2026 2 release files Full provenance
Nov 14, 2026 2 release files Full provenance
Nov 13, 2026 2 release files Change of provenance
Nov 12, 2026 2 release files Full provenance
Nov 12, 2026 2 release files Full provenance
Nov 10, 2026 2 release files Full provenance
Nov 10, 2026 2 release files Full provenance
Nov 10, 2026 2 release files Full provenance
Nov 10, 2026 2 release files Full provenance
Nov 8, 2026 2 release files Full provenance
Nov 8, 2026 2 release files Full provenance
Nov 8, 2026 2 release files Full provenance
Nov 8, 2026 2 release files Full provenance
Nov 7, 2026 2 release files Full provenance
Nov 7, 2026 2 release files Full provenance
Nov 7, 2026 2 release files Full provenance
Nov 4, 2026 2 release files Full provenance
Oct 31, 2026 2 release files Full provenance
Oct 31, 2026 2 release files Full provenance
Oct 24, 2026 2 release files Full provenance
Oct 24, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 19, 2026 2 release files Full provenance
Oct 18, 2026 2 release files Full provenance
Oct 18, 2026 2 release files Full provenance
Oct 17, 2026 2 release files Full provenance
Oct 17, 2026 2 release files Full provenance
Oct 16, 2026 2 release files Full provenance
Oct 16, 2026 2 release files Full provenance
Oct 15, 2026 2 release files Full provenance
Oct 15, 2026 2 release files Full provenance
Oct 14, 2026 2 release files Loss of provenance
Oct 13, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 12, 2026 2 release files Full provenance
Oct 12, 2026 2 release files Full provenance
Oct 12, 2026 2 release files Full provenance
Oct 11, 2026 2 release files Full provenance
Oct 11, 2026 2 release files Full provenance
Oct 11, 2026 2 release files Full provenance
Oct 10, 2026 2 release files Full provenance
Oct 10, 2026 2 release files Full provenance
Oct 9, 2026 2 release files Full provenance
Oct 9, 2026 2 release files Full provenance
Oct 9, 2026 2 release files Full provenance
Oct 6, 2026 2 release files Full provenance
Oct 5, 2026 2 release files Full provenance
Oct 5, 2026 2 release files Full provenance
Oct 4, 2026 2 release files Full provenance
Oct 4, 2026 2 release files Full provenance
Oct 4, 2026 2 release files Full provenance
Oct 4, 2026 2 release files Full provenance
Oct 3, 2026 2 release files Full provenance
Oct 2, 2026 2 release files Full provenance
Sep 25, 2026 2 release files Full provenance
Sep 25, 2026 2 release files Full provenance
Sep 23, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Sep 20, 2026 2 release files Full provenance
Sep 18, 2026 2 release files Full provenance
Sep 18, 2026 2 release files Full provenance
Sep 17, 2026 2 release files Full provenance
Sep 17, 2026 2 release files Full provenance
Sep 16, 2026 2 release files Full provenance
Sep 16, 2026 2 release files Full provenance
Sep 16, 2026 2 release files Full provenance
Sep 16, 2026 2 release files Full provenance
Sep 15, 2026 2 release files Full provenance
Sep 15, 2026 2 release files Full provenance
Sep 15, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 8, 2026 2 release files Full provenance
Sep 7, 2026 2 release files Full provenance
Sep 6, 2026 2 release files Full provenance
Sep 5, 2026 2 release files Full provenance
Sep 5, 2026 2 release files Full provenance
Sep 5, 2026 2 release files Full provenance
Sep 5, 2026 2 release files Full provenance
Sep 4, 2026 2 release files Full provenance
Sep 4, 2026 2 release files Full provenance
Sep 3, 2026 2 release files Full provenance
Sep 2, 2026 2 release files Full provenance
Aug 31, 2026 2 release files Full provenance
Aug 31, 2026 2 release files Full provenance
Aug 30, 2026 2 release files Full provenance
Aug 30, 2026 2 release files Full provenance
Aug 27, 2026 2 release files Full provenance
Aug 26, 2026 2 release files Full provenance
Aug 18, 2026 2 release files Full provenance
Aug 17, 2026 2 release files Full provenance
Aug 11, 2026 2 release files Full provenance
Aug 5, 2026 2 release files Full provenance
Aug 1, 2026 2 release files No provenance
Aug 1, 2026 2 release files No provenance
Aug 1, 2026 2 release files No provenance
Jul 28, 2026 2 release files No provenance
Jul 28, 2026 2 release files No provenance
Jul 27, 2026 2 release files No provenance
Jul 27, 2026 2 release files No provenance
Jul 27, 2026 2 release files No provenance
Jul 27, 2026 2 release files No provenance
Jul 26, 2026 2 release files No provenance
Jul 26, 2026 2 release files No provenance
Jul 26, 2026 2 release files No provenance
Jul 25, 2026 2 release files No provenance
Jul 25, 2026 2 release files No provenance
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
