Drives the user's real browser (Chrome, Firefox, Arc) with their own profiles and logins. Navigate, click, type, scrape text, take screenshots, capture console/network traffic, and show pages.
Ships in browser. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
browser drives real browsers (Chrome-family over CDP, Firefox over BiDi, Arc natively) with the user's own profiles, cookies and logins.
Start without --profile or --device:
browser start --url https://example.com
A bare start opens the browser the user configured as their default. When the machine is set to drive another device's browser, the start runs there. browser use prints the default. Pass --profile or --device only when the user or your instructions name one.
Do not create profiles, launch a headless browser, or switch to another machine's browser to work around an error. Sites block remote and cloud browsers, and those browsers do not have the user's logins. Report the error instead.
Never switch to a different browser because the default cannot do something. When it cannot do a step yet (Arc has no console capture, say), read the page as text and say a picture or capture was not possible. Never pick another profile from browser profiles list to get around it.
browser start --url https://example.com --snapshot # the page's refs; later calls drive this task
browser click 3 --snapshot # act, then print the page it left and a screenshot's path
browser click --text "Checkout" --snapshot # by visible name, no listing needed
browser type 5 "hello" # date/time inputs take "19:45" or "2026-10-18"
browser type "Email" "[email protected]" # or name the field by its label
browser select 7 "Large" --snapshot # a <select> option, by label or value
browser select "Sort" "Price (low to high)" # the <select> named by its label
browser press Enter --snapshot
browser dialog accept # or dismiss: answers a confirm() or prompt() the page asked
browser refs # interactive elements, numbered, iframes included
browser text # title, URL and the page's readable text
browser text --grep "Total|Tax" # only the matching lines
browser text --css ".product" # each match's text, one block per match
browser text --css ".product a" --attr href # or each match's attribute; no script needed
browser evaluate "document.title" # JavaScript, when the page text is not enough
browser evaluate --file - <<'JS' # read other pages: one expression on stdin
const base = '/catalogue/'; const urls = ['page-1.html', 'page-2.html'];
Promise.all(urls.map((p) => fetch(base + p).then((r) => r.text()))).then((pages) => pages.map((html) => new DOMParser().parseFromString(html, 'text/html').title))
JS
browser done # close the task's tabs
Waiting, screenshots, console and network capture are in browser --help. browser screenshot -o shots/step_001.png creates the folder.
start opened; there is no id to pass. Pass --task <name> only to drive a second task you started, or on every call when your harness puts no session id in the shell's environment (Claude Code and Codex do).sleep.&&, and end it with what you need to see. Name elements by their labels when you know them, so a whole form or checkout goes in one call without a listing: browser type "Username" ada && browser type "Password" secret && browser click --text "Login" --snapshot. Use --snapshot on the last action for the refs, or browser text for the words: browser start --url https://shop.example/p/1 && browser click --text "Add to cart" && browser text --grep Total. When the next step depends on what the page shows, act once with --snapshot and look first.refs or --snapshot) renumbers, so act on the numbers from the latest one.browser dialog accept or browser dialog dismiss.browser text --css <selector> lists each match (a product card, a table row, a search result) and --attr href its links; browser text --grep <pattern> prints only the matching lines, two lines around each (--context <n>), with a long paragraph cut to the text around the match (…; --attr values print whole), and a miss just says so. Write an evaluate script only for what those cannot do, such as fetching other pages. Keep the filtering inside browser: a pipe into grep, python or jq can need approval where only browser commands are allowed.{…} or a \u00a0-style escape. In evaluate scripts, return arrays ([title, price]) rather than objects, put strings in variables before any braces (const sel = 'td'; [...document.querySelectorAll(sel)].map((r) => ({t: r.textContent}))), use expression bodies instead of { return … } (so Promise.all(urls.map(…)).then(…), not an async function or a loop), and match spaces with /\s/, which covers no-break spaces.browser start --url prints the site guide for that site when one exists (--- site guide: … ---). Read it before you click.browser <command> --help # options for one command
browser help --json # every command, argument and option
An unknown option error means the flag does not exist. Read that command's --help.
A local file you only need to check, such as a page you rendered, is not for show: inspect it headlessly on your own machine (browser start --device local --url file:///abs/path.html, then browser screenshot), which opens nothing on the user's screen.
browser show https://example.com
browser show ./report.html
show opens it in the user's configured viewer and binds no task; on a box whose browser.device hub is another machine it copies a local file there and shows it on the hub, where the user is. It exits 1 with the reason when the viewer did not confirm the page; tell the user rather than retrying. After you update the page, run the same show again: it reloads and selects the tab already showing it instead of opening another (--fresh forces a new tab). A tab a task opened with browser start is never reused. On macOS show never brings the browser in front of the app the user is in, so the page can be open and still out of sight. On Windows and Linux the OS handler or a new tab may come to the front, a reloaded tab stays unselected, and show cannot tell what the user sees. Tell the user where it is, in the words show prints: "It's in Arc, behind VSCodium; a notification is up, click it to switch", not "the page is open". In Arc, show never switches Arc Spaces, because that can bring Arc forward; when the tab is in a Space its window is not showing, --json carries hiddenSpace and hiddenWhy, so tell them which Space to open: "It's in Arc, in the Work Space, behind VSCodium; a notification is up". Say it is in front of them only when --json reports "visible": true (macOS cannot say which desktop Space a window is on, so even then it may be on a Space they switched away from); "frontmost": "unknown" means nobody can tell, so tell them which browser and machine to look in.
When the task's profile is an Arc profile, read references/arc.md first. Arc runs only synchronous JavaScript. The agent's tabs open in a separate Arc window of their own, and browser screenshot captures that window without bringing Arc forward.
Each open VS Code or VSCodium window running the Agents extension is a profile in browser profiles list, named after the editor and its folder (vscodium-my-app, labeled VSCodium window "my-app"). Its pages open as tabs in that editor, next to the user's work, so the user can watch or do a step only a person can, such as a captcha. Use one only when the user or your instructions name it: browser start --profile vscodium-my-app --url …. Its tabs are the agent's own: they never include tabs the user opened in the editor. "The editor window … is not open" means that window is closed; run browser profiles list to see the open ones.
browser status lists the service and running tasks.
browser itself fails, or behaves like an older version: run browser doctor and pass its fix to the user. Never edit their shell rc files.
Service unresponsive, or IPC requests time out: browser stop --service, then retry the command.
nothing is speaking CDP on port …: that profile's browser is not running. Tell the user; do not switch browsers.
Task "…" not found: the task ended. Start a new one.
A site you could not read, click or type into, after --snapshot and its site guide: tell the user what failed and offer, once per site in a task, to report it. If they agree, open the report in their browser for them to check and submit; never file it yourself. The title names the site by hostname only. The body names the task, the command and the error it printed, browser --version, and the browser and OS, with nothing private: no page text from a signed-in page, account names, tokens or full URLs. Encode the title and body with encodeURIComponent (a newline is %0A) and keep the URL under about 2,000 characters:
browser show "https://github.com/phnx-labs/browser-cli/issues/new?title=<site>%3A%20<what failed>&body=<url-encoded report>"
browser skills list # this skill's documents
browser skills get arc # references/arc.md
browser skills get slack # a site guide, references/sites/slack.md
references/arc.md: Arc limits and how to share the user's window safely.references/sites/<site>.md: per-site selectors and gotchas (higgsfield, linkedin, perplexity, slack).scripts/slack/*.js: page scripts for browser evaluate --file, used by the Slack guide.references/arc.md (opens in a new tab)references/sites/higgsfield.md (opens in a new tab)references/sites/linkedin.md (opens in a new tab)references/sites/perplexity.md (opens in a new tab)references/sites/slack.md (opens in a new tab)scripts/slack/find-ids.js (opens in a new tab)scripts/slack/read-thread.js (opens in a new tab)scripts/slack/read-transcript.js (opens in a new tab)scripts/slack/type-composer.js (opens in a new tab)scripts/slack/type-search.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
browser-automation, web-scraping, form-filling, screenshot, cdp, bidi
Other plugins' skills for the same job
/browser:browserfrom browser
npx claudepluginhub phnx-labs/browser-cli --plugin browser