summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-07-26 16:56:38 -0500
committerGitHub <[email protected]>2025-07-26 16:56:38 -0500
commite827294c9b56ead67a91614ad9b670fe49de3ad9 (patch)
tree8c2c8e77674b2b57d9d17153e3734c4be5e88aab
parent7cf4ed6ad615de49be157688a4d98212d69c2463 (diff)
downloadopencode-e827294c9b56ead67a91614ad9b670fe49de3ad9.tar.gz
opencode-e827294c9b56ead67a91614ad9b670fe49de3ad9.zip
docs: document small_model cfg option (#1347)
-rw-r--r--packages/web/src/content/docs/docs/config.mdx7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/web/src/content/docs/docs/config.mdx b/packages/web/src/content/docs/docs/config.mdx
index 8b9df9ce1..34184107b 100644
--- a/packages/web/src/content/docs/docs/config.mdx
+++ b/packages/web/src/content/docs/docs/config.mdx
@@ -63,16 +63,19 @@ opencode comes with two built-in modes: _build_, the default with all tools enab
### Models
-You can configure the providers and models you want to use in your opencode config through the `provider` and `model` options.
+You can configure the providers and models you want to use in your opencode config through the `provider`, `model` and `small_model` options.
```json title="opencode.json"
{
"$schema": "https://opencode.ai/config.json",
"provider": {},
- "model": ""
+ "model": "anthropic/claude-sonnet-4-20250514",
+ "small_model": "anthropic/claude-3-5-haiku-20241022"
}
```
+The `small_model` option configures a separate model for lightweight tasks like summarization and title generation. By default, opencode tries to use a cheaper model if one is available from your provider, otherwise it falls back to your main model.
+
You can also configure [local models](/docs/models#local). [Learn more](/docs/models).
---