TopRank Skills

Home / Claw Skills / Git / GitHub / Wsl Chrome Cdp
Official OpenClaw rules 36%

Wsl Chrome Cdp

wsl chrome cdp WSL2 访问 Windows Chrome 浏览器

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Wsl Chrome Cdp 技能。 若已安装,则直接安装 Wsl Chrome Cdp 技能。

Overview

Skill Key
animaiontj/wsl-chrome-cdp
Author
animaiontj
Source Repo
openclaw/skills
Version
-
Source Path
skills/animaiontj/wsl-chrome-cdp
Latest Commit SHA
a529a18b2d7c66fd7abfff7e13d39a061f98a59d

Extracted Content

SKILL.md excerpt

# wsl-chrome-cdp - WSL2 访问 Windows Chrome 浏览器

**版本:** 1.0.0  
**作者:** 杏子  
**创建日期:** 2026-03-11  
**适用系统:** Windows + WSL2 + OpenClaw

---

## 📋 技能描述

解决 WSL2 环境中无法访问 Windows Chrome 浏览器的问题,实现 OpenClaw browser 工具对 Windows Chrome 的远程控制。

**核心功能:**
- ✅ 自动检测 Chrome 是否运行
- ✅ 自动启动 Chrome 调试模式
- ✅ 自动验证 CDP 连接
- ✅ 完全无需手动操作

---

## 🚀 使用方法

### **全自动模式(推荐)**

**安装技能后,无需任何配置!**

**在 OpenClaw 对话中直接说:**

```
打开百度
```

```
访问 GitHub
```

```
帮我截图
```

**杏子会自动:**
1. ✅ 检测 Chrome 是否运行
2. ✅ 如果没运行,自动启动 Chrome 调试模式
3. ✅ 验证 CDP 连接
4. ✅ 执行你的请求

**完全无需手动操作!**

---

### **手动运行(可选)**

```bash
# 一键启用浏览器
./skills/wsl-chrome-cdp/enable-browser.sh
```

---

## 📁 文件结构

```
wsl-chrome-cdp/
├── SKILL.md                          # 技能说明(本文件)
├── README.md                         # 快速入门
├── enable-browser.sh                 # 全自动启用脚本
├── scripts/
│   └── start-chrome-debug.bat        # Windows 备用启动脚本
└── docs/
    └── troubleshooting.md            # 故障排查指南
```

---

## 🔍 故障排查

### **问题 1:Chrome 启动失败**

**症状:** 脚本显示 "Chrome CDP 启动失败"

**解决:**
```bash
# 1. 检查 Chrome 是否安装
ls -la "/mnt/c/Program Files/Google/Chrome/Application/chrome.exe"

# 2. 手动启动 Chrome 调试模式
/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -Command \
  'Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe" \
   -ArgumentList "--remote-debugging-port=9222","--user-data-dir=C:\Users\$env:USERNAME\AppData\Local\Google\Chrome\Debug","--no-first-run"'
```

---

### **问题 2:CDP 连接超时**

**症状:** `curl http://127.0.0.1:9222/json/version` 超时

**解决:**
```bash
# 1. 取消代理
unset http_proxy https_proxy

# 2. 尝试 Windows IP
WINDOWS_IP=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}')
curl http://$WINDOWS_IP:9222/json...

README excerpt

# WSL Chrome CDP - 快速入门

**让 WSL2 无缝访问 Windows Chrome 浏览器**

**全自动模式:无需手动操作!**

---

## 🚀 30 秒开始

### **安装技能**

```bash
# 从 ClawHub 安装(待发布)
openclaw skills install wsl-chrome-cdp

# 或手动安装
git clone https://github.com/openclaw/wsl-chrome-cdp.git ~/.openclaw/workspace/skills/wsl-chrome-cdp
```

### **使用**

**在 OpenClaw 对话中直接说:**

```
打开百度
```

**就这么简单!**

---

## 🔧 手动启用(可选)

```bash
# 一键启用浏览器
./skills/wsl-chrome-cdp/enable-browser.sh
```

**输出示例:**

```
=========================================
WSL Chrome CDP - 全自动启用
作者:杏子 🍑
=========================================

[INFO] 检查 Chrome CDP 连接...
[✓] Chrome CDP 已就绪
[INFO] Chrome 版本:Chrome/145.0.7632.160

=========================================
[✓] 浏览器已就绪,可以使用!
=========================================
```

---

## 📚 文档

| 文档 | 说明 |
|------|------|
| [SKILL.md](SKILL.md) | 完整技能说明 |
| [故障排查](docs/troubleshooting.md) | 详细排查指南 |

---

## 💡 使用示例

**配置成功后,在 OpenClaw 中:**

```
打开 GitHub
截图
点击登录按钮
填写表单
提取页面内容
```

---

## 🍑 关于

**作者:** 杏子  
**版本:** 1.0.0  
**创建日期:** 2026-03-11

**使用问题?** 查看 [SKILL.md](SKILL.md) 或 [故障排查](docs/troubleshooting.md)

---

*快速入门版本:1.0.0 | 最后更新:2026-03-11*

Related Claw Skills

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

capt-marbles

geo-optimization

★ 1

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.

carlulsoe

parakeet-stt

★ 0

Local speech-to-text with NVIDIA Parakeet TDT 0.6B v3 (ONNX on CPU). 30x faster than Whisper, 25 languages, auto-detection, OpenAI-compatible API. Use when transcribing audio files, converting speech to text, or processing voice recordings locally without cloud APIs.

carlzhao007

feishu-process-feedback

★ 0

飞书消息自动处理与进度反馈技能。安装后后台运行,监听飞书任务消息并自动创建独立进程处理。 在处理前后发送实时进度反馈(任务确认、进度百分比、完成通知)。 支持任务类型识别、智能解析、错误重试、并发控制、状态持久化。 使用场景:飞书自动化工作流、任务进度追踪、批量任务处理、需要实时反馈的场景。

cartoonitunes

bottyfans

★ 0

BottyFans agent skill for autonomous creator monetization. Lets AI agents register, build a profile, publish posts (public, subscriber-only, or pay-to-unlock), upload media, accept USDC subscriptions and tips on Base, send and receive DMs, track earnings, and appear on the creator leaderboard. Use this skill when an agent needs to monetize content, interact with fans, manage a creator profile, handle payments in USDC, or operate as an autonomous creator on the BottyFans platform.

camopel

arxivkb

★ 0

Local arXiv paper manager with semantic search. Crawls arXiv categories, downloads PDFs, chunks content, and indexes with FAISS + Ollama embeddings. No cloud API keys required — everything runs locally.