# Agent browser

> Agent browser is an open-source agent skill for browser automation. Lets an agent drive a browser via the agent-browser CLI for UI checks and forms. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Chachamaru127/claude-code-harness/tree/main/opencode/skills/agent-browser
- **Repository:** https://github.com/chachamaru127/claude-code-harness
- **GitHub stars:** 3,232
- **License:** MIT
- **Skill name:** agent-browser
- **Collection:** https://github.com/Chachamaru127/claude-code-harness
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-12-01

## About

This skill gives the agent a workflow for controlling a web browser through the agent-browser command-line tool. The usual pattern is to open a page, take a compact snapshot that lists interactive elements with reference IDs, then click, fill or read elements by those references, and finally confirm the result with another snapshot, a URL check or a screenshot.

The instructions cover checking whether agent-browser is installed before use, with installation only when the user explicitly asks for it. They also list common commands for navigation, waiting, reading text or HTML, console and error output, element highlighting, and named sessions for handling several tabs or logins at once. Headless mode is the default, and a headed mode is available for debugging.

The skill is meant for explicit use. It tells the agent to prefer a browser route the user names, and otherwise to fall back to Browser Use or Playwright rather than assuming agent-browser is present. It expects a shell environment with the agent-browser CLI and Node.js for the npm install path, and it points to two reference files for deeper browser automation and snapshot guidance.

## When your agent uses it

> Browser automation through the repo agent-browser CLI. Explicit helper for navigation, forms, screenshots, scraping, and web-app checks. Prefer Browser Use or Playwright when available. Do NOT load for: sharing URLs, embedding links, or editing screenshot files.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Chachamaru127/claude-code-harness/tree/HEAD/opencode/skills/agent-browser)
- [License: MIT](https://github.com/Chachamaru127/claude-code-harness/tree/HEAD/opencode/skills/agent-browser)

## Features

- **Page navigation:** Opens URLs, moves back and forward, reloads, and reads the current URL or title.
- **Snapshot-based interaction:** Captures a compact list of interactive elements with reference IDs to target clicks and inputs.
- **Form filling:** Fills text fields, types into inputs, and presses keys on the page.
- **Screenshots and checks:** Saves screenshots and confirms page state after each action.
- **Debugging output:** Shows the browser window, prints console logs and page errors, and highlights elements.
- **Parallel sessions:** Keeps separate named browser sessions open for different accounts or tabs.

## Good for

- Open a staging page and confirm a login form renders correctly
- Fill out a signup form on a web app and check the confirmation message
- Take a screenshot of a page for a visual review
- Scrape text from a list of elements on a site
- Debug a page by running it headed and reading console errors

## Install

### Claude Code

This skill ships in the `harness` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Chachamaru127/claude-code-harness
/plugin install harness@claude-code-harness-marketplace
```

Or copy only this skill to `~/.claude/skills/agent-browser`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-browser &&
cp -R "$tmp/opencode/skills/agent-browser" ~/.claude/skills/agent-browser &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/agent-browser` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/agent-browser` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-browser &&
cp -R "$tmp/opencode/skills/agent-browser" ~/.agents/skills/agent-browser &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/agent-browser` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/agent-browser` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-browser &&
cp -R "$tmp/opencode/skills/agent-browser" ~/.cursor/skills/agent-browser &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/agent-browser` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Chachamaru127/claude-code-harness.git --path opencode/skills/agent-browser
```

Or copy the folder to `~/.gemini/skills/agent-browser` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/agent-browser`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-browser &&
cp -R "$tmp/opencode/skills/agent-browser" ~/.copilot/skills/agent-browser &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/agent-browser` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git
```

Then copy `claude-code-harness/opencode/skills/agent-browser` into your agent's skills folder as `agent-browser`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Agent browser need to run?

It needs the agent-browser CLI installed. The skill checks for it first and only installs it with npm if the user explicitly asks.

### When should the agent load Agent browser?

Only when agent-browser is explicitly requested. It is not meant for sharing URLs, embedding links or editing screenshot files.

### Which browser does Agent browser use by default?

It runs in headless mode by default, and a headed option is available to show the browser window.

### Does Agent browser replace Playwright or Browser Use?

No. The skill advises using the browser route the user names, otherwise Browser Use or Playwright when available.

### How do I install Agent browser in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agent-browser to use it in all your projects, or to .claude/skills/agent-browser in one project. Or install the harness plugin, which includes it: /plugin marketplace add Chachamaru127/claude-code-harness, then /plugin install harness@claude-code-harness-marketplace.

### Does Agent browser run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Agent browser?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Agent browser?

The closest alternatives to Agent browser are Webapp testing, Puppeteer skill, Chrome devtools, Webapp testing and Playwright.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Webapp testing](https://ai-powered.com/skills/webapp-testing-github): Webapp testing is an open-source agent skill for browser automation.
- [Puppeteer skill](https://ai-powered.com/skills/puppeteer-skill): Puppeteer skill is an open-source agent skill for browser automation.
- [Chrome devtools](https://ai-powered.com/skills/chrome-devtools): Chrome devtools is an open-source agent skill for browser automation.
- [Webapp testing](https://ai-powered.com/skills/webapp-testing): Webapp testing is an open-source agent skill for browser automation.
- [Playwright](https://ai-powered.com/skills/playwright): Playwright is a free agent skill for browser automation.
- [Playwright explore website](https://ai-powered.com/skills/playwright-explore-website): Playwright explore website is an open-source agent skill for browser automation.
- [Desktopmanager operator](https://ai-powered.com/skills/desktopmanager-operator): Desktopmanager operator is an open-source agent skill for browser automation.
- [Playwright skill](https://ai-powered.com/skills/playwright-skill): Playwright skill is an open-source agent skill for browser automation.

---
Source: https://ai-powered.com/skills/agent-browser-chachamaru127-2
