openclaw health

通过 RPC 从运行中的 Gateway 获取健康快照。

选项

参数默认值说明
--jsonfalse输出机器可读 JSON
--timeout <ms>10000连接超时(毫秒)
--verbosefalse强制实时探测,展开每个 agent 的输出
--debugfalse--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,适合离线排查。

相关链接