your agent · cli reference

doctor

Usage

soulpass doctor [--clear-leftovers]

Diagnose device state: keychain, environment, and backend reachability. Read-only apart from a scratch-key keychain write probe.

Flags

  • --clear-leftovers — Delete every INCOMPLETE Secure Enclave key slot (one or two of its three keys — the leftover of an interrupted key operation; it cannot derive or sign) after a typed confirmation, plus the agent.json entries and tokens that point at a cleared slot. Complete and empty slots are never touched. Then redo the interrupted step (owner recover restores a registered device; link joins an existing wallet). ◆ human-only

Output

JSON with per-check ok / detail / remediation. The exit code is 0 even when issues are found — the JSON status field is the verdict, so agents can read the full report instead of a truncated failure.

When to run

  • Any command failed unexpectedly — run doctor first and act on the per-check remediation
  • Before guiding a human through setup or recovery
  • Not for routine operation — doctor performs a backend network probe on every run

Examples

soulpass doctor