docs/src/app/engines/chrome/page.mdx
Chrome (and Chromium) is the default browser engine. agent-browser discovers, launches, and manages the Chrome process automatically via the Chrome DevTools Protocol (CDP).
When no --executable-path is provided, agent-browser searches for Chrome in this order:
If Chrome is not found, run agent-browser install to download Chrome from Chrome for Testing.
Chrome is the default engine -- no --engine flag is needed:
agent-browser open example.com
To be explicit:
agent-browser --engine chrome open example.com
Point to any Chromium-based browser with --executable-path:
agent-browser --executable-path /path/to/chromium open example.com
Or via environment variable:
export AGENT_BROWSER_EXECUTABLE_PATH=/path/to/chromium
agent-browser open example.com
These features are available only with Chrome:
<table> <thead> <tr><th>Feature</th><th>Flag</th></tr> </thead> <tbody> <tr><td>Browser extensions</td><td><code>--extension <path></code></td></tr> <tr><td>Persistent profiles</td><td><code>--profile <path></code> (sets Chrome's <code>--user-data-dir</code>)</td></tr> <tr><td>Storage state</td><td><code>--state <path></code></td></tr> <tr><td>File URL access</td><td><code>--allow-file-access</code></td></tr> <tr><td>Headed mode</td><td><code>--headed</code></td></tr> <tr><td>Custom launch args</td><td><code>--args <args></code></td></tr> </tbody> </table>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.com
agent-browser automatically adds --no-sandbox when it detects a container environment (Docker, Podman, running as root).