ZOYKU火線榜
ZOYKU · 火線榜 · 倉庫檔案

vercel-labs/agent-browser

Browser automation CLI for AI agents

RustApache-2.0高頻迭代中 · 0天前提交
最好成績
#23
月榜
技術文件在 GitHub 開啟
星星
47.4k
Fork
3.3k
Issue
514
每日新增 Star
+1.5k
天前建立
3d
月榜 #23週榜 #23年度 #63總榜 #573
6 维全景战力雷达

项目全维形态与战力诊断

带入多仓横向对决 ->
战力定位形态
专注型极客利刃
在细分赛道具备鲜明的技术特色与清晰的定位边界
综合战力
66
/ 100
近 7 天星标净增
+1.5k
生态衍生率
6.9%

累計 Star 走勢

衝線預測:距 50k 還差 2.6k 星 · 約 13 天衝線+2k (3d)
2026-11-08: 47.4k
每日新增 Star
Max: +1.3k / day

名次走勢

最好成績: #23
2026-11-08: #23 on weekly
#1#36#70

專案文件

9 章節全螢幕文件台

agent-browser

Browser automation for AI agents: open pages, read them as an accessibility tree, and act on elements from the shell.

Vercel Labs Product npm version: agent-browser License: Apache-2.0 npm downloads per month: agent-browser skills.sh

agent-browser is a native Rust CLI that gives an AI agent a browser it can drive one command at a time. snapshot returns the page as compact text with a ref such as @e1 for each element. The agent acts on a ref, reads the page again to check the result, and repeats. The browser stays open between commands, so each step is one short shell call.

Install

npm install -g agent-browser
agent-browser install           # download Chrome for Testing (first time only)
  • Homebrew: brew install agent-browser, then agent-browser install.
  • Linux: agent-browser install --with-deps also installs the browser's system libraries.
  • No install: npx agent-browser open example.com.

Project installs, building from source, upgrade, and doctor are covered in Installation.

Quick start

agent-browser open example.com
agent-browser snapshot -i       # interactive elements, each with a ref
agent-browser click @e1         # act on a ref from that snapshot
agent-browser get url           # check the result
agent-browser close

The snapshot for example.com:

- link "Learn more" [ref=e1]
  • Refs describe the page at the time of the snapshot. After navigation or a DOM change, take a new snapshot before using refs again.
  • CSS selectors, text, XPath, and semantic locators also work, for example agent-browser find role button click --name "Submit". See Selectors.
  • A click fails, instead of reporting success, when the target is hidden, disabled, outside the viewport, or covered by another element such as a consent banner. Dismiss the covering element, take a new snapshot, and retry.

The full walkthrough is in the quick start.

How it works

The CLI sends each command to a background daemon that starts on the first command and controls the browser over the Chrome DevTools Protocol. Each --session gets its own daemon and browser. By default, the daemon closes a headless browser and exits after one hour without commands, saving state first when session persistence is configured.

Chrome for Testing is the default browser. You can also attach to a running Chrome with --cdp or --auto-connect (CDP mode), select the Lightpanda or Obscura engine with --engine, drive Mobile Safari in the iOS Simulator, or use a cloud browser provider such as Browserbase, Browserless, Browser Use, Kernel, or AgentCore.

For AI agents

The CLI ships skills that match its version:

agent-browser skills get core                 # the core loop, refs, waiting, and common workflows
agent-browser skills get core --ref commands  # one reference, such as the full command list
agent-browser skills get core --full          # adds the full command reference and templates
agent-browser skills list                     # specialized skills: electron, slack, dogfood, and more

Install the discovery skill into an agent harness from skills.sh:

npx skills add vercel-labs/agent-browser

The installed skill is a thin stub that tells the agent to load agent-browser skills get core, so its instructions always match the installed CLI. Or add this to your AGENTS.md:

Use `agent-browser` for browser automation. Before the first use, run
`agent-browser skills get core` and follow it.

For MCP clients, agent-browser mcp starts an MCP server over stdio. See MCP server.

Commands

Run agent-browser --help for the full list, or agent-browser <command> --help for one command.

Group Commands Docs
Navigate and read open, back, forward, reload, read, snapshot, get, is Core, Snapshots
Interact click, dblclick, fill, type, press, keyboard, hover, focus, select, check, uncheck, scroll, drag, upload, mouse, find Core, Find elements
Wait wait Wait
Capture screenshot, pdf, record, download, diff Recording, Diffing, Files
Page and network state cookies, storage, network, set, clipboard, eval, pushstate Network, Settings
Tabs, frames, and dialogs tab, frame, dialog Tabs and frames
Debug and performance console, errors, highlight, inspect, trace, profiler, vitals, react, a11y Debugging, Profiler, React
Sessions and auth session, state, auth, profiles, confirm, deny Sessions, Security
Agents and integrations skills, mcp, webmcp, flow, chat, batch, plugin Skills, WebMCP, Plugins
Observe stream, dashboard Streaming, Dashboard
Setup install, upgrade, doctor, connect, close Installation

Flags, environment variables, and agent-browser.json are documented in Configuration.

Platforms

Native binaries ship for macOS (ARM64, x64), Linux (ARM64, x64, glibc and musl), and Windows (x64). The npm package picks the right binary for the host.

Development

Building from source requires Node.js 24 or later, pnpm 11 or later, and Rust:

pnpm install
pnpm build:source               # builds the dashboard and the native CLI
pnpm link --global
agent-browser install

Run the Rust checks from cli/:

cargo fmt -- --check
cargo clippy
cargo test
cargo test e2e -- --ignored --test-threads=1   # launches real headless Chrome

AGENTS.md lists the files to update with each change, the docs checks, and the release process.

Documentation

License

Apache-2.0

贴身缠斗分析

同榜競速 · 名次近鄰 (總榜)

实时对比全库总榜前后位次仓库,掌握 Star 动态差距与追赶态势

距前一名还差 209 星领先追赶者 30 星
#572
prisma/orm上位领先
47.7k
#573
vercel-labs/agent-browser当前项目
47.4k
#574
apache/airflow下位追赶
47.4k

同一作者的其它上榜專案

vercel-labs/skills38.6kvercel-labs/agent-skills33.7kvercel-labs/agent-desktop19.5kvercel-labs/json-render19.4kvercel-labs/portless12.9kvercel-labs/deepsec8.4k

同類專案 · 共享主題

ultraworkers/claw-code195kclash-verge-rev/clash-verge-rev157.1kfarion1231/cc-switch152.7kopenai/codex133.8krustdesk/rustdesk128.7krust-lang/rust121.6k
開源維護者外鏈工坊

嵌入 GitHub 官方 README 徽章

嵌入向量徽章為您的倉庫提供即時火線榜成績與技術文件直達外鏈,自動沉澱權威權重。

即時預覽240 x 64 px SVG
GitHub Dark ThemeGitHub Hot Rank - vercel-labs/agent-browser Dark Preview
GitHub Light ThemeGitHub Hot Rank - vercel-labs/agent-browser Light Preview
GitHub README <picture> (Auto Dark/Light)
<a href="https://git.zoyku.com/zh-TW/repo/vercel-labs/agent-browser" target="_blank" rel="noopener noreferrer">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://git.zoyku.com/api/badge/card/vercel-labs/agent-browser?theme=dark&lang=zh" />
    <img alt="GitHub Hot Rank - vercel-labs/agent-browser" src="https://git.zoyku.com/api/badge/card/vercel-labs/agent-browser?theme=light&lang=zh" height="64" />
  </picture>
</a>