docs: rename opencode to OpenCode

This commit is contained in:
Jay V
2025-10-03 13:46:56 -04:00
parent 4159db4549
commit 6378e6c06f
19 changed files with 133 additions and 133 deletions

View File

@@ -3,13 +3,13 @@ title: Models
description: Configuring an LLM provider and model.
---
opencode uses the [AI SDK](https://ai-sdk.dev/) and [Models.dev](https://models.dev) to support for **75+ LLM providers** and it supports running local models.
OpenCode uses the [AI SDK](https://ai-sdk.dev/) and [Models.dev](https://models.dev) to support for **75+ LLM providers** and it supports running local models.
---
## Providers
Most popular providers are preloaded by default. If you've added the credentials for a provider through `opencode auth login`, they'll be available when you start opencode.
Most popular providers are preloaded by default. If you've added the credentials for a provider through `opencode auth login`, they'll be available when you start OpenCode.
Learn more about [providers](/docs/providers).
@@ -35,7 +35,7 @@ Consider using one of the models we recommend.
However, there are a only a few of them that are good at both generating code and tool calling.
Here are the ones we recommend with opencode:
Here are the ones we recommend with OpenCode:
- Claude Sonnet 4
- Claude Opus 4
@@ -49,7 +49,7 @@ Here are the ones we recommend with opencode:
## Set a default
To set one of these as the default model, you can set the `model` key in your
opencode config.
OpenCode config.
```json title="opencode.json" {3}
{
@@ -139,11 +139,11 @@ You can also define custom models that extend built-in ones and can optionally u
## Loading models
When opencode starts up, it checks for models in the following priority order:
When OpenCode starts up, it checks for models in the following priority order:
1. The `--model` or `-m` command line flag. The format is the same as in the config file: `provider_id/model_id`.
2. The model list in the opencode config.
2. The model list in the OpenCode config.
```json title="opencode.json"
{