cd /news/ai-agents/show-hn-browser-cli-coding-agents-in… · home › topics › ai-agents › article
[ARTICLE · art-177365] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

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

Phnx Labs released browser-cli 0.2.16, an open-source command-line tool that lets coding agents such as Claude Code, Codex and Cursor drive a user's own signed-in browser rather than a fresh, logged-out one. In a benchmark of eight web tasks run in Claude Code on 2026-11-24, browser-cli was the fastest and cheapest of four tools at 13.8 seconds and $0.047 per task, 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. Each `browser start` opens a task that owns its tabs so multiple agents sharing one browser do not collide, and `browser type --secret` fills saved passwords the agent never sees.

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).

read9 min views8 publishedNov 27, 2026
Show HN: Browser-CLI – coding agents in your own signed-in browser
Image: Michielbdejong (auto-discovered)

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. Everybrowser 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 ).

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 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 runsbrowser 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 whatbrowser resolves to, runs--version on eachbrowser on PATH, and, withbrowser.device set, runsbrowser --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 orRUN_ID turns all of it off.
  • Remote control is off by default. Another machine can drive this browser only afterbrowser remote-control on .

Details: SECURITY.md.

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.

── more in #ai-agents 4 stories · sorted by recency
── more on @phnx labs 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-browser-cli-…] indexed:0 read:9min 2026-11-27 · —