# Show HN: Browser-CLI – coding agents in your own signed-in browser

> Source: <https://github.com/phnx-labs/browser-cli>
> Published: 2026-11-27 15:48:23+00:00

**Key takeaway:** browser-cli 0.2.16 ran eight web tasks in Claude Code at 13.8 s and $0.047 each, faster and cheaper than Browser Use (15.8 s, $0.051), agent-browser (23.8 s, $0.083) and browser-harness (25.0 s, $0.059).

**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](#install) · [Features](#features) · [Benchmark](#benchmark) · [How it compares](#how-it-compares) · [FAQ](#faq) · [Docs](#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 start` opens 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/PASSWORD` types 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](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/fill-forms-and-check-out.md) ).

**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](#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](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/profiles.md)). 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](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/driving-a-page.md); every flag is in the [command reference](https://github.com/phnx-labs/browser-cli/blob/main/docs/command-index.md).

| 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 →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/set-up-in-a-minute.md) |  | 
| Each profile has its own logins. Sign in once in the profile an agent uses, and your other profiles never share that session. [Docs →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/work-and-personal-profiles.md) |  | 
| Search, open the source and pull out the numbers that matter. `text --grep` and`text --css` keep a long paper to a few lines. [Docs →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/research.md) |  | 
| Emulate an iPhone, iPad or any viewport, reload and screenshot, to check the layout your users see. [Docs →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/check-on-a-phone.md) |  | 
| 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 →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/download-files.md) |  | 
| Recordings, PDFs and screenshots are saved per task, and `browser sessions` lists them, so you can check the work. [Docs →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/keep-proof.md) |  | 
| 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 →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/fill-forms-and-check-out.md) |  | 
| Sign in once and your agent works in that session: HR, CRM and admin tools, including ones with no API or MCP server. [Docs →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/signed-in-sites.md) |  | 
| 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 →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/several-agents.md) |  | 
| In canvas apps the agent works the way a person does: shortcuts, clicks at a position, and the properties panel by label. [Docs →](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/design-in-figma.md) |  | 

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](https://github.com/phnx-labs/browser-cli/blob/main/docs/command-index.md).

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](https://github.com/phnx-labs/browser-cli/blob/main/docs/benchmarks/README.md). Rerun it with [`bench/`](https://github.com/phnx-labs/browser-cli/blob/main/bench/README.md).

| Tool | Several agents in one browser | Another machine | Your signed-in browser | 
|---|---|---|---|
| **browser-cli** | [Each task owns its tabs](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/several-agents.md) | [Over SSH](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/remote.md) | [Yes, any profile](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/profiles.md) | 
| [browser-harness](https://github.com/browser-use/browser-harness) | [Each agent's own tabs (`BH_OWNER`), from 0.1.14](https://github.com/browser-use/browser-harness/blob/78dca5346138ab2bebd372308eeaeba6788f14cc/SKILL.md?plain=1#L28-L30) | Any CDP URL | Yes, after Chrome's Allow dialog | 
| [agent-browser](https://agent-browser.dev) | [A browser per session, or opt-in `--pin-tab`](https://agent-browser.dev/sessions) | [Any CDP URL](https://agent-browser.dev/cdp-mode) | [Copies or attaches to your profile](https://agent-browser.dev/sessions) | 
| [Browserbase `browse`](https://github.com/browserbase/stagehand/tree/main/packages/cli) | A browser per session | Any CDP URL | `--auto-connect` to local Chrome | 
| [Playwright CLI](https://github.com/microsoft/playwright-cli) | A browser per session | CDP URL or Playwright server | After Chrome's toggle, or the extension | 
| [Playwright MCP](https://github.com/microsoft/playwright-mcp) | A tab group per client (extension) | CDP URL or Playwright server | Through the extension | 
| [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp) | Any session can close any page | Any CDP URL | After an Allow dialog, Chrome 144+ | 
| [Claude in Chrome](https://code.claude.com/docs/en/chrome) | [A tab group per session](https://code.claude.com/docs/en/chrome) | Not documented | [Yes, through the extension](https://code.claude.com/docs/en/chrome) | 
| [Playwriter](https://playwriter.dev) | [Tabs shared across sessions](https://playwriter.dev/docs/sessions) | [`playwriter serve` over a LAN or tunnel](https://playwriter.dev/docs/remote-access) | [Yes, through the extension](https://playwriter.dev) | 

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](https://github.com/phnx-labs/browser-cli/blob/main/docs/comparison.md).

- **An agent with `browser` acts 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.**`browser` talks 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 runs`browser doctor --json` in the background. That asks registry.npmjs.org for the latest version, runs your login shell (`$SHELL -l -i` , so your rc files) to see what`browser` resolves to, runs`--version` on each`browser` on PATH, and, with`browser.device` set, runs`browser --version` on 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_NUMBER` or`RUN_ID` turns 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](https://github.com/phnx-labs/browser-cli/blob/main/SECURITY.md).

- [Why a CLI instead of an MCP server, or plain Playwright?](https://github.com/phnx-labs/browser-cli/discussions/56)
- [How many tokens does browsing cost?](https://github.com/phnx-labs/browser-cli/discussions/57)
- [Can a web page trick my agent?](https://github.com/phnx-labs/browser-cli/discussions/55)
- [Will sites block it, or show CAPTCHAs?](https://github.com/phnx-labs/browser-cli/discussions/40)
- [Does it handle iframes, date pickers, dialogs and canvas apps?](https://github.com/phnx-labs/browser-cli/discussions/61)
- [Does it work headless, in CI or in Docker?](https://github.com/phnx-labs/browser-cli/discussions/43)
- [Is it free?](https://github.com/phnx-labs/browser-cli/discussions/33) Yes: Apache-2.0, no account, and it runs on your machine.

Every question: [Discussions → Q&A](https://github.com/phnx-labs/browser-cli/discussions/categories/q-a). Ideas and what you built are welcome there too.

| For | Read | 
|---|---|
| **Start** | [Getting started](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/getting-started.md) ·[Command reference](https://github.com/phnx-labs/browser-cli/blob/main/docs/command-index.md) | 
| **Use cases** | [All ten, with recorded runs](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/README.md) | 
| **Guide** | [Driving a page](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/driving-a-page.md) ·[Profiles](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/profiles.md) ·[Remote browsers](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/remote.md) ·[Agent skill](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/agent-skill.md) ·[Troubleshooting](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/troubleshooting.md) ·[History and logs](https://github.com/phnx-labs/browser-cli/blob/main/docs/guide/history-and-logs.md) | 
| **Benchmarks** | [Results](https://github.com/phnx-labs/browser-cli/blob/main/docs/benchmarks/README.md) ·[How it compares](https://github.com/phnx-labs/browser-cli/blob/main/docs/comparison.md) ·[Rerun with `bench/`](https://github.com/phnx-labs/browser-cli/blob/main/bench/README.md) | 
| **Contributing** | [Development](https://github.com/phnx-labs/browser-cli/blob/main/docs/development.md) ·[Contributing](https://github.com/phnx-labs/browser-cli/blob/main/CONTRIBUTING.md) ·[Security](https://github.com/phnx-labs/browser-cli/blob/main/SECURITY.md) | 

browser-cli is built by [Phoenix](https://phoenix.so/?ref=github) ([why we open-sourced it](https://phoenix.so/blog/browser-cli?ref=github)). Apache-2.0.
