agent-browser

agent-browser is a skill for Claude Code from siarhei-belavus/agent-public. It costs 108 tokens per session (4,930 once invoked), scanned A, a copy of agent-browser, MIT.

A command-line browser controller for AI agents to open websites, inspect pages, interact with controls, and collect evidence.

In plain words
What is it for?
Use it to fill forms, click buttons, take screenshots, extract page data, test websites, or automate browser tasks.
Why use it?
It removes the need to perform repetitive browser actions manually and provides a repeatable sequence for navigating and checking web apps.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to fill forms, click buttons, take screenshots, extract page data, test websites, or automate browser tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/siarhei-belavus/agent-public/agent-browser
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add siarhei-belavus/agent-public --skill agent-browser
Clone the repo
git clone --depth 1 https://github.com/siarhei-belavus/agent-public

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-browser

README.md
[![agentmods](https://agentmods.dev/badge/skills/siarhei-belavus/agent-public/agent-browser/github.svg)](https://agentmods.dev/skills/siarhei-belavus/agent-public/agent-browser)
Your own site
<a href="https://agentmods.dev/skills/siarhei-belavus/agent-public/agent-browser"><img src="https://agentmods.dev/badge/skills/siarhei-belavus/agent-public/agent-browser/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-browser

Your own site · 80×15
<a href="https://agentmods.dev/skills/siarhei-belavus/agent-public/agent-browser"><img src="https://agentmods.dev/badge/skills/siarhei-belavus/agent-public/agent-browser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 83% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.04930
Opus 5.5 $0.00043 $0.01972
Sonnet 5.5 $0.00022 $0.00986
Haiku 4.5 $0.00011 $0.00493

Measured 2mo ago against content hash 36af26e36f71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-browser scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (templates/authenticated-session.sh, templates/capture-workflow.sh, templates/form-automation.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

83% identical to agent-browser — 209 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/browser/agent-browser/SKILL.md · 577 lines

How it starts

The opening of the file, as written. The whole thing — 577 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Browser Automation with agent-browser

Core Workflow

Every browser automation follows this pattern:

  1. Navigate: agent-browser open <url>
  2. Snapshot: agent-browser snapshot -i (get element refs like @e1, @e2)
  3. Interact: Use refs to click, fill, select
  4. Re-snapshot: After navigation or DOM changes, get fresh refs

Version: targets agent-browser >= 0.15.0 (tested 0.15.2). If your installed agent-browser --version is older, run via npx -y [email protected] ... or upgrade.

Sessions:

  • --session <name> = isolated in-memory browser context (parallel work)
  • --session-name <name> = auto-save/restore state (cookies/storage) across restarts
  • Combine both if needed: agent-browser --session <run> --session-name <persist> ...

Login wall handling (choose method)

If you hit a login wall (SSO/2FA/CAPTCHA, forced redirect to /login, auth modal, etc.), pause and ask the user which login method they want (use the ask_user tool; do not ask for passwords in chat).

Options:

  • Manual (headed) login (recommended for SSO/2FA/CAPTCHA)
  • Auth profile (automated) login (built-in agent-browser auth, for simple username/password flows)

After login (either method): persist the authenticated session/state and then resume the original user goal.

Path A — Manual (headed) login
  1. Open headed + isolate session (so auth can be reused):

    agent-browser --headed --session-name <site> open <login-url>
    
  2. Ask user to complete login in the visible browser window.

  3. Persist the session (pick one):

    • Auto (recommended):

      agent-browser close  # auto-saves state for --session-name <site>
      
    • Explicit file (portable):

      agent-browser state save <site>-auth.json
      
  4. Proceed with original goal using the same saved session/state:

    agent-browser --session-name <site> open <target-url>
    # or: agent-browser state load <site>-auth.json && agent-browser open <target-url>
    

Read the full file on GitHub · 577 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 577 lines · 108 tokens per session scan A 36af26e36f71

Subscribe to this mod's changes

agent-browser is a skill published in the GitHub repository siarhei-belavus/agent-public (2 stars, last pushed 5mo ago), licensed MIT. It adds 108 tokens to every session and 4,930 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 83% identical to agent-browser, differing in 209 lines, and is treated as a copy.

Related

Other skills, from other repositories

interactive-login

Log a CLI in with a browser/device-code flow (aws sso, gh, glab, gcloud, …) and save the result to the keychain so later commands can request it through execute.credentials.

yc-software/qm · 46 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

azure-messaging-webpubsub-java

Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.

microsoft/skills · 43 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

open-design-browser

Inspect and exercise local HTML design artifacts and library prototype previews with the existing agent-browser CLI, including screenshots, interaction checks, and rendered DOM snapshots. Use when rendered evidence helps author or review a design; excludes browser installation, remote services, and unrelated browser…

compozy/compozy · 56 tokens

browser_cdp

A health check for Python code that produces a score, letter grade, and measures of issues such as complexity, duplication, dead code, dependencies, and architecture.

mateaix/mateclaw · 44 tokens