{"slug": "show-hn-browser-cli-coding-agents-in-your-own-signed-in-browser", "title": "Show HN: Browser-CLI – coding agents in your own signed-in browser", "summary": "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.", "body_md": "**Your coding agent can use the browser you're already signed into.**\n\nSeveral 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.\n\n[Install](#install) · [Features](#features) · [Benchmark](#benchmark) · [How it compares](#how-it-compares) · [FAQ](#faq) · [Docs](#docs)\n\nAgents 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.\n\n- **Your logins.** The agent works in a profile you already use, or one you sign into once.\n- **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.\n- **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) ).\n\n**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)\n\n<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>\n\n```\nnpm install -g @phnx-labs/browser-cli\nnpx skills add phnx-labs/browser-cli              # teaches your agents to use it\nbrowser profiles create work --browser chrome     # once: chrome, brave, edge, chromium, comet or arc\nbrowser use work\n```\n\nFirefox 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`.\n\nOr let your agent set it up. Paste this into Claude Code, Codex, Cursor or any agent with a shell:\n\n```\nSet up browser-cli so you can use my web browser: https://github.com/phnx-labs/browser-cli\n\n1. Install the CLI: npm install -g @phnx-labs/browser-cli (needs Node 22.5 or newer), then check it with: browser --version\n2. Install its skill once, the way that fits you:\n   - Claude Code: claude plugin marketplace add phnx-labs/browser-cli, then claude plugin install browser@browser-cli\n   - 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>\n   Then read the skill now, before you use the browser: browser skills get\n3. 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.\n4. Try it: browser start --url https://news.ycombinator.com --snapshot, then browser done. Tell me the title of the top story.\n\nRun browser <command> --help before guessing at a flag.\nbash\n$ browser start --url https://example.com --snapshot\nreadme-qs\n\nExample Domain — https://example.com/\n- link \"Learn more\" [ref=1]\n\n$ browser click 1 --snapshot\nClicked\n\nExample Domains — https://www.iana.org/help/example-domains\n- link [ref=1]\n- link \"Domains\" [ref=2]\n- link \"Protocols\" [ref=3]\n...\n\n$ browser done\nCompleted task: readme-qs\n```\n\nCaptured 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).\n\n| 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) |  | \n| 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) |  | \n| 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) |  | \n| 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) |  | \n| 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) |  | \n| 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) |  | \n| 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) |  | \n| 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) |  | \n| 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) |  | \n| 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) |  | \n\nEach clip is a real run, sped up. Its page shows the task, the commands and what came back.\n\n**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).\n\nFour 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:\n\n- **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.\n- **Fewest tokens and turns:** browser-cli used 82k tokens and 5.5 turns per task, against 84k and 5.6 for Browser Use.\n- **Every tool answered all 16 runs correctly.**\n\n- **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.\n\nMethod, 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).\n\n| Tool | Several agents in one browser | Another machine | Your signed-in browser | \n|---|---|---|---|\n| **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) | \n| [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 | \n| [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) | \n| [Browserbase `browse`](https://github.com/browserbase/stagehand/tree/main/packages/cli) | A browser per session | Any CDP URL | `--auto-connect` to local Chrome | \n| [Playwright CLI](https://github.com/microsoft/playwright-cli) | A browser per session | CDP URL or Playwright server | After Chrome's toggle, or the extension | \n| [Playwright MCP](https://github.com/microsoft/playwright-mcp) | A tab group per client (extension) | CDP URL or Playwright server | Through the extension | \n| [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+ | \n| [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) | \n| [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) | \n\nRead 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).\n\n- **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.\n- **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.\n- **Remote control is off by default.** Another machine can drive this browser only after`browser remote-control on` .\n\nDetails: [SECURITY.md](https://github.com/phnx-labs/browser-cli/blob/main/SECURITY.md).\n\n- [Why a CLI instead of an MCP server, or plain Playwright?](https://github.com/phnx-labs/browser-cli/discussions/56)\n- [How many tokens does browsing cost?](https://github.com/phnx-labs/browser-cli/discussions/57)\n- [Can a web page trick my agent?](https://github.com/phnx-labs/browser-cli/discussions/55)\n- [Will sites block it, or show CAPTCHAs?](https://github.com/phnx-labs/browser-cli/discussions/40)\n- [Does it handle iframes, date pickers, dialogs and canvas apps?](https://github.com/phnx-labs/browser-cli/discussions/61)\n- [Does it work headless, in CI or in Docker?](https://github.com/phnx-labs/browser-cli/discussions/43)\n- [Is it free?](https://github.com/phnx-labs/browser-cli/discussions/33) Yes: Apache-2.0, no account, and it runs on your machine.\n\nEvery question: [Discussions → Q&A](https://github.com/phnx-labs/browser-cli/discussions/categories/q-a). Ideas and what you built are welcome there too.\n\n| For | Read | \n|---|---|\n| **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) | \n| **Use cases** | [All ten, with recorded runs](https://github.com/phnx-labs/browser-cli/blob/main/docs/use-cases/README.md) | \n| **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) | \n| **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) | \n| **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) | \n\nbrowser-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.", "url": "https://wpnews.pro/news/show-hn-browser-cli-coding-agents-in-your-own-signed-in-browser", "canonical_source": "https://github.com/phnx-labs/browser-cli", "published_at": "2026-11-27 15:48:23+00:00", "updated_at": "2026-11-27 16:15:41.764725+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-products"], "entities": ["Phnx Labs", "browser-cli", "Claude Code", "Codex", "Cursor", "Browser Use", "agent-browser", "browser-harness"], "also_reported_by": [], "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).", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-browser-cli-coding-agents-in-your-own-signed-in-browser", "markdown": "https://wpnews.pro/news/show-hn-browser-cli-coding-agents-in-your-own-signed-in-browser.md", "text": "https://wpnews.pro/news/show-hn-browser-cli-coding-agents-in-your-own-signed-in-browser.txt", "jsonld": "https://wpnews.pro/news/show-hn-browser-cli-coding-agents-in-your-own-signed-in-browser.jsonld"}}