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 Chrome from Chrome for Testing.
Usage
Chrome is the default engine -- no --engine flag is needed:
To be explicit:
Custom Binary
Point to any Chromium-based browser with --executable-path:
Or via environment variable:
Chrome-Specific Features
These features are available only with Chrome:
| Feature | Flag |
|---|---|
| Browser extensions | --extension <path> |
| Persistent profiles | --profile <path> (sets Chrome's --user-data-dir) |
| Storage state | --state <path> |
| File URL access | --allow-file-access |
| Headless screenshot scrollbars | --hide-scrollbars false keeps native scrollbars visible |
| 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 automatically adds --no-sandbox when it detects a container environment (Docker, Podman, running as root).