patchright-cli
v1.59.1
Published
Patchright CLI — undetected browser automation CLI based on Playwright CLI
Maintainers
Readme
patchright-cli
Undetected browser automation CLI for AI agents. Based on Playwright CLI with Patchright anti-detection patches.
What is this?
patchright-cli is a drop-in replacement for playwright-cli that uses patchright-core instead of playwright-core. This means all browser automation commands work the same way, but the browser is launched with anti-detection patches that prevent bot detection.
Anti-detection features (from Patchright):
- Removes
--enable-automationChrome flag - Disables
AutomationControlledbrowser feature - Prevents
Runtime.enableCDP leak - Disables Console API CDP leak
Installation
npm install -g patchright-cliInstall Claude Code skills (optional, enables AI agent integration):
patchright-cli install --skillsUsage
# Open a browser
patchright-cli open https://example.com
# Take a snapshot of the page
patchright-cli snapshot
# Interact with elements using refs from the snapshot
patchright-cli click e15
patchright-cli fill e5 "[email protected]"
patchright-cli type "search query"
# Close the browser
patchright-cli closeRun patchright-cli --help for the full command list.
License
Apache-2.0
