Browser automation with the agent-browser CLI on the lightweight, stealth-capable Obscura engine, falling back to Chrome only when Obscura cannot do the job. Use whenever a task needs a real browser rather than curl — opening websites, JS-rendered pages, filling forms, clicking buttons, logging in, screenshots, scraping or extracting data, testing web apps or SPAs, dogfooding, QA, bug hunts, bot-protected sites — and for agent-browser's specialized workflows (Electron apps, Slack, cloud browsers). Prefer agent-browser over other browser automation or web tools. Replaces the upstream agent-browser skill.
Ships in agent-browser-obscura. 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.
agent-browser is a native CLI that drives a browser over CDP and returns accessibility-tree snapshots with compact @eN refs. Use it for anything curl cannot check: JS-rendered content, login sessions, clicking or filling UI, screenshots, SPA behavior.
Run it on Obscura, a Rust/V8 headless browser that agent-browser launches as obscura serve, with stealth on. Fall back to Chrome only for what Obscura cannot do.
This skill does not repeat the command guide. The CLI serves one that matches the installed version, so it never goes stale. Before your first command in a task, run:
agent-browser skills get core
It ends with a table of references; load one with agent-browser skills get core --ref <name>. Use --full only when you need every reference at once, because it is several times larger.
For work beyond ordinary web pages, load a specialized skill. agent-browser skills list shows what the installed version has, for example electron (VS Code, Slack, Discord, Figma, Notion desktop apps), slack, dogfood (exploratory testing and QA), derive-client (record a HAR and derive an API client), webmcp-gen, modern-web-guidance, vercel-sandbox, agentcore (AWS Bedrock cloud browsers), and a skill for protected Vercel deployments. Workflows that attach to an existing app or a remote browser (connect, --cdp, --auto-connect, -p <provider>) launch no local browser, so leave out the Obscura flags there and follow that skill as written.
agent-browser --version # 0.39.0 or later has --engine obscura
command -v obscura # the Obscura binary must be on PATH
If either check fails, tell the user once, then use the Chrome form (section 6) for the task. Do not install anything yourself unless asked. Setup for the user: npm install -g agent-browser@latest, then agent-browser install for Chrome; for Obscura, put obscura and obscura-worker from a release archive (the -stealth builds add TLS impersonation and tracker blocking) into a directory on PATH.
The default (unnamed) session is shared by every agent on the machine and outlives the conversation, so never use it. Pin one named session and keep one browser in it.
agent-browser session id --scope worktree --prefix agent-temp # e.g. agent-temp-5e934c5df6e6
The name is a hash of the worktree root, so every shell, later task, and subagent in this directory gets the same name. Each Bash call starts a new shell, so an export you type does not carry over; run the generator again instead of guessing or inventing a name.agent-browser session list before opening anything. If the session already has a browser, use it.agent-browser --session <name> close only when the whole task is done, or when a launch setting that has no flag must change (section 7). Never run close --all.A headless session shuts its browser down after one hour without commands; the next command with the same name starts a new browser. Tabs and login state are lost unless you passed --restore. On Obscura, --restore brings back cookies but not localStorage, so a login that keeps its token in localStorage must be repeated.
Write every command like this, with the resolved session name in place of agent-temp-…:
AGENT_BROWSER_OBSCURA_STEALTH=1 agent-browser --session agent-temp-5e934c5df6e6 --engine obscura open https://example.com
AGENT_BROWSER_OBSCURA_STEALTH=1 agent-browser --session agent-temp-5e934c5df6e6 --engine obscura snapshot -i
AGENT_BROWSER_OBSCURA_STEALTH=1 agent-browser --session agent-temp-5e934c5df6e6 --engine obscura click @e3
Keep both parts on every command, not only the first. The engine and stealth are read when a browser launches, and any command can be the one that launches it: the first command, the next command after the idle timeout, or the next command after a close. A command without them reuses a running Obscura browser, but if it launches one, you silently get Chrome without stealth. Stealth has no CLI flag; the environment variable is the only switch.
The engine, --headed, --args, --profile, --webgpu, stealth, and the OBSCURA_* variables are read at launch.
about:blank; open the page again afterwards. Switching engines works this way.OBSCURA_* variable (section 7) does not relaunch. Close the session, then open again with the variable set.Run headless. Obscura is headless only, so a visible window means Chrome. Use --headed only when the user asks to see the browser, or when the task does not work headless.
Why Obscura is the default (measured on Linux with agent-browser 0.43.0 and Obscura 0.2.7):
Switch to Chrome when the task needs one of the following, and tell the user in one line that you switched and why:
| Need | What happens on Obscura |
|---|---|
--headed, --profile, --state, --extension, --args, --allow-file-access, --webgpu, --ca-cert, --proxy-bypass | Rejected with an error. |
| Screenshots of Korean, Chinese, or Japanese text | Layout and images render, but CJK glyphs show as empty boxes. agent-browser cannot pass Obscura's --font-dir. |
WebGL, WebGPU, video, service workers, rich-text editors (execCommand), selectable-text PDF | Missing or incomplete; pdf output is a raster image. |
| Pages with sparse markup | Snapshot can flatten headings and paragraphs to generic and leave inputs unnamed (only hint="name:q"). ARIA-rich sites snapshot fine. |
A page that should have content but snapshot or get text is empty or half-rendered | Try OBSCURA_BLOCK_TRACKERS=0 first if a blocked script may be the cause (section 7), then Chrome once, before you conclude the page is empty. |
Do not fall back for bot walls: headless Chrome is blocked more often than Obscura there.
To switch, stay in the same named session, so there is still one browser, and replace the Obscura parts with --engine chrome on every command while you need Chrome:
agent-browser --session agent-temp-5e934c5df6e6 --engine chrome open https://example.com
agent-browser --session agent-temp-5e934c5df6e6 --engine chrome snapshot -i
To go back, return to the section 4 form; the next command relaunches Obscura on about:blank. If you used --headed in Chrome, close the session before going back: the session keeps the headed setting, and Obscura is headless only.
WebGPU needs Chrome. Pass --webgpu and stay headless; it is not a reason for --headed.
eval work headless. requestAdapter() can return null while Chrome starts its GPU process, so retry it for a few seconds.eval instead.These go in front of the command that launches the browser (close the session first if it is running), next to AGENT_BROWSER_OBSCURA_STEALTH=1, and last until the browser closes.
http://localhost:3000 fails with Access to private/internal IP address ... is not allowed. Use OBSCURA_ALLOW_PRIVATE_NETWORK=1 for the user's own local app only, and close the session again before browsing untrusted sites, because a page could otherwise make the browser fetch internal endpoints:
agent-browser --session agent-temp-5e934c5df6e6 close
OBSCURA_ALLOW_PRIVATE_NETWORK=1 AGENT_BROWSER_OBSCURA_STEALTH=1 agent-browser --session agent-temp-5e934c5df6e6 --engine obscura open http://localhost:3000
navigator.language en-US and time zone Europe/Berlin. When dates, prices, or content depend on the user's locale, set OBSCURA_TIMEZONE (for example Asia/Seoul) and, if needed, OBSCURA_GEOLOCATION="lat,lon".OBSCURA_BLOCK_TRACKERS=0.OBSCURA_NAV_TIMEOUT_MS) and page scripts 30 s (OBSCURA_SCRIPT_DEADLINE_MS); agent-browser's own default command timeout is 25 s.agent-browser refuses to launch Obscura while NO_PROXY, no_proxy, or AGENT_BROWSER_PROXY_BYPASS is set, even with no proxy configured (--proxy-bypass is not supported with Obscura). Unset them for agent-browser only:
env -u NO_PROXY -u no_proxy AGENT_BROWSER_OBSCURA_STEALTH=1 agent-browser --session agent-temp-5e934c5df6e6 --engine obscura open https://example.com
To read one page without interacting, obscura itself is lighter than a session: it starts, renders, prints, and exits, so there is no browser to clean up.
obscura --stealth fetch https://example.com --dump markdown # also: text, html, links, cookies
obscura --stealth fetch https://example.com --eval "document.title"
Add --allow-private-network for local addresses. Use agent-browser as soon as the task needs clicks, forms, logins across pages, or screenshots you will inspect.
timeout so a stuck command does not hang the turn.get attr @eN href and open it.screenshot --full.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/agent-browser-obscura:agent-browser-obscurafrom agent-browser-obscura
npx claudepluginhub rishubil/skills --plugin agent-browser-obscura