openclaw doctor
Diagnose configuration issues and system health.
Usage
bash
openclaw doctor [options]Description
The doctor command runs a series of diagnostic checks:
- Configuration file validity
- API key verification
- Channel connectivity
- Port availability
- Dependency checks
- Permission verification
Options
| Option | Description |
|---|---|
--fix | Attempt to fix issues automatically |
--verbose | Show detailed output |
--json | Output results as JSON |
Examples
bash
# Run diagnostics
openclaw doctor
# Run and attempt fixes
openclaw doctor --fix
# Verbose output
openclaw doctor --verboseOutput
The doctor command outputs a health report:
OpenClaw Doctor
===============
✓ Configuration file valid
✓ API keys configured
✓ Anthropic API key valid
✓ Port 3000 available
✓ Gateway process healthy
✗ WhatsApp channel disconnected
Issues found: 1
Run 'openclaw doctor --fix' to attempt automatic fixes.