# agent-browser

A skill that hands your coding agent a browser CLI for opening pages, filling forms, clicking elements and taking screenshots.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2800 installs · ★ 379
- Author: brianlovin
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/brianlovin/agent-config/tree/HEAD/skills/agent-browser/SKILL.md
- Updated: 2026-03-25
- HTML: https://affpapa.org/en/nevibecode/skills/brianlovin-agent-browser

## What it does

The skill exposes a set of `agent-browser` commands that drive Chrome or Chromium over CDP. Typical loop: open a URL, run `agent-browser snapshot -i` to get element refs such as `@e1`, then act on those refs. Re-snapshot after any navigation or DOM change, since old refs stop matching.

Calls share one browser through a background daemon, so chained commands with `&&` are fine — open, wait for network idle, grab a screenshot in one shell line. Keep snapshot separate only when you need its output first. Auth is covered too: persistent profiles, named sessions, importing cookies from your running Chrome, an encrypted vault for credentials.

Before anything works you need the CLI installed (`npm i -g agent-browser`, `brew install agent-browser` or `cargo install agent-browser`) and Chrome pulled down with `agent-browser install`. Saved state files hold tokens in plaintext, so add them to `.gitignore`.

Screenshots come in plain, full-page and annotated flavours, where elements get numbered labels. There is also device emulation for mobile viewports.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill agent-browser -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/agent-browser/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/agent-browser/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill agent-browser -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/agent-browser/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill agent-browser -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/agent-browser/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install brianlovin/agent-config agent-browser
```

2. **Manually: put the files in place**
- File: `.github/skills/agent-browser/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill agent-browser -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/brianlovin/agent-config --path skills/agent-browser
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/agent-browser/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill agent-browser -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/brianlovin/agent-config/tree/HEAD/skills/agent-browser/SKILL.md

## When to use it
- submit a web form without touching a mouse
- capture a full-page screenshot for a report
- log into an app once and reuse the session later
- pull element text off a page using snapshot refs
- download a file that only appears after a button click

## Example prompts
- Open https://example.com/form, fill in the fields and submit it
- Take a full-page screenshot of the dashboard into `page.png`
- Log in using `--state ./auth.json`, then confirm the profile page loads

## Similar
- [agent-browser](https://affpapa.org/en/nevibecode/skills/vercel-labs-agent-browser.md) — skill · 1200000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs
- [computer-use](https://affpapa.org/en/nevibecode/skills/computer-use.md) — skill · 239400 installs
- [browser-use](https://affpapa.org/en/nevibecode/skills/browser-use.md) — skill · 98200 installs
- [playwright-cli](https://affpapa.org/en/nevibecode/skills/playwright-cli.md) — skill · 195700 installs
- [last30days](https://affpapa.org/en/nevibecode/skills/last30days.md) — skill · 53000 installs

## Other versions with the same name
- [agent-browser · vercel-labs](https://affpapa.org/en/nevibecode/skills/vercel-labs-agent-browser.md) — 1200000 installs
- [agent-browser · nexu-io](https://affpapa.org/en/nevibecode/skills/nexu-io-agent-browser.md) — 2800 installs
- [agent-browser · 101-skills](https://affpapa.org/en/nevibecode/skills/101-skills-agent-browser.md) — 162800 installs
- [agent-browser · openai](https://affpapa.org/en/nevibecode/skills/agent-browser.md) — 20 installs

From the same set: [brianlovin/agent-config](https://affpapa.org/en/nevibecode/by/brianlovin/agent-config.md) — 15 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
