Skip to content
← Tools / Skills
ToolPatchright/10 trustVerified
Patchright logo

Patchright

Drop-in Playwright fork patched to evade bot detection for agent browser automation.

Visit official site →

About

Patchright is a fork of Playwright with one job: keep automated browsers from being detected as bots. It fixes the CDP leaks that anti-bot systems look for, most notably the Runtime.enable command that Cloudflare, DataDome, Kasada, Akamai, and Fingerprint.com fingerprint to flag automation.

It applies 22 patches to Playwright's source using AST manipulation: removing Runtime.enable and Console.enable from the CDP surface, stripping --enable-automation from Chrome launch flags, hiding navigator.webdriver, and enabling interaction with closed Shadow DOM elements. It is a drop-in replacement with the same API, available in Python, Node.js, and .NET, with about 2.8K stars as of March 2026. Chromium only; Firefox and WebKit are unsupported, and console.* inside the browser is disabled as an anti-detection tradeoff. Dual-use caution: it is widely adopted by AI agents and scrapers, and also by actors testing anti-bot defenses.

What it can do

  • Drop-in Playwright API compatibility
  • CDP-level stealth patches against Cloudflare, Akamai, DataDome, Kasada
  • navigator.webdriver fingerprint hiding
  • Closed Shadow DOM interaction
  • Python, Node.js, and .NET builds
  • patchright-cli agent-oriented command line

Setup

pip install patchright or npm install patchright, then run patchright install chromium and swap the playwright import.

Prerequisites

Python or Node.js; Chrome or Chromium for installation.

Use cases

browser-automationagent-web-accessweb-scrapinganti-detection-testing

Works with

Trust score — 8/10

/10 trustVerified

Scored 8/10 (verified tier, metrics-v1). Evidence: Verified via vendor site/docs/GitHub and reputable coverage, wave 91; Trending score 78/100 from researcher assessment.

Sources

Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.