# Agent browser

> Agent browser is an open-source agent skill for browser automation. Lets an AI agent drive a real browser: navigate, fill forms, click and scrape pages. 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/melandlabs/openloomi/tree/main/skills/agent-browser
- **Repository:** https://github.com/melandlabs/openloomi
- **GitHub stars:** 1,046
- **License:** Apache-2.0
- **Skill name:** agent-browser
- **Collection:** https://github.com/melandlabs/openloomi
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-12-02

## About

This skill teaches an agent to operate a Chromium browser through the agent-browser command-line tool. The workflow centres on taking a snapshot of a page to get element references, then using those references to click, fill, select or check controls, and re-snapshotting after the page changes. It also covers capturing screenshots, PDFs and annotated images, extracting page text as plain or JSON output, and verifying an action by diffing snapshots, screenshots or two URLs.

The guide goes beyond basic commands. It describes saving and restoring login state, named sessions for running several browsers in parallel, connecting to an existing Chrome instance with remote debugging, and running JavaScript in the page using safe quoting methods. It also documents waiting strategies for slow pages, a configuration file for persistent options, and an iOS Simulator mode that requires macOS with Xcode and Appium.

The agent needs the agent-browser CLI installed globally or run through npx, plus a Chromium download on first use. Linux users may need extra system dependencies. Bash tool access is required, and the skill includes reference documents and shell templates for form automation, authenticated sessions and content capture.

## When your agent uses it

> 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.

## What it can access

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

- [Runs shell scripts](https://github.com/melandlabs/openloomi/tree/HEAD/skills/agent-browser)
- [Asks for: Bash(npx agent-browser:*), Bash(agent-browser:*)](https://github.com/melandlabs/openloomi/blob/HEAD/skills/agent-browser/SKILL.md)
- [No network calls found in its scripts](https://github.com/melandlabs/openloomi/tree/HEAD/skills/agent-browser)
- [License: Apache-2.0](https://github.com/melandlabs/openloomi/tree/HEAD/skills/agent-browser)

## Features

- **Page snapshots and refs:** Reads a page's interactive elements and gives each a reference the agent can act on.
- **Form and click automation:** Fills inputs, selects options, checks boxes, clicks buttons and presses keys.
- **Screenshots and PDFs:** Captures full-page or annotated screenshots and saves pages as PDF files.
- **Data extraction:** Pulls element or page text and can output structured JSON for parsing.
- **Session and login persistence:** Saves cookies and storage per named session so logins can be reused later.
- **Change verification:** Diffs snapshots, screenshots or two URLs to confirm an action had the intended effect.
- **Mobile Safari via iOS Simulator:** Runs the same workflow against Safari on an iOS simulator or a configured device.

## Good for

- Fill out and submit a web form with given details
- Log into a site once and reuse the session later
- Take a screenshot of a page or save it as PDF
- Scrape product or listing data from a web page
- Test a web app flow and check the result on screen
- Compare a staging site against production

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/agent-browser` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-browser &&
cp -R "$tmp/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/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-browser &&
cp -R "$tmp/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/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-browser &&
cp -R "$tmp/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/melandlabs/openloomi.git --path 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/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-browser &&
cp -R "$tmp/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/melandlabs/openloomi.git
```

Then copy `openloomi/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 the agent need before using Agent browser?

Install the agent-browser CLI globally or run it with npx, then download Chromium with the install command. Linux may need extra system dependencies. Bash tool access is required.

### When does the skill trigger?

It loads when a task involves interacting with websites, such as opening a site, filling a form, clicking a button, taking a screenshot, scraping data or testing a web app.

### Can Agent browser reuse my logged-in browser?

Yes. It can connect to a running Chrome with remote debugging enabled, using auto-discovery or an explicit CDP port.

### Does Agent browser work on iPhones?

It includes an iOS Simulator mode that requires macOS with Xcode and Appium, and it also supports physical devices that are pre-configured.

### 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.

### Does Agent browser run scripts?

Yes. It runs shell scripts. No network calls were found in its 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 Agent browser, Agent browser, Webapp testing, Agent device and Puppeteer skill.

## Where this comes from

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

## Alternatives

- [Agent browser](https://ai-powered.com/skills/agent-browser-chachamaru127-2): Agent browser is an open-source agent skill for browser automation.
- [Agent browser](https://ai-powered.com/skills/agent-browser-scaledockhq): Agent browser is an open-source agent skill for browser automation.
- [Webapp testing](https://ai-powered.com/skills/webapp-testing-github): Webapp testing is an open-source agent skill for browser automation.
- [Agent device](https://ai-powered.com/skills/agent-device-callstackincubator): Agent device 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.
- [Playwriter](https://ai-powered.com/skills/playwriter): Playwriter is an open-source agent skill for browser automation.

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