openclaw health
通过 RPC 从运行中的 Gateway 获取健康快照。
选项
| 参数 | 默认值 | 说明 |
|---|---|---|
--json | false | 输出机器可读 JSON |
--timeout <ms> | 10000 | 连接超时(毫秒) |
--verbose | false | 强制实时探测,展开每个 agent 的输出 |
--debug | false | --verbose 的别名 |
用法
openclaw health
openclaw health --json
openclaw health --timeout 2500
openclaw health --verbose行为说明
- 默认请求 Gateway 的健康快照;若 Gateway 已有新鲜缓存,直接返回缓存并在后台刷新
--verbose强制实时探测,打印 Gateway 连接详情,并展开所有已配置账户和 agent 的输出- 多 agent 配置时输出包含每个 agent 的 session store
与 status 的区别
openclaw health 通过 RPC 连接运行中的 Gateway 获取快照,适合快速检查 Gateway 是否存活;openclaw status 是本地诊断命令,不依赖 Gateway RPC,适合离线排查。