Skip to content

doctor

kolega-code doctor runs a quick health check of your local setup. Use it after installing or whenever the agent won’t start, to see what’s configured and what’s missing.

Terminal window
kolega-code doctor --project .
OptionDescription
--project <PATH>Project directory to check (default .)
--state-dir <PATH>Directory for CLI session state

It also accepts the global model options, so you can validate a specific provider/model combination before using it.

  • Project — the resolved project path.
  • State dir — where settings and sessions are stored.
  • Textual installed — whether the [cli] extra (the interactive UI) is available.
  • Stored active model — the provider/model saved in Settings, or not configured.
  • Stored thinking effort — the saved effort value, or model default.
  • Stored API key — for the active provider, whether the key is present via <ENV_VAR>, present in local settings, or missing (the key itself is never printed).
  • Configuration — whether a valid AgentConfig can be built. If valid, it prints the resolved long, fast, and thinking models.
  • Update — whether the installed CLI is current or a newer PyPI release is available.
Project: /Users/you/code/my-app
State dir: /Users/you/Library/Application Support/kolega-code
Textual installed: True
Update: Kolega Code is up to date (0.3.0).
Stored active model: moonshot/kimi-k2.7-code
Stored thinking effort: auto
Stored API key: present in local settings
✓ Configuration: valid
Long model: moonshot/kimi-k2.7-code
Fast model: moonshot/kimi-k2.7-code
Thinking model: moonshot/kimi-k2.7-code
Thinking effort: auto
CodeMeaning
0Configuration is valid
2Configuration is invalid (e.g. missing API key, unknown model) — the reason is printed

If doctor reports a missing key or invalid configuration, head to Providers & Models and Environment Variables to fix it.