Skip to main content
Kilo Code 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:

Configure the VS Code extension

1

Open Kilo Code settings

Open the Kilo Code panel in VS Code, select the gear icon, and open the Providers tab.
2

Add Cerebras

Add Cerebras as a provider and paste your Cerebras API key. You do not need to configure a custom base URL.
3

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.

Configure the CLI

Set your Cerebras API key:
Add the Cerebras provider and default model to ~/.config/kilo/kilo.json or your project’s kilo.json:
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:
ModelParametersBest For
gpt-oss-120b120BLarge coding and agentic tasks
gemma-4-31b31BMultimodal coding tasks with text and image inputs
zai-glm-4.7355BComplex reasoning and coding tasks
See the model catalog for current availability and the Gemma 4 31B model page for its context, output, and image-input limits.

Troubleshooting

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.
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.