Runs a series of checks to diagnose common setup problems.Documentation Index
Fetch the complete documentation index at: https://docs.codezero.io/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Checks performed
| Check | What it verifies |
|---|---|
| Config validity | cordon.toml parses and validates correctly |
| Cert paths | CA cert and key files exist at configured paths |
| Cert expiry | CA certificate is not expired |
| Trust store | CA is trusted in the system trust store |
| Port availability | Configured listen port is available |
| Service status | Background service is running (if installed) |
| OS keyring session (Linux) | D-Bus session bus is available for keyring secrets |
| Secret providers | Configured secret providers are detected |
| Service PATH (macOS) | Background service PATH matches current session |
Installed services
Doctor partitions installed services into:- Project services: installed services whose config path matches the current config
- Other installed services: services that point at some other config path
--config path no longer exists on disk — are flagged as errors and contribute to doctor’s overall error count. These accumulate when project directories are deleted or moved. Run cordon service cleanup to review and remove them.
If ./cordon.toml is missing and exactly one installed service exists, cordon doctor inspects that service automatically. If multiple installed services exist, re-run with --config for the target config.
Linux keyring session check
On Linux, if any routes usesource: keyring, doctor checks whether a D-Bus session bus is available — either via DBUS_SESSION_BUS_ADDRESS or the systemd user bus socket ($XDG_RUNTIME_DIR/bus). This detects environments where the Secret Service provider is unreachable (containers, CI, SSH, headless servers) before you hit a runtime error.