Agent Browser: A Browser Automation CLI for AI Agents

Introduction

To help users “open pages, fill forms, click buttons, take screenshots, or extract data from pages,” Agents commonly either integrate Playwright/Puppeteer or pile a long list of browser API instructions into conversations. The former is heavy and consumes significant context; the latter instructions often mismatch the actually installed CLI version.

Agent Browser consolidates browser automation into a standalone CLI and transforms “what’s on the page and where to click” into Agent-friendly text via accessibility tree snapshots and compact element references (@eN). Below we introduce what it is, what it can do, and how to enable it through both the SkillHub / OpenClaw and npm paths.

What This Is

Agent Browser is a browser automation command-line tool designed for AI agents. Maintained by Nicolas Kleiber (rez0), it is located on SkillHub at @clawhub_rez0/agent-browser, version 1.0.0, categorized under ai-agent. The upstream page can be found at ClawHub Skill Page. The Skill metadata indicates requires_api_key=false, meaning installing the Skill itself does not require an API Key.

On SkillHub, its positioning is: to be used when users need to interact with websites — browsing pages, filling forms, clicking buttons, taking screenshots, etc. The underlying CLI drives browsers via Chrome/Chromium’s CDP, emphasizing accessibility tree snapshots and @eN element references, enabling Agents to perform precise clicks and form filling without maintaining a full DOM in conversations.

Core Features

The following capabilities are drawn from the official Skill page and upstream repository documentation, with no unverified items included.

  1. Web automation: Common browser tasks such as navigation, form filling, clicking, screenshots, page data extraction, web application testing, etc.
  2. Accessibility tree snapshots: Outputs readable page structure and references elements using @eN notation, reducing misoperations caused by “wrong selector selection.”
  3. Native Rust CLI: Official documentation states it is implemented in Rust, not a Node wrapper; it connects to Chrome/Chromium via CDP, without depending on Playwright or Puppeteer.
  4. Works with multiple Agent clients: Officially listed clients include Cursor, Claude Code, Codex, Continue, Windsurf, etc.; the Skill layer is responsible for triggering workflows that “use agent-browser instead of built-in browser tools” in appropriate scenarios.
  5. Sessions and state: The upstream mentions capabilities such as sessions, authentication vault, state persistence, recording, etc. (specific commands are subject to the installed version’s skills get core output).
  6. Extended Skill packages (loaded on-demand via CLI):
    - electron: Electron desktop applications (VS Code, Slack, Discord, Figma, etc.)
    - slack: Slack workspace automation
    - dogfood: Exploratory testing / QA
    - vercel-sandbox: Running in Vercel Sandbox microVMs
    - agentcore: AWS Bedrock AgentCore cloud browser

The ClawHub page also lists typical trigger phrases: for example, “open a website,” “fill out a form,” “click a button,” “take a screenshot,” “extract data from a page,” “log into a site,” etc. Whether to use Agent Browser is determined by the Agent based on the Skill description.

Installation and Activation

Agent Browser has two layers: the npm global CLI (which actually performs browser operations) and the Skill package (which tells the Agent when and how to use the CLI). Both paths can be used in combination.

1. Installing the CLI (npm)

The official installation command:

npm i -g agent-browser && agent-browser install

agent-browser install is used to prepare the browser/runtime components required by the CLI (specific steps are subject to the command output).

2. Installing the Skill on SkillHub (Cursor, etc.)

The installation instructions provided on the SkillHub page: refer to SkillHub Installation Documentation, install the package @clawhub_rez0/agent-browser.

If the SkillHub CLI is not yet installed, check first:

command -v skillhub && skillhub --version

If not installed, use the installation script in the documentation (full installation or --cli-only for CLI only). When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it will default to ./skills/, which may not be loaded by the client. Example path for Cursor:

skillhub install @clawhub_rez0/agent-browser --dir ~/.cursor/skills/

For paths in Claude Code, Codex, Windsurf, etc., refer to Section 4 of the SkillHub installation documentation; simply replace --dir according to your actual client.

3. Installing the Skill in the OpenClaw Ecosystem

The OpenClaw installation command provided by ClawHub:

openclaw skills install @rez0/agent-browser

The package @rez0/agent-browser corresponds to the same upstream skill as SkillHub’s @clawhub_rez0/agent-browser, with a different namespace.

4. Loading Usage Instructions Aligned with the CLI Version

The SKILL discovery page in the upstream repository emphasizes: do not just read this stub; first pull the workflow documentation consistent with your currently installed version from the CLI to avoid outdated docs:

agent-browser skills get core             # workflows, common patterns, troubleshooting
agent-browser skills get core --full      # includes full command reference and templates

To view the extended Skills available for the current version:

agent-browser skills list

Load them on-demand, for example:

agent-browser skills get electron
agent-browser skills get slack

Typical Usage

The reproducible initial workflow is as follows.

  1. Install the CLI globally and run agent-browser install (see previous section).
  2. Install @clawhub_rez0/agent-browser (or OpenClaw’s @rez0/agent-browser) in the skills directory of your Agent.
  3. Run agent-browser skills get core in the terminal or have the Agent execute it, then perform specific subcommands (navigation, snapshot, clicking via @eN, etc.) according to the workflow returned.

The official static page does not list a complete subcommand table; specific command names and parameters are subject to the output of skills get core --full. Typical task descriptions on the Agent side remain consistent with natural language, such as having the user open a URL, fill in fields, operate on @eN referenced elements, take screenshots, or export page data.

Use Cases and Considerations

Who It’s For

  • Teams that need Agents to reliably operate real browsers and want to use accessibility trees + element references to reduce selector maintenance costs.
  • Environments already using Skills in Cursor, Claude Code, Codex, etc., that want unified “website interaction” trigger rules.
  • Cases requiring automation beyond regular web pages, such as Electron applications, Slack, or running browsers in environments like Vercel Sandbox / AWS AgentCore (corresponding extension packages must be obtained via skills get first).

Limitations and Notes

  • Requires Chrome/Chromium available on the local machine or runtime environment with CDP accessible; CLI installation steps are subject to agent-browser install.
  • The Skill description recommends prioritizing agent-browser over client-built-in browser automation; if multiple tools are configured simultaneously, conflicts must be avoided in Agent rules.
  • SkillHub page data (as of capture): rating 100000, downloads 1059842, installs 36434; these may overlap with npm package download counts and serve only as store popularity reference.
  • Security and audit: The ClawHub page provides a Security audit entry; before production use, it is recommended to review permissions and accessible site scope according to organizational standards.

Conclusion

Agent Browser consolidates “AI controlling browsers” into a Rust CLI + version-bound Skill documentation: accessibility tree snapshots and @eN references make operations more readable and repeatable, while the Skill layer maps website interaction, form filling, screenshot intents to a unified toolchain.

  • SkillHub Skill Page: https://www.skillhub.cn/skills/clawhub_rez0/agent-browser
  • SkillHub API / Installation Entry: https://api.skillhub.cn/zcwl/agent-browser
  • Upstream Documentation and OpenClaw Installation: https://clawhub.ai/rez0/agent-browser
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye