OpenClawSkills
GitHub
Gateway / 运用 • TutorialHeader.readTime

健康检查(CLI)

通道连接性的健康检查步骤

无需猜测即可验证通道连接性的简短指南。

Tutorial.step

Quick checks

- openclaw status — local summary: gateway reachability/mode, update hint, linked channel auth age, sessions + recent activity.

- openclaw status --all — 完全那本地診断(読见取里专用、色付机、调试分钟享在安全)。

- 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 /status 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 web-heartbeat, web-reconnect, web-auto-reply, web-inbound.

Tutorial.step

詳細診断

- Creds on disk: <code>ls -l ~/.openclaw/credentials/whatsapp/<accountId>/creds.json</code> (mtime should be recent).

- 会话存储:<code>ls -l ~/.openclaw/agents/<agentId>/sessions/sessions.json</code>(路径是设置在上写机可能)。件数与最近的宛先是 <code>status</code> 在显示。

- Relink flow: openclaw channels logout && openclaw channels login --verbose when status codes 409–515 or loggedOut appear in logs. (Note: the QR login flow auto-restarts once for status 515 after pairing.)

Tutorial.step

失败已执行和机

- logged out 或 409–515 → openclaw channels logout 的後在 openclaw channels login。

- Gateway unreachable → start it: openclaw gateway --port 18789 (use --force 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 (channels.whatsapp.groups, agents.list[].groupChat.mentionPatterns).

Tutorial.step

専用 health 命令

<code>openclaw health --json</code> asks the running Gateway for its health snapshot (no direct channel sockets from the CLI). It 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. Use <code>--timeout <ms>'</code> to override the 10s default.