Verify OpenClaw Connectivity: Quick Health Diagnostics
Ever had that moment where your integration just stops responding and you’re left staring at a blank screen? Debugging connectivity issues can feel like chasing ghosts, especially when you aren’t sure if the gateway is down or if a specific channel just timed out.
Instead of guessing why your messages aren’t going through, you can use the built-in CLI tools to see exactly what’s happening. Here is how you can verify your channel connectivity and keep things running.
Quick checks
Section titled “Quick checks”If you need a fast answer, start here. These commands give you a snapshot of your local setup and gateway status.
openclaw status— local summary: gateway reachability/mode, update hint, linked channel auth age, sessions + recent activity.openclaw status --all— full local diagnosis (read-only, color, safe to paste for debugging).openclaw status --deep— also probes the running Gateway (per-channel probes when supported).openclaw health --json— asks the running Gateway for a full health snapshot (WS-only; no direct Baileys socket).- Send
/statusas a standalone message in WhatsApp/WebChat to get a status reply without invoking the agent. - Logs: tail
/tmp/openclaw/openclaw-*.logand filter forweb-heartbeat,web-reconnect,web-auto-reply,web-inbound.
Deep diagnostics
Section titled “Deep diagnostics”Sometimes you need to look under the hood and check the actual files on your machine to see if your sessions are current.
- 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 viastatus. - Relink flow:
openclaw channels logout && openclaw channels login --verbosewhen status codes 409–515 orloggedOutappear in logs. (Note: the QR login flow auto-restarts once for status 515 after pairing.)
Health monitor config
Section titled “Health monitor config”You can automate how the system handles hiccups by tuning the gateway monitor. Here are the keys you can adjust in your configuration:
gateway.channelHealthCheckMinutes: how often the gateway checks channel health. Default:5. Set0to 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:30. Keep this greater than or equal togateway.channelHealthCheckMinutes.gateway.channelMaxRestartsPerHour: rolling one-hour cap for health-monitor restarts per channel/account. Default:10.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
Section titled “When something fails”When you hit a wall, here is the cheat sheet for common fixes.
logged outor status 409–515 → relink withopenclaw channels logoutthenopenclaw channels login.- Gateway unreachable → start it:
openclaw gateway --port 18789(use--forceif 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 (channels.whatsapp.groups,agents.list[].groupChat.mentionPatterns).
Dedicated “health” command
Section titled “Dedicated “health” command”The openclaw health --json command asks the running Gateway for its health snapshot. It doesn’t use direct channel sockets from the CLI, making it a cleaner way to check status. It reports linked creds/auth age, per-channel probe summaries, session-store summary, and a probe duration. It exits non-zero if the Gateway is unreachable or the probe fails.
Options:
--json: machine-readable JSON output--timeout <ms>: override the default 10s probe timeout--probe: force a live probe of all channels instead of returning the cached health snapshot
The health snapshot includes: ok (boolean), ts (timestamp), durationMs (probe time), per-channel status, agent availability, and session-store summary.
Need more help getting things running? Check out the AI Setup Assistant.
Next steps
Section titled “Next steps”- Explore the Gateway configuration guide
- Learn more about Channel authentication and relinking
OpenClaw Expert
Still stuck?
If this page didn't answer your case, ask OpenClaw Expert for step-by-step guidance.