summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-07-19 12:40:28 -0400
committerDax Raad <[email protected]>2025-07-19 12:41:58 -0400
commit86d5b25d1831d378f358b46598d4de06b9eaa8f9 (patch)
treee1d6b0741f5ad48af684a55ffa4caa48da7a6b90 /packages/web/src/content/docs
parent2b44dbdbf105f1c5d1cd34b7ae86925ff41e4c79 (diff)
downloadopencode-86d5b25d1831d378f358b46598d4de06b9eaa8f9.tar.gz
opencode-86d5b25d1831d378f358b46598d4de06b9eaa8f9.zip
pass through model.options properly without having to nest it under provider name. you may have to update your configs see https://opencode.ai/docs/models/#openrouter for an example
Diffstat (limited to 'packages/web/src/content/docs')
-rw-r--r--packages/web/src/content/docs/docs/models.mdx42
1 files changed, 42 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/docs/models.mdx b/packages/web/src/content/docs/docs/models.mdx
index cde1d2a41..894c72f08 100644
--- a/packages/web/src/content/docs/docs/models.mdx
+++ b/packages/web/src/content/docs/docs/models.mdx
@@ -61,6 +61,48 @@ You can customize the base URL for any provider by setting the `baseURL` option.
---
+### OpenRouter
+
+Many OpenRouter models are preloaded by default - you can customize these or add your own.
+
+Here's an example of specifying a provider
+
+```json title="opencode.json"
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "openrouter": {
+ "models": {
+ "moonshotai/kimi-k2": {
+ "options": {
+ "provider": {
+ "order": ["baseten"],
+ "allow_fallbacks": false
+ }
+ }
+ }
+ }
+ }
+ }
+}
+```
+
+You can also add additional models
+
+```json title="opencode.json"
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "openrouter": {
+ "models": {
+ "somecoolnewmodel": {},
+ }
+ }
+ }
+}
+
+---
+
### Local
You can configure local model like ones served through LM Studio or Ollama. To