diff options
| author | Dax Raad <[email protected]> | 2025-06-17 12:17:45 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-17 12:17:45 -0400 |
| commit | 54c86ed43a108c7e4941a68952d3e7ba3271c680 (patch) | |
| tree | a51ea5aee0f4c934302dcdda32fd168cb1590bac /README.md | |
| parent | 676d75ee750fbd4284254ca9d8168ef8e4b84ab6 (diff) | |
| download | opencode-54c86ed43a108c7e4941a68952d3e7ba3271c680.tar.gz opencode-54c86ed43a108c7e4941a68952d3e7ba3271c680.zip | |
docs: readme
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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. |
