Chrome
Chrome (and Chromium) is the default browser engine. agent-browser discovers, launches, and manages the Chrome process automatically via the Chrome DevTools Protocol (CDP).
Binary Discovery
When no --executable-path is provided, agent-browser searches for Chrome in this order:
| Platform | Locations checked |
|---|---|
| macOS |
|
| Linux |
|
| Windows |
|
If Chrome is not found, run agent-browser install to download Chromium via Playwright.
Usage
Chrome is the default engine -- no --engine flag is needed:
agent-browser open example.comTo be explicit:
agent-browser --engine chrome open example.comCustom Binary
Point to any Chromium-based browser with --executable-path:
agent-browser --executable-path /path/to/chromium open example.comOr via environment variable:
export AGENT_BROWSER_EXECUTABLE_PATH=/path/to/chromium
agent-browser open example.comChrome-Specific Features
These features are available only with Chrome:
| Feature | Flag |
|---|---|
| Browser extensions | --extension <path> |
| Persistent profiles | --profile <path> |
| Storage state | --state <path> |
| File URL access | --allow-file-access |
| Headed mode | --headed |
| Custom launch args | --args <args> |
Containers and CI
In Docker, CI runners, or other sandboxed environments, Chrome's user namespace sandbox may need to be disabled:
agent-browser --args "--no-sandbox" open example.comagent-browser automatically adds --no-sandbox when it detects a container environment (Docker, Podman, running as root).