Skip to content

Model selectors

Every model in ka is addressed by a selector:

vendor/model@effort
  • vendor (the provider): anthropic, openai, google, zai, deepseek, groq, openrouter, opencode-go, ollama, lmstudio, llamacpp, vllm, … plus 600+ catalog models across 32 seeded vendors.
  • model: the model id, verbatim, including any colons (e.g. qwen3.5:9b).
  • effort: optional reasoning effort (low / medium / high, some models add max). The separator is @ precisely because model ids may contain colons.
Terminal window
ka --model anthropic/claude-sonnet-5@high
ka --model ollama/qwen3.5:9b

Priority from lowest to highest; each layer overrides the last:

  1. [roles] in ka.toml (default, fast)
  2. model in ~/.config/ka/ka.toml
  3. the profile layer: ~/.config/ka/profiles/<name>.toml, selected with --profile
  4. model in .ka/ka.toml (trusted projects)
  5. KA_MODEL environment variable
  6. --model flag
ka.toml
model = "ollama/qwen3.5:9b"
effort = "high"
[roles]
default = "anthropic/claude-sonnet-5"
fast = "groq/llama-3.3-70b" # cheap lookups, subagents

/model with no argument opens a picker over the entire catalog:

  • type-to-filter across vendors and model ids
  • per-row key/env status, context window, and price (only for verified prices; see below), plus each model’s reasoning levels where the dialect exposes them
  • Enter on an unmatched filter sets it as a custom vendor/model selector
  • picking a model persists it as your default for future conversations

/settings edits model, mode, and effort together; press s to persist the whole panel. /thinking [level] picks the reasoning level directly (Enter persists; the named form is session-scoped). The thinking level always shows beside model and mode whenever the model exposes reasoning control.

[virtual_models.<name>] groups several models behind one selector, with models = [...] and a strategy of "round_robin" (the default) or "failover". The virtual name is addressable anywhere a normal selector is:

[virtual_models.pool]
models = ["openai/gpt-5.1", "anthropic/claude-sonnet-5"]
strategy = "round_robin"

[[model_pins]] pins a model (including an @effort suffix) to files matching a path glob. The first matching pin wins over the configured model:

[[model_pins]]
model = "anthropic/claude-sonnet-5@high"
path = "src/**"

[roles] holds arbitrary named roles, not just the two built-ins: define extra roles under [roles.<name>] (e.g. an [roles.extra] table) and address any of them as @name in --model or SetModel. default and fast stay built-in (@default, @fast); fast still powers subagents and cheap lookups (pathfinder, fast lookups). default is your main model.