Doctor¶
openclaw doctor is the repair + migration tool for OpenClaw. It fixes stale config and state, checks health, and provides actionable repair steps.
Treat doctor as a required post-install and post-upgrade step. It surfaces risky / misconfigured DM policies before they hit your channels.
Quick start¶
Modes¶
Headless / automation¶
Accept defaults without prompting (including restart / service / sandbox repair steps when applicable):
Apply recommended repairs¶
Repairs + restarts where safe, without prompting.
Apply aggressive repairs¶
Also overwrites custom supervisor configs.
Non-interactive (safe only)¶
Runs without prompts and only applies safe migrations (config normalization + on-disk state moves). Skips restart / service / sandbox actions that require human confirmation. Legacy state migrations run automatically when detected.
Deep checks¶
Extends the check set beyond the default smoke test.
What it checks¶
- Config schema validity.
- Stale state files and legacy paths (auto-migrates safely when possible).
- Channel DM policies (warns on risky / open policies).
- Service health (launchd / systemd user service, RPC probe, port binding).
- Sandbox readiness (multi-tenant).
When to run it¶
- After every install or upgrade.
- After editing
openclaw.jsonby hand. - Before exposing the Gateway via Tailscale or SSH.
- When diagnosing a misbehaving channel or pairing flow.