Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions packages/web/src/content/docs/agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,29 @@ The model ID in your OpenCode config uses the format `provider/model-id`. For ex

---

### Variant

Set the default [model variant](/docs/models#variants) for an agent with the `variant` option.

```json title="opencode.json"
{
"agent": {
"build": {
"model": "anthropic/claude-sonnet-4-20250514",
"variant": "max"
}
}
}
```

:::note
The variant only applies when the agent's configured `model` matches the model currently in use. You need to set both `model` and `variant` together.
:::

Available variant names depend on the provider. For example, Anthropic supports `high` and `max`, while OpenAI supports `low`, `medium`, `high`, and others. Learn more about [variants](/docs/models#variants).

---

### Tools

Control which tools are available in this agent with the `tools` config. You can enable or disable specific tools by setting them to `true` or `false`.
Expand Down
Loading