Rust CLI that lets AI agents drive a browser
agent-browser is a native Rust CLI that gives an AI agent a browser to drive one command at a time. snapshot returns the page as compact text with a ref such as @e1 for each element.
- The agent acts on a ref, reads the page again to check the result, and repeats.
- A background daemon controls the browser over the Chrome DevTools Protocol, and the browser stays open between commands.
- Chrome for Testing is the default, and it can also attach to a running Chrome with
--cdp.
try
npx agent-browser open example.com