summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-17 12:17:45 -0400
committerDax Raad <[email protected]>2025-06-17 12:17:45 -0400
commit54c86ed43a108c7e4941a68952d3e7ba3271c680 (patch)
treea51ea5aee0f4c934302dcdda32fd168cb1590bac /README.md
parent676d75ee750fbd4284254ca9d8168ef8e4b84ab6 (diff)
downloadopencode-54c86ed43a108c7e4941a68952d3e7ba3271c680.tar.gz
opencode-54c86ed43a108c7e4941a68952d3e7ba3271c680.zip
docs: readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/README.md b/README.md
index d649fa27c..ebd91d911 100644
--- a/README.md
+++ b/README.md
@@ -73,14 +73,15 @@ model = "claude-sonnet-4-20250514"
autoupdate = true
```
-You can also extend the models.dev database with your own providers and models by placing a `provider.toml` file in `~/.config/opencode/providers`
+You can also extend the models.dev database with your own providers by mirroring the structure found [here](https://github.com/sst/models.dev/tree/dev/providers/anthropic)
+
+Start with a `provider.toml` file in `~/.config/opencode/providers`
```toml
# ~/.config/opencode/providers/openrouter/provider.toml
[provider]
name = "OpenRouter"
env = ["OPENROUTER_API_KEY"]
-id = "openrouter"
npm = "@openrouter/ai-sdk-provider"
```
@@ -104,8 +105,6 @@ context = 200_000
output = 50_000
```
-This mirrors the structure found [here](https://github.com/sst/models.dev/tree/dev/providers/anthropic)
-
### Project Config
Project configuration is optional. You can place an `opencode.json` file in the root of your repo and is meant to be checked in and shared with your team.