browser-use) gives coding agents a direct browser-control surface backed by Browser Harness:
- Direct browser control — agents run Python to do actions in the browser.
- Three browser modes — you can use with local Chrome or Chromium with your existing tabs, cookies, extensions, and logins; Browser Use cloud browsers; or any browser reachable through a CDP endpoint.
- Agent-ready setup — install the skill into Claude Code, Codex, and other coding agents so they know when and how to call the CLI.
Install the CLI
uvx browser-use.
Set Up Your Agent
Paste this setup prompt into Claude Code, Codex, or another coding agent:Use Python Directly
Pass Python to the CLI. Useuvx browser-use for one-off runs, or browser-use if you installed it:
<<'PY' form is for Unix-compatible shells such as bash, zsh, Git Bash, or WSL. In PowerShell, pipe a here-string instead:
Local Browser Setup
The default local flow attaches to your running Chrome or Chromium through CDP. This preserves the browser state the user already has locally: open tabs, cookies, extensions, and logged-in sessions. It is the right default for desktop work where the user can approve Chrome’s remote-debugging prompt. You can also point the CLI at any existing CDP browser by settingBU_CDP_URL or BU_CDP_WS before running browser-use. Use that for managed Chrome instances, Playwright-launched browsers, or infrastructure that already exposes a DevTools endpoint.
If the CLI cannot connect, run: