browser-cli

agent
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • exec() — Shell command execution in bench/grade.ts
  • network request — Outbound network request in bench/grade.ts
  • network request — Outbound network request in bench/results/2026-11-07/isolation/agent-browser/trial-1.json
  • network request — Outbound network request in bench/results/2026-11-07/isolation/agent-browser/trial-2.json
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Let your coding agent use the browsers you're already signed into: Chrome, Arc, Brave, Edge, Comet or Firefox, locally or over SSH.

README.md

browser-cli

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, Dia, Firefox or the browser built into VS Code, on this machine or another one over SSH.

npm
CI
License

Install · Features · Benchmark · How it compares · FAQ · Docs

browser-cli.sh · Why we open-sourced it

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

Measured, with every run published: on eight web tasks in Claude Code (2026-11-27, each tool's latest release), browser-cli 0.2.18 was the fastest (13.9 s per task) and cheapest ($0.056) of four tools, against 17.8 s and $0.061 for Browser Use, 20.6 s and $0.088 for agent-browser, and 27.8 s and $0.065 for browser-harness. Benchmark

Three Claude Code agents work at once in one Brave window, each in its own tab: one finds the cheapest mystery book, one fills a pizza order form, one checks out two items. Each pane shows the agent's current browser command, then its answer.
A real run on 2026-10-19, shown at 2×: three Claude Code agents, one browser, each in the tab its task owns.

Install

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, dia 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.

Quick start

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

Features

Set up in a minute

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 →

A terminal creates a Brave profile, makes it the default, opens Hacker News with its elements listed and clicks "new"

Keep work and personal apart

Each profile has its own logins. Sign in once in the profile an agent uses, and your other profiles never share that session.

Docs →

After signing in on the work profile, the same secure page opens for work and sends personal to the login page

Research papers and sources

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 →

An agent searches arXiv, opens a 2026 paper on web-browsing agents and reads its headline result

Check a page on a phone

Emulate an iPhone, iPad or any viewport, reload and screenshot, to check the layout your users see.

Docs →

Books to Scrape switches from its desktop layout to the iPhone 14 layout

Download files

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 →

An agent downloads a full-size photo from Unsplash, opens the file and describes it

Keep proof of what it did

Recordings, PDFs and screenshots are saved per task, and browser sessions lists them, so you can check the work.

Docs →

An agent records itself on a GitHub release page, saves a PDF and a screenshot, then opens the PDF

Fill forms and check out

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 →

An agent logs in to Sauce Demo, adds the two cheapest items and completes the order

Use the sites you are signed into

Sign in once and your agent works in that session: HR, CRM and admin tools, including ones with no API or MCP server.

Docs →

An agent adds an employee in an HR system the browser was already signed into

Several agents, one browser

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 →

Three Claude Code agents work at once in one Brave window, each in its own tab

Design in Figma

In canvas apps the agent works the way a person does: shortcuts, clicks at a position, and the properties panel by label.

Docs →

An agent builds an Apple-style mobile landing page in Figma

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.

Benchmark

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-27:

Seconds, cost and tokens per task for browser-cli and three other browser tools over 8 tasks on 2026-11-27; browser-cli is fastest at 13.9 s, cheapest at $0.056 and uses the fewest tokens (82k)
  • Fastest and cheapest: browser-cli 0.2.18 took 13.9 s and $0.056 per task, against 17.8 s and $0.061 for Browser Use 1.0.9, 20.6 s and $0.088 for agent-browser 0.45.0, and 27.8 s and $0.065 for browser-harness 0.1.15.
  • Fewest tokens and turns: browser-cli used 82k tokens and 5.6 turns per task, against 90k and 5.8 for Browser Use.
  • Every tool answered all 16 runs correctly.
Runs where an agent saw another agent's tab, out of 6, on 2026-11-27: browser-cli 0, browser-harness 0, Browser Use 4, agent-browser 5
  • 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 4 and 5 of 6 runs.

Method, per-task results and the run records: Benchmarks. Rerun it with bench/.

How it compares

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.

Security and privacy

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

FAQ

Every question: Discussions → Q&A. Ideas and what you built are welcome there too.

Docs

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.

Yorumlar (0)

Sonuc bulunamadi