Your coding agent can use the browser you're already signed into.
Several agents at once, each in its own tabs. Chrome, Arc, Brave, Edge, Comet, Firefox or the browser built into VS Code, on this machine or another one over SSH.
Install · Features · Benchmark · How it compares · FAQ · Docs
Agents usually get a fresh browser that is signed in to nothing, so they stop at login pages and CAPTCHAs. browser is one command Claude Code, Codex or Cursor runs from its shell to read, click and type in your own browser instead.
- Your logins. The agent works in a profile you already use, or one you sign into once.
- Several agents, no collisions. Every
browser startopens a task that owns its tabs, so agents sharing one browser don't read, type into or close each other's pages. - Passwords stay on their site.
browser type --secret stripe.com/PASSWORDtypes a saved password the agent never sees, and a bundle named after a site types only on that site: on any other page it is refused and nothing is typed (how ).
Measured, with every run published: on eight web tasks in Claude Code (2026-11-24, each tool's latest release), browser-cli 0.2.16 was the fastest (13.8 s per task) and cheapest ($0.047) of four tools, against 15.8 s and $0.051 for Browser Use, 23.8 s and $0.083 for agent-browser, and 25.0 s and $0.059 for browser-harness. Benchmark
<sub>A real run on 2026-10-19, shown at 2×: three Claude Code agents, one browser, each in the tab its task owns.</sub>
npm install -g @phnx-labs/browser-cli
npx skills add phnx-labs/browser-cli # teaches your agents to use it
browser profiles create work --browser chrome # once: chrome, brave, edge, chromium, comet or arc
browser use work
Firefox connects through a WebDriver BiDi endpoint (profiles). npm needs Node 22.5 or newer; browser itself is a compiled binary for macOS, Linux and Windows. In Claude Code the skill also installs as a plugin: /plugin marketplace add phnx-labs/browser-cli, then /plugin install browser@browser-cli.
Or let your agent set it up. Paste this into Claude Code, Codex, Cursor or any agent with a shell:
Set up browser-cli so you can use my web browser: https://github.com/phnx-labs/browser-cli
1. Install the CLI: npm install -g @phnx-labs/browser-cli (needs Node 22.5 or newer), then check it with: browser --version
2. Install its skill once, the way that fits you:
- Claude Code: claude plugin marketplace add phnx-labs/browser-cli, then claude plugin install browser@browser-cli
- Codex, Cursor, OpenCode or another agent: npx skills add phnx-labs/browser-cli -g -y -a <your agent's name, such as codex or cursor>
Then read the skill now, before you use the browser: browser skills get
3. Set up the browser profile I asked for (this one setup step is the exception to the skill's rule against creating profiles): browser profiles create work --browser chrome, or brave or edge if I use one of those, then: browser use work. That profile starts signed out, so tell me I can sign in once, in the window it opens, to the sites I want you to use. If I use Arc, create it with --browser arc; for Comet add --attach-only. Both attach to the browser I already have open and signed in.
4. Try it: browser start --url https://news.ycombinator.com --snapshot, then browser done. Tell me the title of the top story.
Run browser <command> --help before guessing at a flag.
bash
$ browser start --url https://example.com --snapshot
readme-qs
Example Domain — https://example.com/
- link "Learn more" [ref=1]
$ browser click 1 --snapshot
Clicked
Example Domains — https://www.iana.org/help/example-domains
- link [ref=1]
- link "Domains" [ref=2]
- link "Protocols" [ref=3]
...
$ browser done
Completed task: readme-qs
Captured in Arc. In Chromium-family browsers click --text "Learn more" also clicks by name, and every action returns once the page has settled; everywhere, --snapshot prints the page it left, so an agent chains known steps in one shell call. Refs, type, select, dialogs, iframes and the rest are in Driving a page; every flag is in the command reference.
| Install the CLI and its skill, create a profile for the browser you already use, and the first page with its clickable elements is one command away. Docs → | |
| Each profile has its own logins. Sign in once in the profile an agent uses, and your other profiles never share that session. Docs → | |
| Search, open the source and pull out the numbers that matter. text --grep andtext --css keep a long paper to a few lines. Docs → | |
| Emulate an iPhone, iPad or any viewport, reload and screenshot, to check the layout your users see. Docs → | |
| Pick a folder, click the link and wait until the file is on disk, then open it. The agent gets the real path back. Docs → | |
| Recordings, PDFs and screenshots are saved per task, and browser sessions lists them, so you can check the work. Docs → | |
| Type into fields by their label, pick options and click by name. In Chromium-family browsers each action waits for the page to settle, so steps chain. Docs → | |
| Sign in once and your agent works in that session: HR, CRM and admin tools, including ones with no API or MCP server. Docs → | |
| Every browser start opens a task that owns its tabs, so several agents share one signed-in browser without touching each other's pages. Docs → | |
| In canvas apps the agent works the way a person does: shortcuts, clicks at a position, and the properties panel by label. Docs → | |
Each clip is a real run, sped up. Its page shows the task, the commands and what came back.
Also in the box: console and errors read a tab's logs, requests --format har and responsebody read its network traffic, evaluate runs JavaScript in the page, upload fills file inputs and drop targets, and stream keeps one process open for many commands. Every command is in the reference.
Four browser tools on eight web tasks, Claude Sonnet 5.5 in Claude Code, 2 runs per task, each tool's latest release on 2026-11-24:
-
Fastest and cheapest: browser-cli 0.2.16 took 13.8 s and $0.047 per task, against 15.8 s and $0.051 for Browser Use 1.0.8, 23.8 s and $0.083 for agent-browser 0.44.0, and 25.0 s and $0.059 for browser-harness 0.1.14.
-
Fewest tokens and turns: browser-cli used 82k tokens and 5.5 turns per task, against 84k and 5.6 for Browser Use.
-
Every tool answered all 16 runs correctly.
-
No agent saw another's tabs with browser-cli or browser-harness when three agents worked in one browser at once; browser-harness keeps each agent to its own tabs from 0.1.14. With Browser Use and agent-browser, agents saw each other's tabs in 5 and 6 of 6 runs.
Method, per-task results and the run records: Benchmarks. Rerun it with bench/.
| Tool | Several agents in one browser | Another machine | Your signed-in browser |
|---|---|---|---|
| browser-cli | Each task owns its tabs | Over SSH | Yes, any profile |
| browser-harness | Each agent's own tabs (BH_OWNER), from 0.1.14 |
Any CDP URL | Yes, after Chrome's Allow dialog |
| agent-browser | A browser per session, or opt-in --pin-tab |
Any CDP URL | Copies or attaches to your profile |
Browserbase browse |
A browser per session | Any CDP URL | --auto-connect to local Chrome |
| Playwright CLI | A browser per session | CDP URL or Playwright server | After Chrome's toggle, or the extension |
| Playwright MCP | A tab group per client (extension) | CDP URL or Playwright server | Through the extension |
| Chrome DevTools MCP | Any session can close any page | Any CDP URL | After an Allow dialog, Chrome 144+ |
| Claude in Chrome | A tab group per session | Not documented | Yes, through the extension |
| Playwriter | Tabs shared across sessions | playwriter serve over a LAN or tunnel |
Yes, through the extension |
Read from each tool's own docs and code on 2026-11-07; browser-harness re-read at 0.1.14 on 2026-11-24. The source for every cell is in docs/comparison.md.
- An agent with
browseracts as you. It can read and click anything your signed-in profile can. Give it a dedicated profile, signed in only to the sites it needs, when it should not see your personal accounts. - No telemetry.
browsertalks only to the browsers and machines you point it at. The exceptions: the first recording on a machine without ffmpeg installs it, and once a day in a terminal it runsbrowser doctor --jsonin the background. That asks registry.npmjs.org for the latest version, runs your login shell ($SHELL -l -i, so your rc files) to see whatbrowserresolves to, runs--versionon eachbrowseron PATH, and, withbrowser.deviceset, runsbrowser --versionon that hub over ssh or the relay. A global npm install runs the shell and PATH checks once.BROWSER_NO_UPDATE_NOTIFIER=1,CI,CODESPACES,BUILD_NUMBERorRUN_IDturns all of it off. - Remote control is off by default. Another machine can drive this browser only after
browser remote-control on.
Details: SECURITY.md.
- Why a CLI instead of an MCP server, or plain Playwright?
- How many tokens does browsing cost?
- Can a web page trick my agent?
- Will sites block it, or show CAPTCHAs?
- Does it handle iframes, date pickers, dialogs and canvas apps?
- Does it work headless, in CI or in Docker?
- Is it free? Yes: Apache-2.0, no account, and it runs on your machine.
Every question: Discussions → Q&A. Ideas and what you built are welcome there too.
| For | Read |
|---|---|
| Start | Getting started ·Command reference |
| Use cases | All ten, with recorded runs |
| Guide | Driving a page ·Profiles ·Remote browsers ·Agent skill ·Troubleshooting ·History and logs |
| Benchmarks | Results ·How it compares ·Rerun with bench/ |
| Contributing | Development ·Contributing ·Security |
browser-cli is built by Phoenix (why we open-sourced it). Apache-2.0.