ClawKit LogoClawKit
Troubleshooting Hub

Fix Any OpenClaw Error

Find your error below, or paste it into the Error Doctor for instant diagnosis.

Don't Know Your Error?

Paste your full error message into the Error Doctor — it fuzzy-matches against 30+ known issues and gives you the exact fix commands.

Open Error Doctor

All Troubleshooting Guides

Device Token Mismatch

Fix "disconnected (1008): unauthorized: device token mismatch". Rotate tokens, kill zombie processes.

disconnected (1008): unauthorized: device token mismatch

Windows Gateway Errors

Full Windows troubleshooting: npm install failures, zombie processes, port conflicts, crash loops.

PSSecurityException / EBUSY / spawn docker ENOENT

Connection Refused (ECONNREFUSED)

Agent not responding on localhost:3000. Fix IPv4/IPv6 binding and port issues.

ECONNREFUSED 127.0.0.1:3000

JSON Parse Errors

Fix trailing commas, unescaped backslashes, and invalid JSON in config files.

SyntaxError: Unexpected token

API Key Problems (401 / 429 / 404)

Invalid key, rate limits exceeded, or model not found. Debug provider authentication.

401 Unauthorized / 429 Rate Limit

Docker macOS Errors

EACCES permission denied, token mismatch in containers, Chrome not found in Docker.

EACCES: permission denied, mkdir '/Users'

Ollama 5-Minute Timeout

Generation cuts at exactly 300 seconds. Fix the undici headersTimeout and retry loop.

UND_ERR_HEADERS_TIMEOUT / 500 error at 5m0s

Message Ordering Conflict

Bot goes silent or shows "Message ordering conflict". Fix unsupported developer role.

Message ordering conflict / ROLE_UNSPECIFIED

spawn git ENOENT

Git not installed or not in PATH. One-command fix for Windows, macOS, and Linux.

npm error syscall spawn git / ENOENT

PowerShell Scripts Blocked

Fix PSSecurityException "running scripts is disabled". Use npm.cmd or set execution policy.

npm.ps1 cannot be loaded because running scripts is disabled

Windows Basics (Paths & Firewall)

Path escaping, firewall rules, Node.js PATH issues, and Docker WSL2 setup.

Windows path / firewall / Node.js not found

Browser Control Service Timeout

Fix "Can't reach browser control service (timed out after 20000ms)". Hung CDP, stray Chromium, port 18800 conflicts.

Can't reach the openclaw browser control service

Gateway Lock Timeout

Fix "gateway already running; lock timeout". Stale lock files in Docker, PID reuse, manual cleanup.

gateway already running (pid NNN); lock timeout after 5000ms

Pairing Required (1008)

Fix "disconnected (1008): pairing required". Approve devices, fix Docker NAT, configure LAN access.

disconnected (1008): pairing required

Gateway Token Mismatch

Fix "gateway token mismatch (set gateway.remote.token to match gateway.auth.token)". Docker, remote CLI, env var override.

unauthorized: gateway token mismatch

Device Identity Required (1008)

Fix "device identity required". LAN access needs HTTPS or token URL. Secure context requirement for Control UI.

disconnected (1008): device identity required

spawn docker ENOENT

Docker not installed or not in PATH. Install Docker or disable sandbox mode to fix immediately.

spawn docker ENOENT / agent failed before reply

Error Not Listed?

Paste your error into the Doctor tool or search existing GitHub issues.

Need Help?

Try our automated tools to solve common issues instantly.