br is a command line tool used by any capable LLM agent, like ChatGPT, Claude Code or Gemini CLI.
https://www.npmjs.com/package/@browsemake/browser-cli
npm install -g @browsemake/browser-cli
Type instruction to AI agent (Gemini CLI / Claude Code / ChatGPT):
> You have browser automation tool 'br', use it to go to amazon to buy me a basketball
Use command line directly by human:
br start
br goto https://github.com/
Grocery (Go to Amazon and buy me a basketball)
<a href="https://www.loom.com/share/b7aeba65bb0b4c4bb5bbef9b59b4b9dc">
<img style="max-width:300px;" src="https://github.com/user-attachments/assets/3cd46b9a-6ef9-4987-a952-fcd22890334c">
</a>
Navigate to GitHub repo:
<a href="https://www.loom.com/share/0ef198e259864ae08afa9ae9f78acfac">
<img style="max-width:300px;" src="https://cdn.loom.com/sessions/thumbnails/0ef198e259864ae08afa9ae9f78acfac-3e42df07f2040874-full-play.gif">
</a>
Print invoice
Download bank account statement
Search for job posting
br start
If starting the daemon fails (for example due to missing Playwright browsers), the CLI prints the error output so you can diagnose the issue.
br goto https://example.com
br click "button.submit"
Commands that accept a CSS selector (like click, fill, scrollIntoView, type) can also accept a numeric ID. These IDs are displayed in the output of br view-tree and allow for direct interaction with elements identified in the tree.
br scrollIntoView "#footer"
br scrollTo 50
br fill "input[name='q']" "search text"
MY_SECRET="top-secret" br fill-secret "input[name='password']" MY_SECRET
When retrieving page HTML with br view-html, any text provided via
fill-secret is masked to avoid exposing secrets.
br type "input[name='q']" "search text"
br press Enter
br nextChunk
br prevChunk
br view-html
br history
br clear-history
br screenshot
br view-tree
Outputs a hierarchical tree combining accessibility roles with DOM element information. It also builds an ID-to-XPath map for quick element lookup.
br tabs
br switch-tab 1
br stop
The daemon runs a headless Chromium browser and exposes a small HTTP API. The CLI communicates with it to perform actions like navigation and clicking elements.
$ claude mcp add browser-cli \
-- python -m otcore.mcp_server <graph>