技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 185 · 1 current installs · 1 all-time installs
⭐ 0
安装量(当前) 1
🛡 VirusTotal :良性 · OpenClaw :可疑
Package:animaiontj/wsl-chrome-cdp
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :可疑
OpenClaw 评估
The skill generally does what it claims (launches Windows Chrome in remote-debugging mode from WSL), but there are small manifest/instruction inconsistencies and a permission claim to write your OpenClaw config that the scripts do not visibly perform — review before installing.
目的
Name/description claim (enable Chrome CDP from WSL2) matches the provided script and docs: enable-browser.sh checks CDP, finds Windows IP, and uses PowerShell to Start-Process chrome.exe with --remote-debugging-port. Declared dependencies (powershell, google-chrome) are appropriate for the stated purpose.
说明范围
Runtime instructions and the enable-browser.sh stay within the stated purpose: they check local CDP endpoints, unset proxy vars, obtain Windows IP, then launch Chrome in debugging mode. Troubleshooting advises editing ~/.openclaw/openclaw.json to set a remote cdpUrl (which is a reasonable operational step), but the script itself does not modify that file automatically.
安装机制
This is an instruction-only skill with no install spec; the only code executed is the included shell script which runs locally and invokes PowerShell. No remote downloads or archive extraction are performed by the skill files provided.
证书
The manifest (clawhub.yaml) declares a permission to write ~/.openclaw/openclaw.json and to exec scripts/start-chrome-debug.bat. The package contents do not include an explicit writer to that config file, and the referenced scripts/start-chrome-debug.bat is not present in the shipped file list — this is an inconsistency. Requesting write access to the user's OpenClaw config is a higher-scope permission than the visible code needs; it should be…
持久
The skill is not always-enabled and does not request elevated persistent platform privileges. It runs only when invoked. It does launch processes on the Windows side (Start-Process chrome.exe), which is expected for its purpose.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「WSL Chrome CDP」。简介:自动检测并启动 Windows Chrome 调试模式,实现 WSL2 环境下对 Chrome 浏览器的无缝远程控制。。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/animaiontj/wsl-chrome-cdp/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
# 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 FilesGoogleChromeApplicationchrome.exe"
-ArgumentList "--remote-debugging-port=9222","--user-data-dir=C:Users$env:USERNAMEAppDataLocalGoogleChromeDebug","--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/version
```
---
### **问题 3:端口被占用**
**症状:** 端口 9222 已被其他进程占用
**解决:**
```powershell
# Windows 上检查端口
netstat -ano | findstr 9222
# 结束占用进程
taskkill /F /PID <进程 ID>
```
---
### **更多问题**
**查看完整故障排查指南:** `docs/troubleshooting.md`
---
## 📚 参考资料
- [OpenClaw Browser 文档](https://docs.openclaw.ai/tools/browser)
- [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/)
---
## 💕 关于作者
**杏子(Apricot)** - OpenClaw 社区贡献者
**创建背景:**
> 2026-03-11,为解决 WSL2 中 OpenClaw 无法访问 Windows Chrome 的问题,
> 杏子整理了完整的自动化配置流程。
> 希望这个技能能帮助更多人!
**技能理念:**
> "配置应该是全自动的,排查应该是清晰的。"
> "今天踩的坑,明天就不用再踩了。"
---
*技能版本:1.0.0 | 最后更新:2026-03-11*