# Models and providers

> Connect KazoCode to Anthropic, OpenAI, Google, xAI, Mistral, OpenRouter, dozens of other providers, or a local model with your own API keys.

KazoCode works with the models you choose. Add a provider once in **Settings › Models** and its models appear in the model picker under the message box. `/model` shows which model a chat is using.

## Add a provider

1. Open **Settings › Models** (`Ctrl+,`).
2. Pick a provider and paste its API key.
3. Choose which of its models appear in the picker.

API keys are stored in your system's key store, not in the settings file, and are sent only to the provider they belong to.

Supported providers include **Anthropic**, **OpenAI**, **Google**, **xAI** and **Mistral**, gateways such as **OpenRouter**, **Vercel AI Gateway**, **LiteLLM Proxy**, **Cloudflare** and **Kilo Gateway**, and hosts such as **DeepSeek**, **Fireworks**, **Together AI**, **Cohere**, **SambaNova**, **Baseten**, **Z.ai** and many more. A provider's model list comes from the provider itself, so new models show up without an update.

## Local models

Choose **Local runtime** to use a model running on your computer through any OpenAI-compatible server, such as Ollama (the default address is `http://127.0.0.1:11434/v1`) or LM Studio. No key is needed. Pick a model that supports tool calls, or the agent can only chat.

## Choosing a model

- Large models plan and reason better on hard, multi-step work.
- Small models are faster and cheaper for quick questions and small edits.
- A model's context window limits how much of your project and conversation it can hold. `/context` shows how full it is.

You can switch the model at any point in a conversation; the next message uses the new one.

## Costs

When you use your own key, the provider bills you directly; KazoCode never adds a charge. `/cost` estimates the tokens and cost of the current conversation, and `/usage` reports tokens, cost, requests and tool calls per day and per model.
