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.
kolega-code doctor --project .| Option | Description |
|---|---|
--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.
What it checks
Section titled “What it checks”- 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, ormissing(the key itself is never printed). - Configuration — whether a valid
AgentConfigcan 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.
Example output
Section titled “Example output”Project: /Users/you/code/my-appState dir: /Users/you/Library/Application Support/kolega-codeTextual installed: TrueUpdate: Kolega Code is up to date (0.3.0).Stored active model: moonshot/kimi-k2.7-codeStored thinking effort: autoStored API key: present in local settings✓ Configuration: validLong model: moonshot/kimi-k2.7-codeFast model: moonshot/kimi-k2.7-codeThinking model: moonshot/kimi-k2.7-codeThinking effort: autoExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Configuration is valid |
2 | Configuration 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.