>_agent-browser公式
@vercel-labs
詳細
agent-browser について
Vercel Labs' native Rust CLI that gives AI agents a browser: open pages, read them as an accessibility tree with element refs, and click, fill and screenshot from the shell.
agent-browser のインストール方法
npm (global)
npm install -g agent-browserHomebrew
brew install agent-browserNo install
npx agent-browser open example.comAfter installing, run agent-browser install once to download Chrome for Testing (on Linux, agent-browser install --with-deps also installs system libraries). Native binaries ship for macOS (ARM64, x64), Linux (ARM64, x64, glibc and musl) and Windows (x64). Apache-2.0 licensed.
ログインと認証
- 1
agent-browser installDownloads Chrome for Testing the first time. No account or API key is needed for local use.
- 2
agent-browser doctorChecks the installation.
Cloud browser providers such as Browserbase, Browserless, Browser Use, Kernel or AgentCore need that provider's own account and key. For logged-in sites, the docs cover an auth vault, domain allowlists and action policies.
できること
Snapshot pages as compact text with element refs (@e1)
Click, fill, type, upload and find elements by role, text or CSS
Screenshots, PDFs, recordings, network, cookies and tracing
Built-in agent skills and an MCP server (agent-browser mcp)
よく使うコマンド
- 1
agent-browser open example.comOpen a page. A background daemon starts on the first command and keeps the browser open between commands.
- 2
agent-browser snapshot -iReturn the interactive elements as compact text, each with a ref such as @e1.
- 3
agent-browser click @e1Act on a ref from the latest snapshot; take a new snapshot after navigation or DOM changes.
- 4
agent-browser find role button click --name "Submit"Use a semantic locator instead of a ref (CSS, text and XPath also work).
- 5
agent-browser get urlCheck the result of the last action.
- 6
agent-browser skills get corePrint the version-matched skill that teaches an agent the core loop; npx skills add vercel-labs/agent-browser installs the discovery stub.
- 7
agent-browser mcpStart an MCP server over stdio for MCP clients.
- 8
agent-browser closeClose the browser session.
注意点
- What it is: agent-browser gives an AI agent a browser it can drive one shell command at a time. The agent reads the page with snapshot, acts on an element ref, reads again to check, and repeats; each step is one short command.
- How it differs from a browser MCP server: it is a CLI first, so any agent that can run shell commands (Claude Code, Codex, Cursor and others) can use it without MCP. It also ships an MCP server (agent-browser mcp) when you want one.
- Command groups cover navigation and reading, interaction (click, fill, type, upload, drag), waiting, capture (screenshot, pdf, record, diff), cookies, storage and network, tabs and frames, debugging (console, trace, profiler, vitals) and sessions.
- Browsers: Chrome for Testing by default; attach to a running Chrome with --cdp or --auto-connect, choose the Lightpanda or Obscura engine with --engine, drive Mobile Safari in the iOS Simulator, or use a cloud browser provider.
- Limits: refs only describe the page at snapshot time, so re-snapshot after a change. A click fails, rather than reporting success, if the target is hidden, disabled, off-screen or covered (for example by a consent banner). Each --session gets its own daemon, and an idle headless browser closes after one hour by default.
- FAQ: Is it the same as the co-browser Agent Browser MCP server listed on MCP.so? No, that is a different project; this page is Vercel Labs' CLI. Is it free? Yes, it is open source under Apache-2.0; only cloud browser providers cost money.
参考資料
2026-11-12 に公式ドキュメントと照合しました。
MCP.so の同じプロジェクト
同じ GitHub リポジトリから作られた他の掲載:MCP サーバー、エージェントスキル、コマンドラインツールとして使えます。
エージェントスキル
その他の開発者ツール CLI
Bun
$ bun
An all-in-one JavaScript runtime, package manager, bundler, and test runner.
GitHub CLI
$ gh
GitHub on the command line: repositories, pull requests, issues, Actions, releases, and API calls.
GitLab CLI
$ glab
GitLab’s official CLI for merge requests, issues, pipelines, releases, snippets, and self-managed instances.
HTTPie
$ http
A human-friendly HTTP client with JSON, sessions, auth, and formatted output.
Lazygit
$ lazygit
A keyboard-driven terminal UI for staging, rebasing, branching, and Git history.
Playwright
$ playwright
Cross-browser end-to-end testing and browser automation from the command line.
コメント