Prerequisites
Before you begin, ensure you have:- Cerebras API key - Create one in the Cerebras Cloud console.
- Kilo Code - Install the VS Code extension or CLI.
Configure the VS Code extension
Open Kilo Code settings
Open the Kilo Code panel in VS Code, select the gear icon, and open the Providers tab.
Add Cerebras
Add Cerebras as a provider and paste your Cerebras API key. You do not need to configure a custom base URL.
Configure the CLI
Set your Cerebras API key:~/.config/kilo/kilo.json or your project’s kilo.json:
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 |
Troubleshooting
Gemma 4 31B does not appear in the model selector
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.
Kilo Code reports an authentication error
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.
