diff options
| author | Jay V <[email protected]> | 2025-10-06 17:00:10 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-10-06 17:00:10 -0400 |
| commit | 1db028dc05700806aa007520522a121f6c481355 (patch) | |
| tree | 7c385a5477f4cc9b4f139d41ac16ab4dae5b84b7 /packages/web/src/content/docs | |
| parent | b351b75156b3dec1496e849f0d55e8d5655876e4 (diff) | |
| download | opencode-1db028dc05700806aa007520522a121f6c481355.tar.gz opencode-1db028dc05700806aa007520522a121f6c481355.zip | |
docs: fix styles and zen doc, closes #2912
Diffstat (limited to 'packages/web/src/content/docs')
| -rw-r--r-- | packages/web/src/content/docs/config.mdx | 34 | ||||
| -rw-r--r-- | packages/web/src/content/docs/zen.mdx | 6 |
2 files changed, 23 insertions, 17 deletions
diff --git a/packages/web/src/content/docs/config.mdx b/packages/web/src/content/docs/config.mdx index f00af8ecb..53b06f9d0 100644 --- a/packages/web/src/content/docs/config.mdx +++ b/packages/web/src/content/docs/config.mdx @@ -69,6 +69,23 @@ Your editor should be able to validate and autocomplete based on the schema. --- +### TUI + +You can configure TUI-specific settings through the `tui` option. + +```json title="opencode.json" +{ + "$schema": "https://opencode.ai/config.json", + "tui": { + "scroll_speed": 3 + } +} +``` + +[Learn more about using the TUI here](/docs/tui). + +--- + ### Models You can configure the providers and models you want to use in your OpenCode config through the `provider`, `model` and `small_model` options. @@ -204,23 +221,6 @@ OpenCode will automatically download any new updates when it starts up. You can --- -### TUI - -You can configure TUI-specific settings through the `tui` option. - -```json title="opencode.json" -{ - "$schema": "https://opencode.ai/config.json", - "tui": { - "scroll_speed": 3 - } -} -``` - -[Learn more about using the TUI here](/docs/tui). - ---- - ### Formatters You can configure code formatters through the `formatter` option. diff --git a/packages/web/src/content/docs/zen.mdx b/packages/web/src/content/docs/zen.mdx index 0ccfbedd2..6bbe34a84 100644 --- a/packages/web/src/content/docs/zen.mdx +++ b/packages/web/src/content/docs/zen.mdx @@ -73,6 +73,10 @@ You can also access our models through the following API endpoints. | Grok Code Fast 1 | grok-code | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` | | Kimi K2 | kimi-k2 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` | +The [model id](/docs/config/#models) in your OpenCode config +uses the format `opencode/<model-id>`. For example, for GPT 5 Codex, you would +use `opencode/gpt-5-codex` in your config. + --- ## Pricing @@ -94,6 +98,8 @@ We support a pay-as-you-go model. Below are the prices **per 1M tokens**. | GPT 5 | $1.25 | $10.00 | $0.125 | - | | GPT 5 Codex | $1.25 | $10.00 | $0.125 | - | +You might notice _Claude Haiku 3.5_ in your usage history. This is a [low cost model](/docs/config/#models) that's used to generate the titles of your sessions. + :::note Credit card fees are passed along at cost; we don't charge anything beyond that. ::: |
