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):

Solution 2: Use Snap Chromium with Attach-Only Mode

If you must use snap Chromium, configure OpenClaw to attach to a manually-started browser:
  1. Update config:
  1. Start Chromium manually:
  1. Optionally create a systemd user service to auto-start Chrome:
Enable with: systemctl --user enable --now openclaw-browser.service

Verifying the Browser Works

Check status:
Test browsing:

Config Reference

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

You’re using the chrome profile (extension relay). It expects the OpenClaw browser extension to be attached to a live tab. Fix options:
  1. Use the managed browser: openclaw browser start --browser-profile openclaw (or set browser.defaultProfile: "openclaw").
  2. Use the extension relay: install the extension, open a tab, and click the OpenClaw extension icon to attach it.
Notes:
  • The chrome profile uses your system default Chromium browser when possible.
  • Local openclaw profiles auto-assign cdpPort/cdpUrl; only set those for remote CDP.