Browse docs
Docs / cli / doctor
doctor
openclaw doctor
- Troubleshooting: Troubleshooting
- Security audit: Security
Examples
text
openclaw doctor
openclaw doctor --repair
openclaw doctor --deep- Interactive prompts (like keychain/OAuth fixes) only run when stdin is a TTY and
--non-interactiveis not set. Headless runs (cron, Telegram, no terminal) will skip prompts. --fix(alias for--repair) writes a backup to~/.openclaw/openclaw.json.bakand drops unknown config keys, listing each removal.
macOS: launchctl env overrides
text
launchctl getenv OPENCLAW_GATEWAY_TOKEN
launchctl getenv OPENCLAW_GATEWAY_PASSWORD
launchctl unsetenv OPENCLAW_GATEWAY_TOKEN
launchctl unsetenv OPENCLAW_GATEWAY_PASSWORD