Skip to content

Commit 54c86ed

Browse files
committed
docs: readme
1 parent 676d75e commit 54c86ed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,15 @@ model = "claude-sonnet-4-20250514"
7373
autoupdate = true
7474
```
7575

76-
You can also extend the models.dev database with your own providers and models by placing a `provider.toml` file in `~/.config/opencode/providers`
76+
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)
77+
78+
Start with a `provider.toml` file in `~/.config/opencode/providers`
7779

7880
```toml
7981
# ~/.config/opencode/providers/openrouter/provider.toml
8082
[provider]
8183
name = "OpenRouter"
8284
env = ["OPENROUTER_API_KEY"]
83-
id = "openrouter"
8485
npm = "@openrouter/ai-sdk-provider"
8586
```
8687

@@ -104,8 +105,6 @@ context = 200_000
104105
output = 50_000
105106
```
106107

107-
This mirrors the structure found [here](https://github.com/sst/models.dev/tree/dev/providers/anthropic)
108-
109108
### Project Config
110109

111110
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.

0 commit comments

Comments
 (0)