Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

agent-browser

Skill by hoadh

Automates browser sessions for AI agents using a snapshot and refs workflow. Built for long autonomous runs, self-verifying build loops, video recording, and cloud browser testing on Browserbase.

  • Score 49
  • 8 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install agent-browser

Built from the published package, never by AI.

git clone --depth 1 https://github.com/hoadh/antigravity-workflow-skills /tmp/antigravity-workflow-skills && mkdir -p ~/.claude/skills && cp -r /tmp/antigravity-workflow-skills/.agent/skills/agent-browser ~/.claude/skills/agent-browser

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install agent-browser in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

agent-browser is a browser automation CLI built for AI agents. It uses a snapshot and refs workflow: a snapshot lists interactive elements with refs such as @e1, and the agent acts on those refs. The source says this uses 93% less context than Playwright MCP, at about 280 characters per snapshot against 8K or more for Playwright MCP. Commands cover navigation, form input, screenshots and storage.

The skill is aimed at long autonomous sessions, context-constrained workflows, video recording for debugging, self-verifying build loops, and cloud testing through Browserbase. It supports named sessions for parallel testing, saved auth state, and a cloud provider flag (-p browserbase) for CI/CD or machines without a local browser. The source compares it with chrome-devtools, recommending that tool for quick one-off screenshots and custom Puppeteer scripts. It is licensed under Apache-2.0.

Written from the project's SKILL.md and checked against it.

What it can do

  • Snapshot with refsLists interactive page elements with refs like @e1 for the agent to act on.
  • Element interactionClicks, fills, types, checks, selects, scrolls, drags and uploads files using refs.
  • Information retrievalReads text, HTML, values, attributes, page title, URL and bounding boxes.
  • Screenshots and PDFCaptures viewport or full-page screenshots and exports pages as PDF.
  • Video recordingStarts, stops and restarts browser video recording for debugging.
  • Wait conditionsWaits for elements, text, URL patterns, page load, network idle or JS conditions.
  • Network controlBlocks, mocks and lists network requests.
  • Storage and auth stateReads and sets cookies and storage, and saves or loads browser state.
  • Parallel sessionsRuns named sessions with the --session option for parallel testing.
  • Browserbase cloud browsersRuns automation on Browserbase cloud browsers using the -p browserbase option.

What you need

  • npm to install the agent-browser package
  • Chromium, downloaded once with agent-browser install
  • Browserbase API key and project ID for cloud browsers
  • Linux system dependencies, installed with --with-deps where needed

Try asking

  • Open example.com, snapshot the page and fill the login form with my test account.
  • Record a video of this checkout flow so I can debug it later.
  • Run this test on a Browserbase cloud browser and report the result.

Good to know

  • Refs go stale after page changes, so a new snapshot is needed.
  • Cloud browsers require BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agent/skills/agent-browser/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to agent-browser

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

agent-browser: common questions

How does agent-browser reduce context use?

It uses a snapshot and refs approach. The source says a snapshot is about 280 characters versus 8K or more for Playwright MCP, and 93% less context overall.

When should I use agent-browser instead of chrome-devtools?

The source recommends agent-browser for long autonomous sessions, context-limited workflows, video recording and Browserbase cloud browsers. It recommends chrome-devtools for quick one-off screenshots and custom Puppeteer scripts.

Can agent-browser run tests in the cloud?

Yes. Using the -p browserbase option with a Browserbase API key and project ID runs the browser on Browserbase.

How do I install agent-browser?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is agent-browser free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is agent-browser safe to use?

It scores 49 of 100. Grades: maintenance D, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to agent-browser?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

agent-browser Install

Add to stack

Loading.