doctor
openclaw doctor
Section titled “openclaw doctor”网关和频道的健康检查 + 快速修复。
相关:
- 故障排除: Troubleshooting
- 安全审计: Security
openclaw doctoropenclaw doctor --repairopenclaw doctor --deep注意:
- 交互式提示 (如钥匙串/OAuth 修复) 仅在 stdin 为 TTY 且 未 设置
--non-interactive时运行。无头运行 (cron, Telegram, 无终端) 将跳过提示。 --fix(--repair的别名) 将备份写入~/.openclaw/openclaw.json.bak并删除未知配置键,列出每个删除项。
macOS: launchctl 环境变量覆盖
Section titled “macOS: launchctl 环境变量覆盖”如果您之前运行了 launchctl setenv OPENCLAW_GATEWAY_TOKEN ... (或 ...PASSWORD),该值会覆盖您的配置文件,并可能导致持续的 “unauthorized” (未授权) 错误。
launchctl getenv OPENCLAW_GATEWAY_TOKENlaunchctl getenv OPENCLAW_GATEWAY_PASSWORD
launchctl unsetenv OPENCLAW_GATEWAY_TOKENlaunchctl unsetenv OPENCLAW_GATEWAY_PASSWORD