Skip to main content
OpenCode is a 100% open-source, terminal-focused AI coding assistant that runs multiple models and integrates deeply with developer tools for seamless coding automation.

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:
curl -fsSL https://opencode.ai/install | bash
2

Select Cerebras

Run the following command, then select Cerebras from the dropdown menu:
opencode auth login
step1
3

Configure API key

Enter your Cerebras API key:step2
4

Select a model and start coding!

Run the /models command to select a model:step3Now you can start coding!step4

Available Models

OpenCode supports all Cerebras models for AI coding assistance:
ModelParametersBest For
llama-3.3-70b70BBest for complex reasoning, long-form content, and tasks requiring deep understanding
qwen-3-32b32BBalanced performance for general-purpose applications
llama3.1-8b8BFastest option for simple tasks and high-throughput scenarios
gpt-oss-120b120BLargest model for the most demanding tasks
zai-glm-4.7357BAdvanced 357B parameter model with strong reasoning capabilities
You can switch between models at any time using the /models command in OpenCode.