summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-08-01 18:30:29 -0400
committerJay V <[email protected]>2025-08-01 18:30:29 -0400
commitfa9db3c16799a003b58f503f776c4b7339036499 (patch)
tree32aad7a129cfa91f6ec0fb3bb64fa39023cfa7e0
parent5a727c0794dfe09dcbcb7b9cc344aa5b3cfe97c0 (diff)
downloadopencode-fa9db3c16799a003b58f503f776c4b7339036499.tar.gz
opencode-fa9db3c16799a003b58f503f776c4b7339036499.zip
docs: cerebras
-rw-r--r--packages/web/src/content/docs/docs/providers.mdx118
1 files changed, 37 insertions, 81 deletions
diff --git a/packages/web/src/content/docs/docs/providers.mdx b/packages/web/src/content/docs/docs/providers.mdx
index afc39d746..213c40bad 100644
--- a/packages/web/src/content/docs/docs/providers.mdx
+++ b/packages/web/src/content/docs/docs/providers.mdx
@@ -327,6 +327,43 @@ Or if you already have an API key, you can select **Manually enter API Key** and
---
+### Cerebras
+
+1. Head over to the [Cerebras console](https://inference.cerebras.ai/), create an account, and generate an API key.
+
+
+2. Run `opencode auth login` and select **Cerebras**.
+
+ ```bash
+ $ opencode auth login
+
+ ┌ Add credential
+ │
+ ◆ Select provider
+ │ ● Cerebras
+ │ ...
+ └
+ ```
+
+3. Enter your Cerebras API key.
+
+ ```bash
+ $ opencode auth login
+
+ ┌ Add credential
+ │
+ ◇ Select provider
+ │ Cerebras
+ │
+ ◇ Enter your API key
+ │ _
+ └
+ ```
+
+4. Run the `/models` command to select a model like _Qwen 3 Coder 480B_.
+
+---
+
### DeepSeek
1. Head over to the [DeepSeek console](https://platform.deepseek.com/), create an account, and click **Create new API key**.
@@ -721,87 +758,6 @@ https://platform.openai.com/api-keys
}
```
-{ /*
----
-
-TODO: Test a model that actually works, currently getting errors form the API
-for Qwen non-thinking models.
-
-### Cerebras
-
-Cerebras offers fast inference with generous free tiers and competitive pricing.
-
-1. Head over to the [Cerebras console](https://inference.cerebras.ai/), create an account, and generate an API key.
-
-2. Run `opencode auth login` and select **Other**.
-
- ```bash
- $ opencode auth login
-
- ┌ Add credential
- │
- ◆ Select provider
- │ ...
- │ ● Other
- └
- ```
-
-3. Enter `cerebras` as the provider ID.
-
- ```bash
- $ opencode auth login
-
- ┌ Add credential
- │
- ◇ Select provider
- │ Other
- │
- ◇ Enter provider id
- │ cerebras
- └
- ```
-
-4. Enter your Cerebras API key.
-
- ```bash
- $ opencode auth login
-
- ┌ Add credential
- │
- ◇ Enter your API key
- │ csk-...
- └
- ```
-
-5. Configure Cerebras in your opencode config.
-
- ```json title="opencode.json" "cerebras" {5-19}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "cerebras": {
- "npm": "@ai-sdk/cerebras",
- "name": "Cerebras",
- "options": {
- "baseURL": "https://api.cerebras.ai/v1"
- },
- "models": {
- "qwen-3-235b-a22b": {
- "name": "Qwen-3-235b-a22b"
- },
- "llama-3.3-70b": {
- "name": "Llama-3.3-70b"
- }
- }
- }
- }
- }
- ```
-
-6. Run the `/models` command to select a Cerebras model.
-
-*/ }
-
---
### Together AI