OpenClaw浏览器自动化配置

# OpenClaw 浏览器自动化配置

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "OpenClaw浏览器自动化配置" with this command: npx skills add HappyFee/openclaw-browser-auto

OpenClaw 浏览器自动化配置

配置OpenClaw连接远程Chrome/CDP浏览器进行自动化操作。

适用场景

  • 连接远程服务器的Chrome浏览器
  • 使用Docker容器运行的无头浏览器
  • 连接browserless.io云服务

配置步骤

1. 启动CDP浏览器容器

推荐使用 chromedp/headless-shell(轻量且保持会话):

docker run -d --name browser-auto -p 9222:9222 --shm-size=512m chromedp/headless-shell:latest

验证CDP可用:

curl http://127.0.0.1:9222/json/version

2. 配置OpenClaw

~/.openclaw/openclaw.json 中添加browser配置:

{
  "browser": {
    "enabled": true,
    "defaultProfile": "remote-chrome",
    "attachOnly": true,
    "profiles": {
      "remote-chrome": {
        "cdpUrl": "http://127.0.0.1:9222",
        "color": "#00AA00"
      }
    }
  }
}

3. 重启Gateway

systemctl --user restart openclaw-gateway

4. 验证

openclaw browser status

关键配置项

配置项说明
browser.enabled启用浏览器
browser.defaultProfile默认使用的浏览器配置名
browser.attachOnlytrue=不尝试启动本地浏览器,只连接远程
profiles.<name>.cdpUrl远程CDP地址

云服务方案

Browserless.io(付费)

{
  "browser": {
    "defaultProfile": "browserless",
    "profiles": {
      "browserless": {
        "cdpUrl": "https://production-sfo.browserless.io?token=<API_KEY>"
      }
    }
  }
}

常见问题

  1. 端口被占用 - 设置 attachOnly: true
  2. 标签页丢失 - 使用 chromedp/headless-shell 而非 browserless/chrome
  3. 环境变量不生效 - 需要修改systemd服务配置

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Virtual Desktop Pro v4 -- Universal Browser Execution

Persistent authenticated browser for OpenClaw via kasmweb/chrome Docker sidecar. Principal logs in once via noVNC — sessions saved permanently in Docker volu...

Registry SourceRecently Updated
390Profile unavailable
Automation

WSL Chrome CDP

自动检测并启动 Windows Chrome 调试模式,实现 WSL2 环境下对 Chrome 浏览器的无缝远程控制。

Registry SourceRecently Updated
1130Profile unavailable
Automation

AutoClaw Browser Automation

Complete browser automation skill with MCP protocol support and Chrome extension

Registry SourceRecently Updated
3640Profile unavailable
Automation

Browser Cash

Spin up unblocked browser sessions via Browser.cash for web automation. Sessions bypass anti-bot protections (Cloudflare, DataDome, etc.) making them ideal for scraping and automation.

Registry SourceRecently Updated
3.2K3Profile unavailable