Skip to content

Install

Patchright ships as separate packages per language. Install the one that matches your runtime.


Python

bash
pip install patchright
patchright install chromium

The first command installs the Python package. The second downloads the patched Chromium browser binary. Run both commands; skipping the second will cause a "browser not found" error at runtime.

To install Google Chrome instead of Chromium (recommended for maximum stealth):

bash
patchright install chrome

Node.js

bash
npm i patchright
npx patchright install chromium

Or with pnpm:

bash
pnpm add patchright
pnpx patchright install chromium

The install chromium step downloads the patched browser binary and must be run after the package install.


.NET

bash
dotnet add package Patchright

See the patchright-dotnet repository for browser binary installation steps specific to the .NET runtime.


Notes

  • Only Chromium-based browsers are supported. Do not attempt to install Firefox or WebKit.
  • The install chromium step is separate from the package install and is required before first use.
  • For production stealth work, prefer channel="chrome" (Python) or channel: "chrome" (Node.js) to launch the system-installed Google Chrome rather than the downloaded Chromium build.