agent-browser Automation Guide
Teaches Claude to drive the `agent-browser` CLI — open pages, click, fill forms, extract data, and screenshot with minimal token overhead.
AutomationIntermediate★ 1,218⑂ 116AI score 9/10Last updated: Nov 24, 2026
What it does
- Gives Claude a working playbook for
agent-browser, a CLI that drives Chrome/Chromium over CDP with no Playwright or Puppeteer dependency. - The core idea is the snapshot-and-ref loop: the accessibility tree is compressed into short
@e1/@e2refs so a page costs ~200–400 tokens instead of raw HTML parsing. - Covers navigation, click/fill/type/select/upload, text–attribute–value extraction, screenshots (including token-saving
--if-changed), tab management, iframes, dialogs, network mocking and HAR capture, and video recording. - Dedicates a whole section to wait strategy — the most common cause of agent failures — with rules like "don't use
networkidleas a generic SPA wait." - Also includes session isolation (
--session), state restore (--restore), a credential vault (auth save/login), MCP server mode, thedoctordiagnostic, and fixes for specific error messages.
Who it's for
- Developers and QA engineers running web E2E checks from Claude Code.
- Anyone scraping data behind a login or capturing recurring screenshots.
- Teams running several agents in parallel who need non-colliding browser sessions.
- Not useful if you can't install
npmpackages or Chrome in your environment.
Examples
- Log in and capture the dashboard:
open→snapshot -ito find email/password refs →fill+click→wait --url "**/dashboard"→screenshot --full. - Extract a table: pipe a heredoc into
eval --stdinto maptable tbody trinto a JSON array of names and prices. - Multi-user flow test: launch isolated browsers with
--session aand--session band sign in two accounts simultaneously.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/fcakyon/claude-codex-settings/HEAD/plugins/agent-browser/skills/agent-browser/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the plugins/agent-browser/skills/agent-browser folder from the GitHub repo fcakyon/claude-codex-settings into my ~/.claude/skills/fcakyon-agent-browser/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/fcakyon/claude-codex-settings.git && mkdir -p ~/.claude/skills && cp -r claude-codex-settings/plugins/agent-browser/skills/agent-browser ~/.claude/skills/ && npm i -g agent-browser && agent-browser install⚠ This is a third-party skill. Check the source repository before installing.
- Confirm Node.js is installed:
node -v. - Install the CLI:
npm i -g agent-browser && agent-browser install(on Linux,agent-browser install --with-deps). - Clone the repo:
git clone https://github.com/fcakyon/claude-codex-settings.git - Copy the skill folder:
mkdir -p ~/.claude/skills && cp -r claude-codex-settings/plugins/agent-browser/skills/agent-browser ~/.claude/skills/ - Verify the setup with
agent-browser doctor --offline --quick. - Restart Claude Code, then try a request like "open this site and take a screenshot."
- For sensitive accounts, avoid passwords on the command line — store them with
agent-browser auth save <name> --password-stdin.
View source on GitHub ↗License: Apache-2.0