docs: zen

This commit is contained in:
Jay V
2025-09-16 13:26:49 -04:00
parent 32a045f60b
commit 7f9d08b556
3 changed files with 38 additions and 15 deletions

View File

@@ -87,7 +87,7 @@ You can also install it with the following:
npm install -g opencode-ai
```
Support for installing opencode on Windows using the bun package manager is currently in progress.
Support for installing opencode on Windows using Bun is currently in progress.
You can also grab the binary from the [Releases](https://github.com/sst/opencode/releases).
@@ -101,19 +101,22 @@ If you are new to using LLM providers, we recommend using [opencode zen](/docs/z
It's a curated list of models that have been tested and verified by the opencode
team.
1. Sign in to **<a href={console}>opencode zen</a>** and put in your billing
details.
2. Copy your API key.
3. Run `opencode auth login`, select opencode, and add your API key.
1. Run `opencode auth login`, select opencode, and head to [opencode.ai/auth](https://opencode.ai/auth).
2. Sign in, add your billing details, and copy your API key.
3. Paste your API key.
```bash
$ opencode auth login
┌ Add credential
Select provider
opencode
...
Select provider
│ opencode
● Create an api key at https://opencode.ai/auth
◆ Enter your API key
│ _
```

View File

@@ -57,9 +57,25 @@ tested and verified to work well with opencode. [Learn more](/docs/zen).
If you are new, we recommend starting with opencode zen.
:::
1. You sign in to **<a href={console}>opencode zen</a>** and get your API key.
2. You run `opencode auth login` and select opencode and add your API key.
3. Run `/models` in the TUI to see the list of models we recommend.
1. Run `opencode auth login`, select opencode, and head to [opencode.ai/auth](https://opencode.ai/auth).
2. Sign in, add your billing details, and copy your API key.
3. Paste your API key.
```bash
$ opencode auth login
┌ Add credential
◇ Select provider
│ opencode
● Create an api key at https://opencode.ai/auth
◆ Enter your API key
│ _
```
4. Run `/models` in the TUI to see the list of models we recommend.
It works like any other provider in opencode. And is completely optional to use
it.

View File

@@ -49,8 +49,9 @@ opencode zen is an AI gateway that gives you access to these models.
opencode zen works like any other provider in opencode.
1. You sign in to **<a href={console}>opencode zen</a>** and get your API key.
2. You run `opencode auth login` and select opencode and add your API key.
1. You sign in to **<a href={console}>opencode zen</a>**, add your billing
details, and copy your API key.
2. You run `opencode auth login`, select opencode, and paste your API key.
3. Run `/models` in the TUI to see the list of models we recommend.
You are charged per request and you can add credits to your account.
@@ -75,8 +76,7 @@ You can also access our models through the following API endpoints.
## Pricing
Below are the models that we currently support and their prices **per 1M
tokens**.
We support a pay-as-you-go model. Below are the prices **per 1M tokens**.
| Model | Input | Output | Cached Read | Cached Write |
| ------------------------------- | ------ | ------ | ----------- | ------------ |
@@ -95,6 +95,10 @@ Credit card fees are passed along at cost; we dont charge anything beyond tha
Grok Code Fast 1 is currently free on opencode for a limited time. The xAI team is using this time to collect feedback and improve Grok Code.
:::tip
Subscription plans and a free tier are coming soon.
:::
<a href={email}>Contact us</a> if you have any questions.
---