关于 agent-browser
agent-browser 是供 AI Agent 使用的浏览器自动化命令行技能,通过 CDP 操作 Chrome 或 Chromium。它提供与已安装版本匹配的工作流指南,并涵盖网页、Electron 应用、Slack 和测试任务。
主要功能
- 01通过 CDP 自动化操作 Chrome 和 Chromium
- 02带元素引用的无障碍树快照
- 03会话、身份验证与状态管理
- 04视频录制
- 05Electron、Slack 与 QA 专用技能
- 06由命令行提供版本匹配的指南
适用场景
- 01自动化操作浏览器网页
- 02操作 Electron 桌面应用
- 03自动处理 Slack 工作区任务
- 04开展探索式测试与缺陷排查
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ arize-ai/ phoenix --skill agent-browser安装后在 Claude Code 中输入/agent-browser确认已加载。
详细介绍
agent-browser
面向 AI Agent 的快速浏览器自动化 CLI。通过 CDP 使用 Chrome/Chromium,支持无障碍树快照和精简的 @eN 元素引用。
安装:npm i -g agent-browser && agent-browser install
从这里开始
此文件是发现入口,而非使用指南。在运行任何
agent-browser 命令之前,请从 CLI 加载实际工作流内容:
agent-browser skills get core # start here — workflows, common patterns, troubleshooting
agent-browser skills get core --full # include full command reference and templates
CLI 提供的技能内容始终与已安装版本匹配,
因此说明不会过时。此入口文件的内容不会随版本发布而变化,
所以它只指向 skills get core。
专用技能
当任务涉及浏览器网页以外的内容时,请加载专用技能:
agent-browser skills get electron # Electron desktop apps (VS Code, Slack, Discord, Figma, ...)
agent-browser skills get slack # Slack workspace automation
agent-browser skills get dogfood # Exploratory testing / QA / bug hunts
agent-browser skills get vercel-sandbox # agent-browser inside Vercel Sandbox microVMs
agent-browser skills get agentcore # AWS Bedrock AgentCore cloud browsers
运行 agent-browser skills list,查看已安装版本中提供的所有技能。
agent-browser 的优势
- 快速的原生 Rust CLI,而非 Node.js 封装
- 适用于任何 AI Agent(Cursor、Claude Code、Codex、Continue、Windsurf 等)
- 通过 CDP 使用 Chrome/Chromium,无需依赖 Playwright 或 Puppeteer
- 提供带元素引用的无障碍树快照,便于可靠交互
- 支持会话、身份验证保险库、状态持久化和视频录制
- 提供针对 Electron 应用、Slack、探索性测试和云服务商的专用技能
可观测性仪表板
仪表板在浏览器会话之外独立运行,端口为 4848,也可以通过代理或转发的 URL 打开,例如 https://dashboard.agent-browser.localhost。Agent 应停留在仪表板源站:会话标签页、状态和流量都会在内部代理,因此无需公开会话端口。
评论
支持 Markdown