Appearance
Install
Patchright ships as separate packages per language. Install the one that matches your runtime.
Python
bash
pip install patchright
patchright install chromiumThe 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 chromeNode.js
bash
npm i patchright
npx patchright install chromiumOr with pnpm:
bash
pnpm add patchright
pnpx patchright install chromiumThe install chromium step downloads the patched browser binary and must be run after the package install.
.NET
bash
dotnet add package PatchrightSee 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 chromiumstep is separate from the package install and is required before first use. - For production stealth work, prefer
channel="chrome"(Python) orchannel: "chrome"(Node.js) to launch the system-installed Google Chrome rather than the downloaded Chromium build.