Use this file to discover all available pages before exploring further.
Health checks
Short guide to verify channel connectivity without guessing.
Quick checks
- — local summary: gateway reachability/mode, update hint, linked channel auth age, sessions + recent activity.
- — full local diagnosis (read-only, color, safe to paste for debugging).
- — asks the running gateway for a live health probe ( with ), including per-account channel probes when supported.
- — asks the running gateway for its health snapshot (WS-only; no direct channel sockets from the CLI).
openclaw health --verbose
— forces a live health probe and prints gateway connection details.
- — machine-readable health snapshot output.
- Send as a standalone message in WhatsApp/WebChat to get a status reply without invoking the agent.
- Logs: tail
/tmp/openclaw/openclaw-*.log
and filter for , , , .
Deep diagnostics
- Creds on disk:
ls -l ~/.openclaw/credentials/whatsapp/<accountId>/creds.json
(mtime should be recent).
- Session store:
ls -l ~/.openclaw/agents/<agentId>/sessions/sessions.json
(path can be overridden in config). Count and recent recipients are surfaced via .
- Relink flow:
openclaw channels logout && openclaw channels login --verbose
when status codes 409–515 or appear in logs. (Note: the QR login flow auto-restarts once for status 515 after pairing.)
- Diagnostics are enabled by default. The gateway records operational facts unless
diagnostics.enabled: false
is set. Memory events record RSS/heap byte counts, threshold pressure, and growth pressure. Liveness warnings record event-loop delay, event-loop utilization, CPU-core ratio, and active/waiting/queued session counts when the process is running but saturated. Oversized-payload events record what was rejected, truncated, or chunked, plus sizes and limits when available. They do not record the message text, attachment contents, webhook body, raw request or response body, tokens, cookies, or secret values. The same heartbeat starts the bounded stability recorder, which is available through openclaw gateway stability
or the Gateway RPC. Fatal Gateway exits, shutdown timeouts, and restart startup failures persist the latest recorder snapshot under ~/.openclaw/logs/stability/
when events exist; inspect the newest saved bundle with openclaw gateway stability --bundle latest
.
- For bug reports, run
openclaw gateway diagnostics export
and attach the generated zip. The export combines a Markdown summary, the newest stability bundle, sanitized log metadata, sanitized Gateway status/health snapshots, and config shape. It is meant to be shared: chat text, webhook bodies, tool outputs, credentials, cookies, account/message identifiers, and secret values are omitted or redacted. See Diagnostics Export.
Health monitor config
gateway.channelHealthCheckMinutes
: how often the gateway checks channel health. Default: . Set to disable health-monitor restarts globally.
gateway.channelStaleEventThresholdMinutes
: how long a connected channel can stay idle before the health monitor treats it as stale and restarts it. Default: . Keep this greater than or equal to gateway.channelHealthCheckMinutes
.
gateway.channelMaxRestartsPerHour
: rolling one-hour cap for health-monitor restarts per channel/account. Default: .
channels.<provider>.healthMonitor.enabled
: disable health-monitor restarts for a specific channel while leaving global monitoring enabled.
channels.<provider>.accounts.<accountId>.healthMonitor.enabled
: multi-account override that wins over the channel-level setting.
- These per-channel overrides apply to the built-in channel monitors that expose them today: Discord, Google Chat, iMessage, Microsoft Teams, Signal, Slack, Telegram, and WhatsApp.
When something fails
- or status 409–515 → relink with then .
- Gateway unreachable → start it:
openclaw gateway --port 18789
(use if the port is busy).
- No inbound messages → confirm linked phone is online and the sender is allowed (
channels.whatsapp.allowFrom
); for group chats, ensure allowlist + mention rules match (, agents.list[].groupChat.mentionPatterns
).
Dedicated "health" command
asks the running gateway for its health snapshot (no direct channel
sockets from the CLI). By default it can return a fresh cached gateway snapshot; the
gateway then refreshes that cache in the background.
openclaw health --verbose
forces
a live probe instead. The command reports linked creds/auth age when available,
per-channel probe summaries, session-store summary, and a probe duration. It exits
non-zero if the gateway is unreachable or the probe fails/timeouts.
Options:
- : machine-readable JSON output
- : override the default 10s probe timeout
- : force a live probe and print gateway connection details
- : alias for
The health snapshot includes:
(boolean),
(timestamp),
(probe time), per-channel status, agent availability, and session-store summary.
Related