Gateway Won’t Start
Symptom:openclaw gateway fails with “port already in use” or “already running”
Fix: Kill the old process and restart:
ws client ready if a channel (Feishu/Discord) is configured.
Gateway Running but Bot Doesn’t Reply
Symptom: Gateway logs showws client ready but no messages arrive from Feishu/Discord.
Check channel status:
lastInboundAt — if it’s null, no messages have ever been received.
Common causes:
| Cause | Fix |
|---|---|
Feishu: im.message.receive_v1 event not subscribed | Add it in Feishu Developer Console → Events and Callbacks |
| Feishu: persistent connection mode not enabled | Enable in Developer Console → Events and Callbacks → Subscription mode |
| Feishu: app not published | Publish in Developer Console → Version Management |
| Discord: bot not in the server | Invite the bot with the correct OAuth2 URL |
| Discord: message content intent not enabled | Enable in Discord Developer Portal → Bot → Privileged Intents |
Model Auth Errors
Symptom:No API key found for provider "anthropic" or "openai-codex"
Check:
defaultModelis set (e.g.,openai-codex/gpt-5.4)missingProvidersInUseis emptyprovidersWithOAuthshows your provider
cue: command not found
Symptom: cue is not found in the terminal after bootstrap.
Check if installed:
Updating the CLI
Self-update from the sandbox terminal:Gateway Doesn’t Pick Up New CLI
Symptom: Aftercue update, the gateway still uses the old CLI version.
Fix: Restart the gateway:
cue binary from PATH. Restarting makes it pick up the updated version.
Stale Processes After Bootstrap
Symptom: Bootstrap says success but nothing works because old processes are still running. Fix: Kill all old processes:Checking Logs
| Log | Purpose |
|---|---|
~/.openclaw/logs/gateway-sandbox.log | Gateway and channel events |
~/.cue/logs/debug.log | Cue CLI runtime |
/tmp/cue-install.log | CLI install output |