💡 摘要
该技能使Claude Code能够使用自然语言命令自动化浏览器任务。
🎯 适合人群
🤖 AI 吐槽: “该技能需要Anthropic API密钥,如果泄露会带来风险。为减轻风险,请确保密钥安全存储,而不是硬编码在源代码中。”
风险:Critical。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
Browser Automation Skill
A skill for seamlessly enabling Claude Code to interface with a browser using Stagehand (AI browser automation framework). Because Stagehand accepts natural language instructions, it's significantly more context-efficient than native Playwright while providing more features built for automation.
Installation
On Claude Code, to add the marketplace, simply run:
/plugin marketplace add browserbase/agent-browse
Then install the plugin:
/plugin install agent-browse@browserbase
If you prefer the manual interface:
- On Claude Code, type
/plugin - Select option
3. Add marketplace - Enter the marketplace source:
browserbase/agent-browse - Press enter to select the
agent-browseplugin - Hit enter again to
Install now - Restart Claude Code for changes to take effect
Setup
Set your Anthropic API key:
export ANTHROPIC_API_KEY="your-api-key"
Usage
Once installed, just ask Claude to browse:
- "Go to Hacker News, get the top post comments, and summarize them "
- "QA test http://localhost:3000 and fix any bugs you encounter"
- "Order me a pizza, you're already signed in on Doordash"
Claude will handle the rest.
Troubleshooting
Chrome not found
Install Chrome for your platform:
- macOS or Windows: https://www.google.com/chrome/
- Linux:
sudo apt install google-chrome-stable
Profile refresh
To refresh cookies from your main Chrome profile:
rm -rf .chrome-profile
Resources
优点
- 支持自然语言浏览器自动化
- 与Claude Code良好集成
- 支持各种自动化任务
- 用户友好的设置过程
缺点
- 需要安装Chrome
- 依赖于Anthropic API密钥
- 仅限于Claude Code环境
- 可能需要手动管理Cookie
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 browserbase.
