Browser Troubleshooting (Linux)
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:
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 only attach to a browser you launch manually:- Update config:
- Launch Chromium manually:
- (Advanced) Set up a systemd service or cron job to auto-start the above.
Solution 3: Use WSL2 (if on Windows)
If you are on Windows, using WSL2 (Windows Subsystem for Linux) can simplify browser setup:Verify the browser is working
Usecurl to test the local API:
Common issue: “Chrome extension relay is running, but no tab is connected”
This means you are using thechrome profile (extension relay mode) and the system is waiting for the extension to connect a tab.
- Fix 1: Use the managed browser instead:
openclaw browser start --browser-profile openclaw - Fix 2: Install the Chrome extension, open a tab, and click the extension icon to attach.