Agent Browser
Setup
- Ensure the CLI is installed:
npm install -g agent-browser. - Download Chromium once:
agent-browser install. - On Linux, install system deps if needed:
agent-browser install --with-deps. - Use
--jsonfor machine-readable output when needed.
Default workflow (AI-friendly)
agent-browser open <url>agent-browser snapshot -i --json- Interact by refs:
click @eN,fill @eN "text" - Re-snapshot after navigation or major UI changes.
Useful commands
agent-browser find role button click --name "Submit"agent-browser get text @e1 --jsonagent-browser screenshot [path]agent-browser open <url> --headed(debug)
Sessions and profiles
--session <name>for isolated sessions.--profile <path>for persistent state.
References
references/quick-start.mdfor full quick start and installation details.