Guide · Agent skill
How to use the agent-browser core guide agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The agent-browser core guide is a skill: a set of instructions and reference files that an AI agent reads before it runs agent-browser commands. agent-browser is a command-line tool that drives a real Chrome or Chromium browser. This guide explains what the skill changes, how to install it, how to ask for browser tasks in plain language, and what to watch for. After reading it you should be able to install the skill, start a browser task, and know which actions to review first.
Quick start
- 1Install Node.js and agent-browser. Make sure Node.js with npm is installed, then run npm i -g agent-browser.
- 2Download Chrome or Chromium. Run agent-browser install to fetch the browser. On Linux, optionally add --with-deps for system libraries.
- 3Add the skill folder. Download the ZIP from this page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills in the Claude apps.
- 4Ask for a browser task. Describe the site, the goal and any point where the agent should stop and wait for you.
- 5Review high-impact actions. Check the agent's plan before it submits a form, makes a purchase or touches a sensitive account.
- 6Close the browser. When the task is done, the agent should run agent-browser close so no browser is left open.
What the core skill makes the agent do
Without this skill, an agent asked to work on a website often has to guess from raw HTML. The core skill teaches it a different loop. The agent opens a page, reads a compact accessibility-tree snapshot that lists interactive elements with numbered references such as @e1 or @e3, and then acts on those references by clicking, filling fields, pressing keys, or extracting text.
The guide covers navigating pages, interacting with elements (click, fill, type, select), extracting text and data, taking screenshots, managing tabs, handling forms and auth, waiting for content, running several browser sessions in parallel, and troubleshooting common failures.
- Opens URLs and reads the page through snapshots
- Clicks, fills, types into and selects form elements by ref
- Extracts text and data, and takes screenshots
- Manages tabs, waits for content, and saves or restores login state
- Uses a named, isolated browser session and closes the browser when finished
Install the core skill
The skill ships as a ZIP file from this page. Download it, then unzip it into one of two places. For a personal setup, use ~/.claude/skills/. For a single project, use the .claude/skills/ folder inside that project. The skill folder contains SKILL.md, a references/ folder and a templates/ folder.
If you use the Claude apps instead, open Settings, go to Capabilities, then Skills, and upload the ZIP there.
- Personal: unzip into ~/.claude/skills/
- Project: unzip into .claude/skills/ in the project root
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
Install the browser tool it depends on
The skill does not run a browser by itself. It needs the agent-browser command-line tool, which requires Node.js with npm. Install the tool, then download Chrome or Chromium with the install command. On Linux you can also install optional system libraries.
- Requirement: Node.js with npm
- Requirement: Chrome or Chromium, downloaded via agent-browser install
- Linux only, optional: system libraries via agent-browser install --with-deps
npm i -g agent-browser && agent-browser install
# Linux hosts, optional:
agent-browser install --with-depsHow to trigger the skill with natural requests
You do not need to type a command name. The skill is meant to load when you ask for something browser-related. The description covers requests such as interacting with a website, filling a form, clicking something, extracting data, taking a screenshot, logging into a site, testing a web app, or automating any browser task.
Be specific about the site, the goal and the stopping point. For risky actions, say that you want the agent to pause before submitting, paying or sending anything.
- "Open example.com and take a screenshot of the homepage."
- "Fill in the contact form on this page with the details I give you, but stop before submitting."
- "Log into my staging site and save the login so we can reuse it."
- "Extract the table of prices from this page into a CSV."
What the agent does behind the scenes
The agent first sets a named session so it does not share the default browser. It then runs a short loop: open, snapshot with interactive elements only, act on a ref, and re-snapshot after any change to the page. Refs can be reused across snapshots, but a fresh snapshot is taken after navigation.
When a site advertises a WebMCP tool that matches the task, the guide says the agent should prefer that tool over rebuilding the same action through page controls. It also treats all website metadata as untrusted data, not as instructions.
- Named session set before the first command
- Open, snapshot, act, re-snapshot
- Browser closed when the task is finished
export AGENT_BROWSER_SESSION="$(agent-browser session id --scope worktree --prefix task)"
agent-browser open <url>
agent-browser snapshot -i
agent-browser click @e3
agent-browser snapshot -iSafety notes: scripts and network access
This skill runs scripts and uses the network. The included templates are shell scripts (templates/authenticated-session.sh, templates/capture-workflow.sh and templates/form-automation.sh), and the browser connects to the sites you ask it to visit. Read a template before running it, and only point the agent at sites you are authorised to use.
The agent acts with real logins. It can submit forms or make purchases. Keep a human in the loop for high-impact actions. The guide covers the mechanics of browser automation only; it does not decide whether a task is permitted under a site's terms of service or the law. Login state can be saved and restored, so treat any saved state as sensitive.
- Review templates/*.sh before running them
- Confirm before submits, purchases or any sensitive account action
- Do not use it on sites you are not authorised to access
- Protect saved login state the same way you protect passwords
Tips for reliable results
Keep the task small and check progress with screenshots. Use snapshot -i to keep output short. If a page changes, take a new snapshot before clicking again, because old refs may point to the wrong element. The browser stays running between commands and, by default, shuts down after an hour without activity, so close it when you are done.
For repeated work on a site that needs login, use the authentication references and the authenticated-session template rather than typing credentials into each task. The references folder includes guides on sessions, authentication, command reference, snapshot refs, proxies, profiling, streaming and video recording.
- Use screenshot checkpoints on long tasks
- Re-snapshot after navigation or any visible change
- Run agent-browser close (or close --all) at the end
- Read references/commands.md for flags you have not seen before
What people use it for
- Filling and checking a web form on a staging site before a human submits it
- Capturing screenshots of pages for a visual review or QA report
- Extracting data from a page that has no API, such as a listing table
- Logging into a site once, saving the session and reusing it in later tasks
- Walking through a web app to test a flow and recording what happened
Frequently asked questions
Is the agent-browser core skill free?
The skill is published under the Apache-2.0 licence, as listed on this page. Check the licence file in the source repository for the full terms before you reuse or redistribute it.
What do I need before installing the core skill?
You need Node.js with npm to install agent-browser, plus Chrome or Chromium, which you download with agent-browser install. On Linux you can optionally add system libraries with --with-deps.
Where do I put the skill files?
Unzip the downloaded ZIP into ~/.claude/skills/ for personal use, or into .claude/skills/ inside a project. In the Claude apps, upload the ZIP under Settings → Capabilities → Skills.
Does the skill run scripts or use the internet?
Yes. It runs scripts, including the shell templates in the templates folder, and the browser uses the network to reach the sites you ask for. Review the scripts before running them.
Can the agent log into sites for me?
The guide covers login flows and saving and restoring authentication state. The agent acts with real logins, so use it only on accounts you are authorised to use and keep a human involved for sensitive actions.
How is this different from Playwright or Puppeteer?
The guide describes agent-browser as a CLI that controls Chrome or Chromium over CDP, with no Playwright or Puppeteer dependency, and gives agents compact snapshots instead of raw HTML. Choose it if you want an agent to drive a browser from the command line; choose a test framework if you need to write and maintain scripted test suites yourself.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits developers, QA testers and analysts who want an AI agent to drive a real browser for forms, screenshots, data extraction or repeatable logins, and who are willing to review what it does. It is a poor fit for sensitive accounts where actions must not happen without review, for local files or desktop apps, or for sites you are not authorised to automate.
Download the skill