← CLI Reference

human doctor

Environment and authentication health check

Diagnoses your HUMΛN CLI environment. Checks Node.js version, config file, delegation token liveness, database, API keys, and API connectivity.

Flags

FlagDescription
--jsonOutput check results as a JSON array (CI-friendly)
--fixAuto-remediate fixable issues (e.g. create missing ~/.human/config.yaml)

Checks

CheckWhat it verifies
Config file~/.human/config.yaml exists
Node.js VersionNode 20+ recommended
AuthenticationProfile has a passportId
Delegation tokenToken accepted by GET /v1/passports?limit=1
DatabaseDATABASE_URL is set and connectable
API KeysOPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY
ModelRegistrymodel_profiles table exists
API ConnectivityGET /health reachable

Examples

human doctor
human doctor --json | jq '[.[] | select(.status == "fail")]'
human doctor --fix

CI usage

- run: human doctor --json

Exit code 0 = all checks pass or warn. Exit code 1 = at least one fail.