第9章 · 免费预计阅读 1 分钟
浏览器控制
浏览器控制
OpenClaw 支持两种浏览器模式:
openclaw托管浏览器(自动化任务)chrome扩展接管(使用你现有登录态)
基础配置
{
browser: {
enabled: true,
defaultProfile: "openclaw",
profiles: {
openclaw: { cdpPort: 18800, color: "#FF4500" },
},
},
}
CLI 常用命令
openclaw browser --browser-profile openclaw status
openclaw browser --browser-profile openclaw start
openclaw browser --browser-profile openclaw open https://example.com
openclaw browser --browser-profile openclaw screenshot
openclaw browser --browser-profile openclaw snapshot
Chrome Extension 使用流程
- 安装 OpenClaw Browser Relay 扩展。
- 打开目标网页,点击扩展图标,使 Badge 显示 ON。
- 在聊天中直接让 Agent 执行点击、输入、读取等任务。
下一步
继续《高级功能》,结合 cron 与浏览器实现自动化。
学完这章想实战?加入社群获得 $50 算力额度 + 实时答疑
加入社群 ¥99