Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
Problem: “Failed to start Chrome CDP on port 18800”
OpenClaw’s browser control server fails to launch Chrome/Brave/Edge/Chromium with the error:Root cause
On Ubuntu (and many Linux distros), the default Chromium installation is a snap package. Snap’s AppArmor confinement interferes with how OpenClaw spawns and monitors the browser process. Theapt install chromium command installs a stub package that redirects to snap:
The profile appears to be in use by another Chromium processmeans Chrome found staleSingleton*lock files in the managed profile directory. OpenClaw removes those locks and retries once when the lock points at a dead or different-host process.Missing X server or $DISPLAYmeans a visible browser was explicitly requested on a host without a desktop session. By default, local managed profiles now fall back to headless mode on Linux whenDISPLAYandWAYLAND_DISPLAYare both unset. If you setOPENCLAW_BROWSER_HEADLESS=0,browser.headless: false, orbrowser.profiles.<name>.headless: false, remove that headed override, setOPENCLAW_BROWSER_HEADLESS=1, startXvfb, runopenclaw browser start --headlessfor a one-shot managed launch, or run OpenClaw in a real desktop session.
Solution 1: Install Google Chrome (Recommended)
Install the official Google Chrome.deb package, which is not sandboxed by snap:
~/.openclaw/openclaw.json):
Solution 2: Use Snap Chromium with Attach-Only Mode
If you must use snap Chromium, configure OpenClaw to attach to a manually-started browser:- Update config:
- Start Chromium manually:
- Optionally create a systemd user service to auto-start Chrome:
systemctl --user enable --now openclaw-browser.service
Verifying the Browser Works
Check status:Config reference
| Option | Description | Default |
|---|---|---|
browser.enabled | Enable browser control | true |
browser.executablePath | Path to a Chromium-based browser binary (Chrome/Brave/Edge/Chromium) | auto-detected (prefers default browser when Chromium-based) |
browser.headless | Run without GUI | false |
OPENCLAW_BROWSER_HEADLESS | Per-process override for local managed browser headless mode | unset |
browser.noSandbox | Add --no-sandbox flag (needed for some Linux setups) | false |
browser.attachOnly | Don’t launch browser, only attach to existing | false |
browser.cdpPort | Chrome DevTools Protocol port | 18800 |
browser.localLaunchTimeoutMs | Local managed Chrome discovery timeout | 15000 |
browser.localCdpReadyTimeoutMs | Local managed post-launch CDP readiness timeout | 8000 |
browser.localLaunchTimeoutMs when Chrome needs more time to expose its CDP HTTP
endpoint. Raise browser.localCdpReadyTimeoutMs when launch succeeds but
openclaw browser start still reports not reachable after start. Values must
be positive integers up to 120000 ms; invalid config values are rejected.
Problem: “No Chrome tabs found for profile=“user""
You’re using anexisting-session / Chrome MCP profile. OpenClaw can see local Chrome,
but there are no open tabs available to attach to.
Fix options:
- Use the managed browser:
openclaw browser start --browser-profile openclaw(or setbrowser.defaultProfile: "openclaw"). - Use Chrome MCP: make sure local Chrome is running with at least one open tab, then retry with
--browser-profile user.
useris host-only. For Linux servers, containers, or remote hosts, prefer CDP profiles.user/ otherexisting-sessionprofiles keep the current Chrome MCP limits: ref-driven actions, one-file upload hooks, no dialog timeout overrides, nowait --load networkidle, and noresponsebody, PDF export, download interception, or batch actions.- Local
openclawprofiles auto-assigncdpPort/cdpUrl; only set those for remote CDP. - Remote CDP profiles accept
http://,https://,ws://, andwss://. Use HTTP(S) for/json/versiondiscovery, or WS(S) when your browser service gives you a direct DevTools socket URL.