Skip to content

cru doctor

Run bounded installation diagnostics for your Crucible setup.

Synopsis

cru doctor [-C <config>] [-f json]

Description

The doctor command runs targeted health checks against your Crucible installation. It’s the fastest way to diagnose setup problems after a fresh install or when something stops working.

Checks performed

CheckPass conditionFail suggestion
Daemon reachabilityDaemonClient::connect() succeedscru daemon start
Config validityConfig file exists and parses without errorscru config init
Provider connectivityEach configured LLM provider responds within 2 secondsCheck provider URL and service status
Kiln accessibilityKiln path exists, is a directory, and is writablecru init
Embedding backendFastEmbed compiled in, or Ollama reachableEnable the fastembed feature or configure Ollama
PluginsThe daemon answers plugin.listWarning only; skipped entirely if the daemon is down
Kiln referencesEvery kiln named by a [projects.*] entry exists in [kilns]Add the kiln to [kilns] or drop the reference
Config validationThe loaded config passed structural validationSee the Config check above

Not every check emits a line on every run: the plugin check is skipped when the daemon is unreachable, the kiln-reference check is skipped when no projects are registered, and an unreachable provider produces one line per provider. The count in the summary is the number of lines actually emitted, so it varies with your setup.

Exit codes

  • 0 if all checks pass (warnings are allowed)
  • 1 if any check fails

Warnings (read-only kiln, no providers configured, config parse errors) are reported but don’t cause a non-zero exit. -f json prints the raw results and always exits 0.

Examples

Terminal window
# Run all checks
cru doctor
# Machine-readable results
cru doctor -f json

Typical healthy output:

Crucible Doctor - Installation Health Check
───────────────────────────────────────────
✓ Daemon running
✓ Config found at /home/you/.config/crucible/config.toml
✓ All 1 provider(s) reachable
✓ Kiln accessible at /home/you/notes
✓ Embeddings available (fastembed)
✓ 3 plugin(s) loaded
✓ Config parsed and validated
All 7 checks passed.

See Also

  • Index - Full CLI command reference
  • storage - Storage configuration