Skip to content
Agentmart
Submit a tool

agent-browser

Browser automation CLI for AI agents.

Skill by siarhei-belavus

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/siarhei-belavus-agent-browser

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

Use cases: frontend, testing, data, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/agent-browser

Tools it pre-approves 3

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash(npx
  • agent-browser:*),
  • Bash(agent-browser:*)

What's inside

Skill name
agent-browser
Description
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
License
MIT
Allowed tools
Bash(npx, agent-browser:*),, Bash(agent-browser:*)
Instructions
572 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts
  • Pre-approves some shell commands

Agent Skills spec issues

  • body: 572 lines (spec recommends under 500)

Files (11)

  • SKILL.md
  • authentication.md · references/
  • commands.md · references/
  • profiling.md · references/
  • proxy-support.md · references/
  • session-management.md · references/
  • snapshot-refs.md · references/
  • video-recording.md · references/
  • authenticated-session.sh · templates/
  • capture-workflow.sh · templates/
  • form-automation.sh · templates/

SKILL.md (first lines)

# 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 agent-browser@0.15.2 ...` 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):

   ```bash
   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):

     ```bash
     agent-browser close  # auto-saves state for --session-name <site>
     ```

   - Explicit file (portable):

     ```bash
     agent-browser state save <site>-auth.json
     ```

4. **Proceed with original goal** using the same saved session/state:

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

#### Path B — Auth profile (automated) login

1. Create an auth profile once (built-in encrypted credential store; never ask user for password in chat):
   ```bash
   echo "<pass>" | agent-browser auth save <site> --url <login-url> --username <user> --password-stdin
   ```
2. Login using the saved profile:
   ```bash
   agent-browser auth login <site>
   ```
3. Persist state (pick one):
   - Auto: ensure you ran with `--session-name <site>` and then `agent-browser close`.
   - Explicit file: `agent-browser state save <site>-auth.json`
4. If you hit SSO/2FA/CAPTCHA or automation fails, **fall back to Path A** (headed manual login) and persist state.

Notes:

- If you started headless and discover a login wall, `close` and re-`open` with `--headed` for Path A.
- Keep the original goal in scope; login is only an enabling step.

```bash
agent-browser open https://example.com/form
agent-browser snapshot -i
# Output: @e1 [input type="email"], @e2 [input type="password"], @e3 [button] "Submit"

agent-browser fill @e1 "user@example.com"
agent-browser fill @e2 "<password-from-vault>"
agent-browser click @e3
agent-browser wait --load networkidle
agent-browser snapshot -i  # Check result
```

## Command Chaining

Commands can be chained with `&&` in a single shell invocation. The browser persists between commands via a background daemon, so chaining is safe and more efficient than separate calls.

```bash
# Chain open + wait + snapshot in one call
agent-browser open https://example.com && agent-browser wait --load networkidle && agent-browser snapshot -i

# Chain multiple interactions
agent-browser fill @e1 "user@example.com" && agent-browser fill @e2 "$PASSWORD" && agent-browser click @e3

# Navigate and capture
agent-browser open https://example.com && agent-browser wait --load networkidle && agent-browser screenshot page.png
```

**When to chain:** Use `&&` when you don't need to read the output of an intermediate command before proceeding (e.g., open + wait + screenshot). Run commands separately when you need to parse the output first (e.g., snapshot to discover refs, then interact using those refs).

## Essential Commands

```bash
# Navigation
agent-browser open <url>              # Navigate (aliases: goto, navigate)
agent-browser close                   # Close browser

# Snapshot
agent-browser snapshot -i             # Interactive elements with refs (recommended)
agent-browser snapshot -i -C          # Include cursor-interactive elements (divs with onclick, cursor:pointer)

From siarhei-belavus/agent-public, MIT.

More from siarhei-belavus/agent-public

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Apr 29, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from siarhei-belavus

Cite this page

agent-browser skill. Agent Mart. https://agentmart.dev/skills/siarhei-belavus-agent-browser (last updated 2026-10-24)