Install
openclaw skills install @shenzheke/openclaw-browser-wsl-attachAutomatically prepare, repair, and attach an OpenClaw-controlled Chromium browser in WSL or Linux environments where OpenClaw runs as root or in a headless session. Use when the user asks to configure browser control, fix browser startup failures, enable OpenClaw browser automation, repair CDP/browser issues, or start a reusable attachOnly Chromium session for screenshots, web automation, login flows, clicking, typing, or page extraction.
openclaw skills install @shenzheke/openclaw-browser-wsl-attachPrepare a stable OpenClaw browser session by using Chromium in attachOnly mode with remote debugging enabled. Prefer this workflow in WSL, headless Linux, or root-run OpenClaw environments where direct browser launch is flaky.
attachOnly mode.python3 scripts/configure-browser.py and restart the gateway.18800.curl http://127.0.0.1:18800/json/version and openclaw browser status.Run these checks first:
openclaw browser status
command -v chromium || command -v chromium-browser || command -v google-chrome
curl -s http://127.0.0.1:18800/json/version
Interpretation:
openclaw browser status shows running: true, the browser is ready.attachOnly.browser.executablePath to a valid Chromium-based browser.Use this browser config in ~/.openclaw/openclaw.json for WSL/root/headless Linux:
"browser": {
"enabled": true,
"executablePath": "/usr/bin/chromium",
"headless": true,
"noSandbox": true,
"attachOnly": true
}
Notes:
noSandbox: true when Chromium runs as root.attachOnly: true when OpenClaw-managed launch times out or is unreliable.browser: unknown and detectedBrowser: custom are acceptable if running: true and CDP works.Use the bundled scripts in this order:
python3 scripts/configure-browser.py
# restart gateway after config changes
bash scripts/start-browser.sh
bash scripts/healthcheck.sh
What each script does:
configure-browser.py: updates ~/.openclaw/openclaw.json for WSL/root/headless attachOnly mode and writes a timestamped backupstart-browser.sh: creates the OpenClaw browser profile directory, kills stale Chromium on port 18800 when needed, starts headless Chromium, and prints verification outputhealthcheck.sh: shows binary, status, CDP, process, and environment diagnosticsHealthy state usually looks like:
curl http://127.0.0.1:18800/json/version returns JSONopenclaw browser status shows running: trueopenclaw browser tabs worksOnce healthy, continue with OpenClaw browser tooling normally.
If browser control breaks later:
openclaw browser statusbash scripts/start-browser.shbash scripts/healthcheck.sh/tmp/openclaw-browser.log18800 is not blocked by another processAfter setup, the user can simply ask for browser tasks in natural language, for example:
Read references/troubleshooting.md when browser attach still fails after the standard workflow.
Prefer this skill whenever the task is about making OpenClaw browser automation reliable on this machine, not just using the browser tool once.