Skip to main content
Version: v5.6.1

opschain doctor

Included from Basic tier

opschain doctor [server|runner]

Check this host's prerequisites and optional capabilities — a local probe, no server contact. Each capability prints as ok, MISSING (required) or missing (optional) with a detail column; -o json|yaml emits the same list as a document.

The optional role narrows the probe set to one deployment role:

InvocationProbesRationale
opschain doctor servergit, opschain home writability, OS keychainA server never executes actions, so none of the execution-toolchain probes run.
opschain doctor runnerruby, bundler, container runtime, MintPress SDK, home, keychainRuby, bundler and the MintPress SDK are probed as optional capabilities — only applicable to existing MintPress customers and those using the MintPress SDK or the packs:mintpress feature; a container runtime matters only for containerexec.
opschain doctoreverythingThe combined local-development view.

The hard requirements are git >= 2.35 (probed for the server and combined views) and a writable opschain home (the resolved --home / OPSCHAIN_HOME, probed in every view); everything else is optional with role-accurate detail. The keychain probe is macOS-only in Phase 0 — elsewhere it reports the key-file fallback.

opschain doctor server
CAPABILITY STATUS DETAIL
git ok git version 2.43.0
home ok /Users/op/Library/Application Support/opschain is writable
keychain ok macOS keychain via /usr/bin/security

Named errors​

  • unknown doctor role "<role>" (expected server or runner) — exit 2.
  • required capabilities missing: <names> — printed after the table when a required capability is absent; exit 1.

Exit codes​

CodeMeaning
0Every required capability is present (optional ones may be missing).
1A required capability is missing, or probing failed.
2Usage error — unknown role or stray arguments.

See also​

  • opschain docs cli/init — runs the same detection while scaffolding a repository.
  • opschain learn 0.1 — install and first contact.
  • opschain learn 6.1 — runners and fleet (what a runner host executes).