Skip to main content

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. The apt install chromium command installs a stub package that redirects to snap:
This is NOT a real browser — it’s just a wrapper. Install the official Google Chrome .deb package, which is not sandboxed by snap:
Then update your OpenClaw config (~/.openclaw/openclaw.json):
Then restart the gateway and try again:

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:
  1. Update config:
  1. Launch Chromium manually:
  1. (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

Use curl to test the local API:

Common issue: “Chrome extension relay is running, but no tab is connected”

This means you are using the chrome 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.