Paste the error line, or a whole block of log. The lookup matches it against 26 messages that OpenClaw 2026.11.9 prints, copied from its source code, and tells you what the message means, the commands that fix it, and the full guide on this site.
Remove tokens and passwords before you paste. The lookup runs in your browser. It sends no text anywhere and does not put your text in the page address.
1008 close code is a weak match: when the reason after it is also known, the reason wins.error: invalid argument lines come from llama.cpp, not OpenClaw: use the llama.cpp command checker. Your own version is the final word: openclaw --version and openclaw logs --follow.| OpenClaw says | Fix | Guide |
|---|---|---|
Missing config. Run `openclaw setup` or set gateway.mode=local (or pass --allow-unconfigured).src/cli/gateway-cli/pre-bootstrap.ts | openclaw setupopenclaw config set gateway.mode local | Missing config: the gateway found no config file |
Gateway start blocked: existing config is missing gateway.mode. Treat this as suspicious or clobbered config.src/cli/gateway-cli/pre-bootstrap.ts | openclaw onboard --mode localopenclaw config set gateway.mode local | Gateway start blocked: gateway.mode is missing |
Gateway start blocked: set gateway.mode=local (current: remote) or pass --allow-unconfigured.src/cli/gateway-cli/pre-bootstrap.ts | openclaw config get gateway.remote.urlopenclaw config set gateway.mode local | Gateway start blocked: this machine is set to remote mode |
refusing to bind gateway to <host>:<port> without auth (set gateway.auth.token/password, or set OPENCLAW_GATEWAY_TOKEN/OPENCLAW_GATEWAY_PASSWORD ...)src/gateway/server-runtime-config.ts | openclaw doctor --generate-gateway-tokenopenclaw config get gateway.bind | Refusing to bind the gateway without auth |
Gateway already running locally. Stop it (openclaw gateway stop) or use a different port.src/infra/ports-format.ts, src/gateway/server/http-listen.ts | openclaw gateway statusopenclaw gateway stoplsof -nP -iTCP:18789 -sTCP:LISTEN | Port in use: another gateway is already listening |
timed out waiting for gateway port 127.0.0.1:18789src/gateway/gateway-port.test-support.ts | openclaw gateway statusopenclaw logs --followopenclaw config get gateway.remote.url | Timed out waiting for the gateway port |
Multiple agents are configured, but this operation has no explicit owner. Select an agent explicitly; CLI callers can pass --agent <id>, channels can add a binding, and ambient services can set their agentId target.src/agents/agent-scope-config.ts | openclaw agents listopenclaw agent --agent <id> --message "..." | Multiple agents, no explicit owner |
SYSTEM_RUN_DENIEDsrc/agents/bash-tools.exec-host-node-failure.ts | openclaw approvals get | SYSTEM_RUN_DENIED: the exec policy refused the command |
| OpenClaw says | Fix | Guide |
|---|---|---|
unauthorized: gateway token missing (paste in OpenClaw settings or openclaw doctor --generate-gateway-token; restart)src/gateway/server/ws-connection/auth-messages.ts | openclaw config get gateway.auth.tokenopenclaw doctor --generate-gateway-token | Unauthorized: gateway token missing |
unauthorized: gateway token mismatch (set gateway.remote.token to match gateway.auth.token)src/gateway/server/ws-connection/auth-messages.ts | openclaw config get gateway.auth.tokenopenclaw config set gateway.remote.token <the gateway token>openclaw gateway status | Unauthorized: gateway token mismatch |
unauthorized: gateway token not configured on gateway (set gateway.auth.token)src/gateway/server/ws-connection/auth-messages.ts | openclaw doctor --generate-gateway-tokenopenclaw gateway restart | Gateway token not configured on the gateway |
gateway credential is a redaction sentinel (run openclaw doctor --fix on the Gateway, then restart and re-pair)src/gateway/server/ws-connection/auth-messages.ts | openclaw doctor --fixopenclaw gateway restart | Gateway credential is a redaction sentinel |
unauthorized: gateway password mismatch (set gateway.remote.password to match gateway.auth.password)src/gateway/server/ws-connection/auth-messages.ts | openclaw config get gateway.auth.modeopenclaw config set gateway.remote.password <the gateway password> | Unauthorized: gateway password missing or mismatch |
unauthorized: device token mismatch (rotate/reissue device token)src/gateway/server/ws-connection/auth-messages.ts | openclaw devices listopenclaw devices approve <requestId> | Device token rejected or mismatched |
unauthorized: setup code invalid, expired, revoked, or already used (create a new code; review `openclaw devices list`)src/gateway/server/ws-connection/auth-messages.ts | openclaw devices list | Setup code invalid, expired or used |
gateway closed (1008): pairing requireddocs/gateway/troubleshooting/config-validation-and-probes.md | openclaw devices listopenclaw devices approve <requestId>openclaw pairing list --channel <channel> | Pairing required |
web app requires device identity (use HTTPS or localhost secure context)src/gateway/server/ws-connection/connect-auth.ts | ssh -N -L 18789:127.0.0.1:18789 user@your-server | Device identity required (HTTP, not localhost) |
origin not allowed (use gateway.publicOrigin with allowedOrigins omitted, or allow this origin in gateway.controlUi.allowedOrigins)src/gateway/server/ws-connection/connect-admission.ts | openclaw config set gateway.publicOrigin https://your.domain | Origin not allowed |
disconnected (1008): <reason>src/gateway/server/ws-connection/connect-admission.ts | openclaw logs --follow | Disconnected (1008) |
unauthorized: too many failed authentication attempts (retry later)src/gateway/server/ws-connection/auth-messages.ts | openclaw logs --follow | Too many failed authentication attempts |
| OpenClaw says | Fix | Guide |
|---|---|---|
Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.src/shared/assistant-error-format.ts | /newollama ps | Context overflow: prompt too large for the model |
out of memory / killed / failed to allocate(model server output, not OpenClaw) | ollama psnvidia-smi | Out of memory: the model and its context do not fit |
| OpenClaw says | Fix | Guide |
|---|---|---|
model not allowed: <provider/model>src/agents/model-selection-shared.ts | openclaw config get agents.defaults.modelPolicy.allow | Model not allowed |
This model was not found. Choose another model in the OpenClaw app or run `openclaw configure`.src/agents/failover/assistant-request-failure-copy.ts | openclaw configureollama list | This model was not found |
The agent run failed before producing a reply.packages/gateway-protocol/src/gateway-error-details.ts | openclaw logs --follow | The agent run failed before producing a reply |
| OpenClaw says | Fix | Guide |
|---|---|---|
openclaw: command not founddocs/install/node.md | npm prefix -gexport PATH="$(npm prefix -g)/bin:$PATH" | openclaw: command not found / not recognized |
The gateway found no config file, so it will not start. Run openclaw setup once on the machine that runs the gateway, or set gateway.mode to local. In Docker, mount the same config folder every time; a new container with an empty state folder prints this again.
The browser has no token saved for this gateway URL. Paste the gateway token (openclaw config get gateway.auth.token) in OpenClaw settings and reload. Generate a new one with openclaw doctor --generate-gateway-token only if no token is set, then restart the gateway.
Missing means the client sent no token. Mismatch means it sent one the gateway does not have: the token was regenerated, a remote client holds an old one, or a second gateway on the same port answers with its own config.
1008 is the WebSocket "policy violation" close code. The gateway uses it when it refuses a client: missing or wrong auth, pairing not approved, origin not allowed, or repeated unauthorized calls. The text after 1008 names the reason; paste the whole line into the lookup.
npm's global bin folder is not on your PATH. Run npm prefix -g, add that folder's bin to PATH in ~/.zshrc or ~/.bashrc, and open a new terminal. On Windows add the folder npm config get prefix prints to your user PATH and reopen PowerShell.