status
显示链接的会话健康状态和最近的收件人。
用法
bash
openclaw status [选项]选项
--json: JSON 输出--all: 完整诊断(只读,可粘贴分享)--deep: 探测通道--usage: 显示模型 provider 使用量/配额--timeout <ms>: 超时时间--verbose/--debug: 详细输出
输出内容
Status 命令会显示:
- 网关状态 - 运行状态、端口、版本
- 节点主机服务状态 - 如果可用
- 会话信息 - 活跃会话数量
- 通道状态 - 各通道连接状态
- 模型状态 - 当前模型和认证状态
示例
bash
# 基本状态
openclaw status
# 完整诊断(用于提交 issue)
openclaw status --all
# 深度探测
openclaw status --deep
# 查看使用量
openclaw status --usage
# JSON 输出
openclaw status --json用于故障排除
当遇到问题时,建议运行:
bash
openclaw status --all这会生成一个安全的(token 已脱敏)报告,可以粘贴到 GitHub issue 中。
相关命令
- health - 健康检查
- doctor - 诊断与修复
- gateway status - 网关状态