Skip to content

klim agents doctor

klim agents doctor answers the question “why doesn’t klim see my Claude Code plugins?” It walks each known provider, checks whether its CLI binary is on PATH, validates the on-disk layout, and reports any issues that would prevent klim agents from listing accurate state.

Terminal window
klim agents doctor [flags]
FlagDescription
--providerLimit checks to a single provider.
--refreshForce a fresh provider scan instead of trusting the cache.
--outputtext (default), json, or yaml.
CheckWhy it matters
Provider binary on PATHklim agents launch exec’s the provider directly; missing binaries make launch fail.
Expected config directory existsIf the provider’s directory is missing, plugins / MCPs / sessions will appear empty.
Manifest files are well-formedCorrupt JSON / YAML in a provider’s plugin manifest hides every entity for that provider.
Cache freshnessStale cache > 24 h triggers a soft warning to run klim agents refresh.
Marketplaces reachableFor providers with remote marketplaces, can the configured URL be loaded?
Terminal window
# Full diagnosis across every provider
klim agents doctor
# JSON for CI / scripting
klim agents doctor --output json | jq '.issues[] | select(.severity=="error")'

Text output groups issues by severity (error / warning / info) and includes a Fix: hint where klim can suggest one. Structured output follows the same schema as klim doctor:

{
"providers": [
{ "id": "claude-code", "detected": true, "version": "0.5.3" }
],
"issues": [
{
"severity": "warning",
"provider": "copilot-cli",
"message": "agents cache is 26h old",
"fix": "run `klim agents refresh`"
}
]
}