Prerequisites
Before you begin, ensure you have a Cerebras API Key. Get a free API key here.Configure OpenCode
1
Install OpenCode in your terminal
Run the following:
2
Select Cerebras
Run the following command, then select Cerebras from the dropdown menu:

3
Configure API key
Enter your Cerebras API key:

4
Select a model and start coding!
Run the 
Now you can start coding!
/models command to select a model:

Available Models
OpenCode supports all Cerebras models for AI coding assistance:| Model | Parameters | Best For |
|---|---|---|
| llama-3.3-70b | 70B | Best for complex reasoning, long-form content, and tasks requiring deep understanding |
| qwen-3-32b | 32B | Balanced performance for general-purpose applications |
| llama3.1-8b | 8B | Fastest option for simple tasks and high-throughput scenarios |
| gpt-oss-120b | 120B | Largest model for the most demanding tasks |
| zai-glm-4.7 | 357B | Advanced 357B parameter model with strong reasoning capabilities |
/models command in OpenCode.
