Open tool lets AI agents control real Chrome from the shell

patchright-cli is a small open-source tool that lets AI agents open and control real Google Chrome from the . Common Playwright or CDP browser setups can be detected and blocked by some websites. This tool uses Patchright underneath to reduce that problem.

The basic flow is simple, with commands such as `open`, `snapshot`, `click`, and `close`. playwright-cli and patchright-cli are patched to work as interchangeable tools, so an agent does not need to decide which one to use. Because it runs a visible, real Chrome browser, it can reach many sites that block generic tools, though it is not perfect.

It also includes simple hints that tell agents to close heavy tabs, because agents may otherwise leave many tabs open and waste system resources.

Key points

  • AI agents can control real Google Chrome from the .
  • The tool aims to reduce blocks that affect Playwright or CDP-based .
  • Basic commands include `open`, `snapshot`, `click`, and `close`.
  • playwright-cli and patchright-cli are made interchangeable to simplify agent setup.
  • Built-in hints encourage agents to close resource-heavy tabs.
Read original