Providers & Models
Kolega Code is provider-agnostic. You choose which LLM provider to use and which model to use for each of several roles.
Supported providers
Section titled “Supported providers”The agent runtime recognizes these providers:
| Provider | Identifier | API key variable |
|---|---|---|
| Anthropic | anthropic | ANTHROPIC_API_KEY |
| OpenAI | openai | OPENAI_API_KEY |
google | GOOGLE_API_KEY | |
| Groq | groq | GROQ_API_KEY |
| Together.ai | together | TOGETHER_API_KEY |
| Fireworks.ai | fireworks | FIREWORKS_API_KEY |
| x.ai (Grok) | xai | XAI_API_KEY |
| DashScope (Alibaba) | dashscope | DASHSCOPE_API_KEY |
| Moonshot (Kimi) | moonshot | MOONSHOT_API_KEY |
| DeepSeek | deepseek | DEEPSEEK_API_KEY |
| Z.AI (GLM Coding Plan) | zai | ZAI_API_KEY |
| Kimi Coding Plan | kimi_coding | KIMI_CODING_API_KEY |
| Llama (local) | llama | none — local model |
Model roles
Section titled “Model roles”Rather than one model for everything, Kolega Code uses three model slots, so you can match cost and capability to the job:
| Role | Purpose | Default |
|---|---|---|
| Long context | The main coding model — drives the conversation and most work | anthropic / claude-opus-4-7 |
| Fast | Quick, cheap utility calls | anthropic / claude-haiku-4-5-20251001 |
| Thinking | Extended-reasoning (“think hard”) operations | anthropic / claude-opus-4-7 (medium effort) |
These built-in role defaults are used only when the corresponding provider or role is explicitly selected without a model. API key variables alone do not make these defaults active.
When you pick a single provider/model in the Settings UI, that selection is applied to all roles. To assign roles individually, use environment variables or CLI flags.
How a model gets chosen
Section titled “How a model gets chosen”For each role, Kolega Code resolves the provider and model in this order (first match wins):
- CLI flags — e.g.
--provider,--model,--fast-model, … - Environment variables — e.g.
KOLEGA_CODE_PROVIDER,KOLEGA_CODE_MODEL, the per-role variants, and a project-local.envfile. - Saved Settings — the active provider/model from the Settings tab.
A configuration is only valid if a provider/model has been selected and every
role’s provider has an API key available (the local llama provider needs none).
If a key is missing, the CLI reports exactly which environment variable is
required.
Set models per role
Section titled “Set models per role”Override any role from the command line:
kolega-code . \ --provider anthropic --model claude-opus-4-7 \ --fast-provider anthropic --fast-model claude-haiku-4-5-20251001 \ --thinking-provider anthropic --thinking-model claude-opus-4-7 \ --thinking-effort mediumOr with environment variables — see Environment Variables for the complete list.
Thinking effort
Section titled “Thinking effort”Thinking effort is model-specific. Kolega Code validates the selected value against the active model and resets it to the new model’s default when you switch models in the TUI.
| Provider/model | Values | Kolega default |
|---|---|---|
Anthropic claude-opus-4-7 | low, medium, high, xhigh, max | medium |
DeepSeek deepseek-v4-pro | none, high, max | high |
Moonshot kimi-k2.7-code | auto | auto |
Moonshot kimi-k2.6 | auto, none | auto |
Z.AI glm-5.2 | high, max | max |
Z.AI glm-5.1 | auto, none | auto |
Google gemini-2.5-pro | auto, low, medium, high | medium |
| OpenAI reasoning models | low, medium, high | medium |
Check what’s active
Section titled “Check what’s active”kolega-code doctor --project .doctor prints the resolved provider/model for each role (long, fast, thinking)
and whether the necessary API keys are present.