无头 Chromium 浏览器沙盒,可通过 Chrome DevTools Protocol (CDP) 控制。可搭配 OpenClaw 或其他需要浏览器自动化功能的服务使用。
Zeabur
Zeabur
Zeabur可通过 Chrome DevTools Protocol (CDP) 控制的无头 Chromium 浏览器。
同一个 Zeabur 项目中的其他服务可通过以下方式连接:
http://openclaw-sandbox-browser:9222
GET /json/version - 浏览器版本信息GET /json/list - 列出已打开的标签页GET /json/new?url=<url> - 打开新标签页方式一:将配置贴给 OpenClaw 复制以下配置并贴到 OpenClaw 对话中,请它帮您更新配置文件:
"browser": {
"enabled": true,
"attachOnly": true,
"defaultProfile": "remote",
"profiles": {
"remote": {
"cdpUrl": "http://openclaw-sandbox-browser:9222",
"color": "#FF4500"
}
}
}
示例提示词:"请将这个浏览器配置添加到我的 openclaw.json 文件中"
方式二:OpenClaw Web UI
remoteremotehttp://openclaw-sandbox-browser:9222#FF4500(选填)详细配置选项请参考官方文档。
部署完成后,从 OpenClaw 终端使用 curl 测试连线:
curl http://openclaw-sandbox-browser:9222/json/version
成功的话,您会看到类似以下的 JSON 响应:
{"Browser":"Chrome/...","Protocol-Version":"1.3",...}
以下日志中的错误信息是正常的,可以安全忽略:
Failed to connect to the bus - 容器内没有 D-Bus(正常现象)Failed to adjust OOM score - 权限限制(不影响功能)DEPRECATED_ENDPOINT - 无头模式不需要 Google Cloud Messaging