agent-browser
Skill by mvschwarz
Automates websites through the agent-browser CLI, letting an AI assistant navigate pages, fill forms, click buttons, take screenshots and extract data. It is aimed at agents that need programmatic web interaction or browser testing.
Install agent-browser
Built from the published package, never by AI.
git clone --depth 1 https://github.com/mvschwarz/openrig /tmp/openrig && mkdir -p ~/.claude/skills && cp -r /tmp/openrig/skills/_canonical/process/agent-browser ~/.claude/skills/agent-browserRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/mvschwarz/openrig /tmp/openrig && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/openrig/skills/_canonical/process/agent-browser ~/.gemini/antigravity-cli/skills/agent-browserAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
agent-browser is a browser automation CLI skill for AI agents. It follows a loop: open a URL, take a snapshot to get element refs such as @e1, act on those refs, then re-snapshot after the page changes. Commands can be chained with && because a background daemon keeps the browser open between calls. The skill also covers waiting for network idle or URL patterns, saving and loading login state, named sessions, diffing snapshots and screenshots, and connecting to an existing Chrome instance.
The skill is written for AI agents and for users who need to interact with websites. Typical uses include filling out a form, logging in, scraping data from a page, testing a web app, and running several isolated sessions in parallel. It also documents iOS Simulator control through Safari. The file is a vendored copy of Vercel's agent-browser skill, adapted by OpenRig.
Written from the project's SKILL.md and checked against it.
What it can do
- Navigate and snapshotOpens a URL and lists interactive page elements with refs for later actions.
- Fill, click and selectTypes into fields, clicks buttons and links, selects dropdown options and checks boxes.
- Wait for pagesWaits for network idle, an element, a URL pattern, a JavaScript condition or a fixed time.
- Screenshots and PDFTakes screenshots, full-page or annotated captures, and saves the page as a PDF.
- Extract dataReads text and URLs from elements or the page, with optional JSON output.
- Save login stateSaves and loads cookies and local storage, with optional encryption at rest.
- Parallel sessionsRuns isolated named browser sessions so several agents or sites do not conflict.
- Diff pagesCompares snapshots, screenshots or two URLs to verify that an action had the intended effect.
- Connect to ChromeAttaches to a running Chrome with remote debugging enabled, by auto-discovery or CDP port.
- iOS Simulator controlDrives Safari on an iOS simulator or a pre-configured physical device on macOS.
What you need
- macOS with Xcode and Appium (for iOS Simulator use)
- Chrome with remote debugging enabled (for auto-connect)
- Physical iOS devices must be pre-configured
Try asking
- Open example.com/signup and fill in the form with my details
- Log into my dashboard and save the login state for later
- Take a screenshot of this page and save it as a PDF
Good to know
- The default Playwright timeout is 60 seconds for local browsers.
- Element refs become invalid after the page changes and must be re-snapshotted.
- iOS Simulator support requires macOS with Xcode and Appium.
- Physical iOS devices work only if they are pre-configured.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/_canonical/process/agent-browser/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(npx agent-browser:*)Bash(agent-browser:*)
-
LICENSE.txt11 KB -
LOCAL-INSIGHTS.md6 KB -
OPENRIG.md1 KB -
SKILL.md16 KB
Alternatives to agent-browser
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
agent-browser: common questions
Can agent-browser control an existing Chrome window?
Yes. The skill can auto-discover a running Chrome with remote debugging enabled, or connect to an explicit CDP port.
How does agent-browser keep a login between runs?
Using state save and state load, or named sessions that auto-save cookies and localStorage to ~/.agent-browser/sessions/ on close.
Can it test a web app on a phone?
The skill documents iOS Simulator control through Safari on macOS, including tap, swipe and screenshots.
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 published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is agent-browser safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. 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.
