Models
Connect a provider, a ChatGPT or Kimi For Coding plan, or a local model, and choose the model for each role.
kcode bundles no model access. A session runs on a model from a provider connected on the Mac, and usage limits and billing stay with that provider.
An API key
Settings › Providers (⌘,) lists the supported providers, including OpenAI, Anthropic, Google, OpenRouter, Groq, DeepSeek, Fireworks, and Mistral. A key saved beside a provider makes its models available at once.
The same from a terminal:
kcode auth login groq
kcode auth status
kcode auth login <provider> reads the key at a prompt that hides it, and kcode auth login --help lists every provider. A key in the environment when kcode starts is read too.
Subscription plans
Settings › Providers › OpenAI offers a sign-in with a ChatGPT Plus or Pro plan, and Settings › Providers › Kimi For Coding connects a Kimi For Coding plan. Each plan serves the models included in the account with no separate API key billing.
kcode auth login openai --sign-in
The command opens the sign-in page in the browser. --device shows a code to type on the provider’s page, for a machine with no browser.
A local model or another server
kcode runs models that Ollama, LM Studio, llama.cpp or vLLM serve on the Mac or the network, and any hosted server that speaks the OpenAI API or the Anthropic API. Settings › Providers › + Add a provider… adds one. So does a table in ~/.kcode/config.toml:
[providers.lab]
base_url = "http://localhost:11434/v1"
api = "openai"
name = "Ollama"
kcode reads the server’s model list, and the models appear in the /model picker beside every other provider’s. Saving the file adds the provider at once, with no restart. A model on the Mac or the local network costs nothing in /cost and /stats.
The model of a session
/model opens the picker over every connected provider.
| Key | Result |
|---|---|
| Return | Sets the highlighted model for this session, from its next turn. |
⌘Return |
Makes it the default for new sessions. |
⌘D |
Marks it as a favorite. |
/effort sets how hard the model reasons, for a model that has the control. The status bar shows the level in effect as ⚡ <level> after the model.
A model for each role
| Role | Where it is set |
|---|---|
| Subagents | /subagent picks a pool of helper models for the session. A subagent whose kind names no model runs on one of them. |
| Advisor | Settings › Subagents › Advisor model. The agent asks this model for a second opinion, so it must differ from the session’s model. |
| Side Agent | Settings › Side agent. Side Agent covers it. |
Cost and context
| Command | Shows |
|---|---|
/cost |
What the session has spent, with its tokens. |
/stats |
The session’s dashboard. /stats all covers every session. |
/context |
What fills the context window. |