Getting Started with OpenCode

Last updated: September 23, 2025

This guide walks you through configuring Cerebras as a provider for OpenCode, a 100% open-source, terminal-focused AI coding assistant that runs multiple models and integrates deeply with developer tools for seamless coding automation.

1. Install OpenCode

curl -fsSL https://opencode.ai/install | bash

2. Configure OpenCode for the first time

Run

opencode auth login

and select Cerebras from the dropdown menu.

Screenshot 2025-09-22 at 4.53.51 PM.png

3. Enter your API Key

Enter your Cerebras API key to be used in OpenCode.

Screenshot 2025-09-22 at 4.55.17 PM.png

4. Select a Model

Run the

/models

command to select a model, like Qwen-3-coder-480b

Screenshot 2025-09-22 at 4.56.09 PM.png

5. That’s it!

Screenshot 2025-09-22 at 4.56.23 PM.png