Browser Automation CLI
/install browser-pc
Browser Automation
Automate browser interactions using Stagehand CLI with Claude.
First: Environment Selection (Local vs Remote)
The skill automatically selects between local and remote browser environments:
- If Browserbase API keys exist (BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID in .env file): Uses remote Browserbase environment
- If no Browserbase API keys: Falls back to local Chrome browser
- No user prompting: The selection happens automatically based on available configuration
Setup (First Time Only)
Check setup.json in this directory. If setupComplete: false:
npm install # Install dependencies
npm link # Create global 'browser' command
Commands
All commands work identically in both modes:
browser navigate \x3Curl> # Go to URL
browser act "\x3Caction>" # Natural language action
browser extract "\x3Cinstruction>" ['{}'] # Extract data (optional schema)
browser observe "\x3Cquery>" # Discover elements
browser screenshot # Take screenshot
browser close # Close browser
Quick Example
browser navigate https://example.com
browser act "click the Sign In button"
browser extract "get the page title"
browser close
Mode Comparison
| Feature | Local | Browserbase |
|---|---|---|
| Speed | Faster | Slightly slower |
| Setup | Chrome required | API key required |
| Stealth mode | No | Yes |
| Proxy/CAPTCHA | No | Yes |
| Best for | Development | Production/scraping |
Best Practices
- Always navigate first before interacting
- View screenshots after each command to verify
- Be specific in action descriptions
- Close browser when done
Troubleshooting
- Chrome not found: Install Chrome or use Browserbase mode
- Action fails: Use
browser observeto discover available elements - Browserbase fails: Verify API key and project ID are set
For detailed examples, see EXAMPLES.md. For API reference, see REFERENCE.md.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install browser-pc - 安装完成后,直接呼叫该 Skill 的名称或使用
/browser-pc触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Browser Automation CLI 是什么?
Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3071 次。
如何安装 Browser Automation CLI?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install browser-pc」即可一键安装,无需额外配置。
Browser Automation CLI 是免费的吗?
是的,Browser Automation CLI 完全免费(开源免费),可自由下载、安装和使用。
Browser Automation CLI 支持哪些平台?
Browser Automation CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Browser Automation CLI?
由 peytoncasper(@peytoncasper)开发并维护,当前版本 v1.0.0。