Run a health check
If something is wrong and you only try one thing, try this:
waired doctorIt checks every part of the setup in turn and prints one line per check. Then, if anything it can repair is broken, it offers to repair it.
Reading the output
Section titled “Reading the output”Each line is a symbol, the thing checked, and what was found.
You should see
✓ state directory — /home/you/.config/waired✓ gateway token — /home/you/.config/waired/secrets/gateway-token✓ waired-agent management — /waired/v1/status✓ waired phase — active — overlay routing in effect✓ Local Gateway — /v1/models✓ claude-code managed settings — enabledAll ticks. Nothing to do.
| Symbol | Meaning |
|---|---|
| ✓ | Fine. |
| ⚠ | Working, but not the way it should be. Worth reading, not urgent. |
| ✗ | Broken. Something you are trying to do will not work. |
When anything is not a ✓, the command finishes with a non-zero exit code and a count — useful in a script, ignorable when you are reading it yourself.
Pressing f
Section titled “Pressing f”If any finding can be repaired automatically, you are asked:
At the end of the output
Press f to fix [f/N]:Press f. It re-applies the coding-agent setup (the same work as
waired link all) and tells you to run the check again:
Running repair (waired link all)...Done. Re-run `waired doctor` to verify.To repair without being asked — in a script, or over SSH:
waired doctor --fixWhat each check means
Section titled “What each check means”| Check | What a failure means | Usual fix |
|---|---|---|
| state directory | Waired’s own folder for identity, secrets and records is missing or unreadable. | Run the command with sudo (elevated on Windows). If it is genuinely missing, sign in again. |
| gateway token | The key your coding tools use to reach your AI is missing, or you cannot read it. | waired link — or press f. |
| waired-agent management | The background service is not answering. This is the one that stops everything else working. | See Waired is not running. |
| waired phase | Routing is paused, or in an unexpected state. | waired resume — see Pause and resume. |
| Local Gateway | The service is up, but the part that answers AI requests is not. A 503 usually means no model is loaded yet. |
Wait for the download to finish (waired models ls), or check your model. |
| coding-agent entries | Claude Code, OpenCode or OpenClaw is not configured to use Waired. | Press f. |
When the check itself cannot see everything
Section titled “When the check itself cannot see everything”On a normal desktop install some of Waired’s files belong to the system, not to you. Without administrator rights the doctor reports what it can and says so rather than guessing.
sudo waired doctorRun it from a Terminal (Administrator) window — right-click the Start button → Terminal (Administrator).
waired doctor