amc doctor is AMC's deterministic, context-aware local troubleshooting command.
amc doctor
amc doctor --json
amc doctor --strict
amc doctor --strict --jsonWhen the current directory does not contain an .amc workspace, the default command verifies the installed CLI and Node runtime. It reports mode: "INSTALL", marks the absent workspace as informational, skips workspace signatures and Gateway checks that cannot exist yet, and exits zero when the installation is healthy.
Run amc to initialize the workspace and generate its first evidence result.
When .amc exists, doctor reports mode: "WORKSPACE" and runs the complete workspace checks below. Missing or invalid required configuration still fails closed.
CI, deployment, and production runbooks should use:
amc doctor --strict --jsonStrict mode requires an initialized workspace. In an uninitialized directory it emits one bounded workspace-initialized failure, points to amc, and exits one. Text and JSON use the same ok value and exit status.
- Node runtime version (
>=20) - Workspace initialization state
- Studio running status
- Vault lock status
- Signature status:
action-policy.yamltools.yamlbudgets.yamlapproval-policy.yamladapters.yaml
- Gateway route mount checks:
/openai,/anthropic,/gemini,/grok,/openrouter,/local
- ToolHub denylist sanity (
.amcpath access must be denied) - Lease carrier live checks (when Studio is running):
Authorization: Bearer <lease>x-api-key: <lease>
- Built-in adapter detection (
amc adapters detect)
Doctor prints PASS/FAIL/WARN plus direct fix hints.
- Doctor never prints vault passphrases.
- Doctor never prints lease tokens.
- Doctor never prints provider secrets.
- Doctor bounds configuration errors and replaces the current workspace path with
..
amc up
amc vault unlock
amc fix-signatures
amc adapters init
amc adapters verify