mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 02:34:21 +01:00
docs: zen
This commit is contained in:
@@ -87,7 +87,7 @@ You can also install it with the following:
|
|||||||
npm install -g opencode-ai
|
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).
|
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
|
It's a curated list of models that have been tested and verified by the opencode
|
||||||
team.
|
team.
|
||||||
|
|
||||||
1. Sign in to **<a href={console}>opencode zen</a>** and put in your billing
|
1. Run `opencode auth login`, select opencode, and head to [opencode.ai/auth](https://opencode.ai/auth).
|
||||||
details.
|
2. Sign in, add your billing details, and copy your API key.
|
||||||
2. Copy your API key.
|
3. Paste your API key.
|
||||||
3. Run `opencode auth login`, select opencode, and add your API key.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ opencode auth login
|
$ opencode auth login
|
||||||
|
|
||||||
┌ Add credential
|
┌ Add credential
|
||||||
│
|
│
|
||||||
◆ Select provider
|
◇ Select provider
|
||||||
│ ● opencode
|
│ opencode
|
||||||
│ ...
|
│
|
||||||
|
● Create an api key at https://opencode.ai/auth
|
||||||
|
│
|
||||||
|
◆ Enter your API key
|
||||||
|
│ _
|
||||||
└
|
└
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
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.
|
1. Run `opencode auth login`, select opencode, and head to [opencode.ai/auth](https://opencode.ai/auth).
|
||||||
2. You run `opencode auth login` and select opencode and add your API key.
|
2. Sign in, add your billing details, and copy your API key.
|
||||||
3. Run `/models` in the TUI to see the list of models we recommend.
|
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 works like any other provider in opencode. And is completely optional to use
|
||||||
it.
|
it.
|
||||||
|
|||||||
@@ -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.
|
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.
|
1. You sign in to **<a href={console}>opencode zen</a>**, add your billing
|
||||||
2. You run `opencode auth login` and select opencode and add your API key.
|
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.
|
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.
|
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
|
## Pricing
|
||||||
|
|
||||||
Below are the models that we currently support and their prices **per 1M
|
We support a pay-as-you-go model. Below are the prices **per 1M tokens**.
|
||||||
tokens**.
|
|
||||||
|
|
||||||
| Model | Input | Output | Cached Read | Cached Write |
|
| Model | Input | Output | Cached Read | Cached Write |
|
||||||
| ------------------------------- | ------ | ------ | ----------- | ------------ |
|
| ------------------------------- | ------ | ------ | ----------- | ------------ |
|
||||||
@@ -95,6 +95,10 @@ Credit card fees are passed along at cost; we don’t 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.
|
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.
|
<a href={email}>Contact us</a> if you have any questions.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user