Rechercher

PythonReactSEOPDF
OpenClaw

Openclaw Browser Auto

OpenClaw 浏览器自动化配置

happyfee0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install happyfee/openclaw-browser-auto

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

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.attachOnly true=不尝试启动本地浏览器,只连接远程
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服务配置

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/happyfee/openclaw-browser-auto
Version
—
Commit
62182be427e3c191c6ef47fd4c650ff178b3a332
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

Contenu extrait

SKILL.md
# OpenClaw 浏览器自动化配置

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

## 适用场景

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

## 配置步骤

### 1. 启动CDP浏览器容器

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

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

验证CDP可用:
```bash
curl http://127.0.0.1:9222/json/version
```

### 2. 配置OpenClaw

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

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

### 3. 重启Gateway

```bash
systemctl --user restart openclaw-gateway
```

### 4. 验证

```bash
openclaw browser status
```

## 关键配置项

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

## 云服务方案

### Browserless.io(付费)
```json5
{
  "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服务配置

Skills associés

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

OpenClaw

0xarchive

0xfantommenace

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...

OpenClaw

1sec-security

cutmob

Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...