> ## Documentation Index
> Fetch the complete documentation index at: https://inference-docs.cerebras.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Started with Kilo Code

> Configure Kilo Code to use Cerebras Inference for AI coding assistance in VS Code or from the command line.

[Kilo Code](https://kilo.ai/?utm_source=3pi_kilocode\&utm_campaign=partner_doc) is an open-source AI coding agent available as a VS Code extension and command-line tool. Kilo Code includes a native Cerebras provider and loads the current Cerebras model catalog automatically.

## Prerequisites

Before you begin, ensure you have:

* **Cerebras API key** - Create one in the [Cerebras Cloud console](https://cloud.cerebras.ai/?utm_source=3pi_kilocode\&utm_campaign=partner_doc).
* **Kilo Code** - Install the [VS Code extension or CLI](https://kilo.ai/install).

## Configure the VS Code extension

<Steps>
  <Step title="Open Kilo Code settings">
    Open the Kilo Code panel in VS Code, select the gear icon, and open the **Providers** tab.
  </Step>

  <Step title="Add Cerebras">
    Add **Cerebras** as a provider and paste your Cerebras API key. You do not need to configure a custom base URL.
  </Step>

  <Step title="Select a model">
    Choose `gemma-4-31b`, `gpt-oss-120b`, or `zai-glm-4.7` from the Cerebras model list, then start a coding task.
  </Step>
</Steps>

## Configure the CLI

Set your Cerebras API key:

```bash theme={null}
export CEREBRAS_API_KEY="your-api-key"
```

Add the Cerebras provider and default model to `~/.config/kilo/kilo.json` or your project's `kilo.json`:

```json theme={null}
{
  "provider": {
    "cerebras": {
      "env": ["CEREBRAS_API_KEY"]
    }
  },
  "model": "cerebras/gemma-4-31b"
}
```

Kilo Code refreshes its model catalog automatically. If a newly released model is not visible immediately, restart Kilo Code and check the model selector again.

## Available models

Kilo Code supports the models exposed by the Cerebras provider:

| Model            | Parameters | Best For                                           |
| ---------------- | ---------- | -------------------------------------------------- |
| **gpt-oss-120b** | 120B       | Large coding and agentic tasks                     |
| **gemma-4-31b**  | 31B        | Multimodal coding tasks with text and image inputs |
| **zai-glm-4.7**  | 355B       | Complex reasoning and coding tasks                 |

See the [model catalog](/models) for current availability and the [Gemma 4 31B model page](/models/gemma-4-31b) for its context, output, and image-input limits.

## Troubleshooting

<AccordionGroup>
  <Accordion title="Gemma 4 31B does not appear in the model selector">
    Confirm that Kilo Code is up to date, restart it to refresh the model catalog, and verify that **Cerebras** is configured as the provider rather than **OpenAI Compatible**.
  </Accordion>

  <Accordion title="Kilo Code reports an authentication error">
    Confirm that `CEREBRAS_API_KEY` is set for the CLI or re-enter your key in the VS Code provider settings. You can create and manage keys in the [Cerebras Cloud console](https://cloud.cerebras.ai/).
  </Accordion>
</AccordionGroup>
