← 返回 Skills 市场
pe4atnik

Win11 Visible Browser Automation

作者 Pe4atnik · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
70
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install win11-visible-browser
功能描述
Control, diagnose, or repair a visible Windows 11 Edge/Chrome browser from OpenClaw running in WSL2 via CDP. Use when browser automation should share the use...
使用说明 (SKILL.md)

Win11 Visible Browser Automation

Use this skill when OpenClaw runs in WSL2/Linux but should work in a visible Windows 11 Edge/Chrome browser that the human can watch, use, and take over.

This is for legitimate assisted browsing in a normal visible browser session. Do not use it to bypass site protections, automate prohibited activity, or hide automation from the user.

Safety gate

Before state-changing actions, state what/where/risk/rollback and wait for explicit confirmation. State-changing actions include editing OpenClaw config, creating Scheduled Tasks, changing Windows firewall/portproxy, starting/stopping browser processes, writing scripts outside the workspace, sending forms/messages, purchases, or account actions.

Positioning

Prefer visible browser automation when the task benefits from:

  • existing tabs already open in the user's browser;
  • cookies, logins, extensions, and normal browser state;
  • visible step-by-step human oversight;
  • manual human help for login, captcha, 2FA, consent screens, account pickers, file dialogs, or sensitive approvals;
  • sites that do not work well through web_fetch or a fresh/headless browser.

Use safe wording: this skill gives the agent access to a normal visible browser while keeping the human in the loop. It does not try to bypass anti-bot systems.

Recommended architecture

Use a dedicated Windows browser profile by default. Use the user's personal browser profile only when the user explicitly wants existing personal cookies/logins/tabs.

OpenClaw Gateway in WSL2
  → OpenClaw browser profile (example: win-edge)
  → http://WINDOWS_WSL_GATEWAY_IP:9223
  → Windows portproxy/firewall relay
  → 127.0.0.1:9222
  → visible Windows 11 Edge/Chrome profile

Recommended defaults:

  • OpenClaw browser profile: win-edge or win-chrome
  • Windows CDP local port: 9222
  • WSL-visible relay port: 9223
  • Dedicated browser profile: C:\ProgramData\OpenClaw\browser-profile
  • Startup/repair task: OpenClaw-Start-Windows-Browser-CDP

For implementation details, read {baseDir}/references/setup.md.

Diagnose first

Run read-only checks before repair:

openclaw browser profiles
openclaw browser --browser-profile win-edge doctor
WIN_IP=$(ip route | awk '/default/ {print $3; exit}')
curl -sS --max-time 5 "http://$WIN_IP:9223/json/version"

Or use the bundled helper:

{baseDir}/scripts/check-win11-visible-browser.sh win-edge

If CDP works, smoke-test real browser control:

openclaw browser --browser-profile win-edge open https://example.com
openclaw browser --browser-profile win-edge snapshot --format aria

Repair order

Repair in layers and stop when the layer works:

  1. Confirm Windows Edge/Chrome is installed and can run visibly.
  2. Start the browser with CDP on Windows localhost, usually 127.0.0.1:9222.
  3. Expose it to WSL with a Windows relay/portproxy, usually 0.0.0.0:9223 → 127.0.0.1:9222.
  4. Restrict Windows firewall to the current WSL/Hyper-V CIDR, not the whole LAN or Internet.
  5. Configure an OpenClaw browser profile with cdpUrl pointing to the WSL-visible Windows endpoint and attachOnly: true.
  6. Reload/restart Gateway if the profile is not visible.
  7. Run doctor and a page/snapshot smoke test.

The bundled Windows repair script is {baseDir}/scripts/start-win11-browser-cdp-for-openclaw.ps1. Treat it as a template: review paths, profile name, browser path, ports, and firewall rule names before installing or running it.

Common blockers

  • No supported browser found: WSL cannot launch Windows Edge/Chrome as a local Linux browser; use remote CDP.
  • Windows CDP works but WSL curl times out: fix portproxy/firewall/WSL subnet.
  • Browser profile not found: OpenClaw config not loaded; reload/restart Gateway.
  • WSL gateway IP changed: update browser.profiles.\x3Cname>.cdpUrl or rerun the documented repair flow.
  • Existing tabs/logins are missing: you are probably using a dedicated profile, not the user's real profile. Ask before switching profiles.

Evidence to report

When done, report:

  • browser profile name and CDP URL tested;
  • openclaw browser --browser-profile \x3Cprofile> doctor result;
  • /json/version result from WSL;
  • Windows task/log status if relevant;
  • smoke-test URL opened and snapshot result;
  • any remaining manual human step needed.
安全使用建议
Use this only if you need OpenClaw in WSL2 to control a visible Windows browser. Prefer the dedicated browser profile, review the PowerShell script before running it elevated, verify CDP is restricted to WSL/Hyper-V only, and require explicit confirmation before any account, payment, form, firewall, portproxy, configuration, or scheduled-task change.
功能分析
Type: OpenClaw Skill Name: win11-visible-browser Version: 1.0.0 The skill bundle enables remote control of a Windows browser from WSL2 via the Chrome DevTools Protocol (CDP) and automates system-level network modifications. Specifically, the PowerShell script 'start-win11-browser-cdp-for-openclaw.ps1' modifies Windows Firewall rules and configures a network portproxy to expose the browser's debugging port. While the implementation includes defensive measures such as restricting firewall access to the WSL subnet and providing detailed safety instructions in 'SKILL.md', the inherent risk of automated host-level security configuration and remote browser manipulation warrants a suspicious classification.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
The stated purpose matches the included instructions and scripts: connecting OpenClaw in WSL2 to a visible Windows Edge/Chrome browser via CDP. The capability is sensitive because CDP can control a browser profile with tabs, cookies, logins, and account state.
Instruction Scope
The instructions explicitly require confirmation before state-changing actions, including browser process changes, firewall/portproxy changes, forms, purchases, messages, and account actions.
Install Mechanism
There is no automatic install spec. The included Bash check and PowerShell repair script are user-directed; the PowerShell script should be reviewed before elevated execution because it changes portproxy and firewall state.
Credentials
The Windows/WSL2 CDP relay and dedicated browser profile are proportionate to the purpose. The registry metadata has no OS restriction even though the skill is Windows 11/WSL2-specific, so it may not be useful on other systems.
Persistence & Privilege
The artifacts discuss firewall/portproxy changes and an optional startup/repair scheduled task. These are disclosed and rollback guidance is included, but users should only create persistent task or network rules intentionally.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install win11-visible-browser
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /win11-visible-browser 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: control and troubleshoot a visible Windows 11 Edge/Chrome browser from OpenClaw running in WSL2 via CDP, with human-in-the-loop support for existing tabs, logins, captcha, 2FA, and manual takeover.
元数据
Slug win11-visible-browser
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Win11 Visible Browser Automation 是什么?

Control, diagnose, or repair a visible Windows 11 Edge/Chrome browser from OpenClaw running in WSL2 via CDP. Use when browser automation should share the use... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 70 次。

如何安装 Win11 Visible Browser Automation?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install win11-visible-browser」即可一键安装,无需额外配置。

Win11 Visible Browser Automation 是免费的吗?

是的,Win11 Visible Browser Automation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Win11 Visible Browser Automation 支持哪些平台?

Win11 Visible Browser Automation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Win11 Visible Browser Automation?

由 Pe4atnik(@pe4atnik)开发并维护,当前版本 v1.0.0。

💬 留言讨论