summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-10 21:34:28 -0400
committerDax Raad <[email protected]>2025-08-10 21:34:46 -0400
commitd8dc23bde9dfe5d7cba911253e51fa258d11b4b9 (patch)
treeca108b9a2d9f2110f0d272ad81a89c0d13836bb1 /packages/web/src/content/docs
parent1c83ef75a2f0bdff400f5f70c7b4780126283f36 (diff)
downloadopencode-d8dc23bde9dfe5d7cba911253e51fa258d11b4b9.tar.gz
opencode-d8dc23bde9dfe5d7cba911253e51fa258d11b4b9.zip
pass through additional agent options to the provider
Diffstat (limited to 'packages/web/src/content/docs')
-rw-r--r--packages/web/src/content/docs/docs/agents.mdx35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/docs/agents.mdx b/packages/web/src/content/docs/docs/agents.mdx
index 659c8ee5f..52bb8ed14 100644
--- a/packages/web/src/content/docs/docs/agents.mdx
+++ b/packages/web/src/content/docs/docs/agents.mdx
@@ -360,6 +360,41 @@ The `mode` option can be set to `primary`, `subagent`, or `all`. If no `mode` is
---
+### Additional options
+
+Any other options you specify in your agent configuration will be passed through directly to the provider as model options. This allows you to use provider-specific features and parameters.
+
+```json title="opencode.json"
+{
+ "agent": {
+ "reasoning": {
+ "model": "openai/gpt-5-turbo",
+ "reasoningEffort": "high",
+ "textVerbosity": "medium"
+ }
+ }
+}
+```
+
+For example, with OpenAI's reasoning models, you can control the reasoning effort:
+
+```json title="opencode.json"
+{
+ "agent": {
+ "deep-thinker": {
+ "description": "Agent that uses high reasoning effort for complex problems",
+ "model": "openai/gpt-5-turbo",
+ "reasoningEffort": "high",
+ "textVerbosity": "low"
+ }
+ }
+}
+```
+
+These additional options are model and provider-specific. Check your provider's documentation for available parameters.
+
+---
+
## Create agents
You can create new agents using the following command: