summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-07-16 14:56:24 -0400
committerDax Raad <[email protected]>2025-07-16 14:56:24 -0400
commit93c779cf4832ce2166ae1012047015fec19ae2c0 (patch)
treeefd0718912a87c54acc65a5aa15f7acb8ed8c26e /packages/web/src
parent360c04c5429f070f05ec00a4dd4d727818f1a2ba (diff)
downloadopencode-93c779cf4832ce2166ae1012047015fec19ae2c0.tar.gz
opencode-93c779cf4832ce2166ae1012047015fec19ae2c0.zip
docs: better variable examples
Diffstat (limited to 'packages/web/src')
-rw-r--r--packages/web/src/content/docs/docs/config.mdx8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/web/src/content/docs/docs/config.mdx b/packages/web/src/content/docs/docs/config.mdx
index 9a64597c5..985a0fe78 100644
--- a/packages/web/src/content/docs/docs/config.mdx
+++ b/packages/web/src/content/docs/docs/config.mdx
@@ -188,7 +188,9 @@ Use `{env:VARIABLE_NAME}` to substitute environment variables:
"model": "{env:OPENCODE_MODEL}",
"provider": {
"anthropic": {
- "api_key": "{env:ANTHROPIC_API_KEY}"
+ "options": {
+ "apiKey": "{env:ANTHROPIC_API_KEY}"
+ }
}
}
}
@@ -208,7 +210,9 @@ Use `{file:path/to/file}` to substitute the contents of a file:
"instructions": ["{file:./custom-instructions.md}"],
"provider": {
"openai": {
- "api_key": "{file:~/.secrets/openai-key}"
+ "options": {
+ "apiKey": "{file:~/.secrets/openai-key}"
+ }
}
}
}