The blazing-fast AI coding agent for the terminal β powered by Cerebras inference.
Fork of OpenCode, adapted for Cerebras's fast inference.
- β‘ Instant responses β Cerebras inference in milliseconds
- π₯οΈ Terminal-native β Full TUI with session management
- π§ Coding agent β File editing, bash commands, code analysis
- π Cache monitoring β Real-time hit rate with sparklines and alerts
- π LSP & MCP β Language server and Model Context Protocol support
Before you install the CLI, you will need:
- A Cerebras account
- An API key
If you do not already have one, sign up for an account at cloud.cerebras.ai.
- Log into cloud.cerebras.ai
- Go to "API keys"
- Copy your "Default" key or create a new one
- Node.js β install with
brew install nodeif you don't already have it - Bun β install with
curl -fsSL https://bun.com/install | bash
npm install -g cerebras-cliTip
Remove versions older than 0.1.x before installing.
Once inside the CLI:
- Type
/connect - Select Cerebras as your provider
- Paste your Cerebras API key
- Select your desired model
Navigate to your project and start the CLI:
cd your-project
cerebras-cliTo modify specific files, reference them using @:
Example:
Update @src/components/Button.tsx to support a disabled state
This works similarly to attaching files in GitHub Copilot.
The Cerebras Code CLI includes three agents. Switch modes by pressing Tab.
Creates a structured implementation plan without modifying code.
Use Plan mode when you're exploring approaches or deciding how to implement something. Think of this as a consultant that will leave you with a plan to execute.
Example:
Add user authentication using JWT to this project
Executes a specific implementation and modifies code directly.
Use Build mode when you know exactly what change you want to make. Perfect for simple, specific tasks where you just want it to follow instructions or execute a plan.
Example:
Add a disabled state to @src/components/Button.tsx
Combines planning and execution. Automatically creates and executes plans.
Use Ralph mode for larger tasks β starting a project or building a complex feature. You can see the plans and task lists it creates so you understand why it builds what it builds.
Example:
Add dark mode support across the application
Tip
Use git status to see which files have changed so you can further inspect them in your IDE.
If you're using this fork as cerebras, you can run the built-in ACP server and connect it to Zed:
{
"agent_servers": {
"Cerebras CLI": {
"type": "custom",
"command": "cerebras",
"args": ["acp"]
}
}
}git clone https://github.com/kevint-cerebras/cerebras-code-cli.git
cd cerebras-code-cli
bun install
bun devKevin Β· Isaac Β· Daniel Β· Pearl
Built with β‘ by Cerebras
