You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-4Lines changed: 44 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,51 @@ The Models.dev dataset is also used to detect common environment variables like
61
61
62
62
If there are additional providers you want to use you can submit a PR to the [Models.dev repo](https://github.com/sst/models.dev). If configuring just for yourself check out the Config section below.
63
63
64
+
### Global Config
65
+
66
+
Some basic configuration is available in the global config file.
67
+
68
+
```toml title="~/.config/opencode/config.toml"
69
+
theme = "opencode"
70
+
provider = "anthropic"
71
+
model = "claude-sonnet-4-20250514"
72
+
autoupdate = true
73
+
```
74
+
75
+
You can also extend the models.dev database with your own providers and models by placing a `provider.toml` file in `~/.config/opencode/providers`.
This mirrors the structure found [here](https://github.com/sst/models.dev/tree/dev/providers/anthropic)
105
+
64
106
### Project Config
65
107
66
-
Project configuration is optional. You can place an `opencode.json` file in the root of your repo, and it'll be loaded.
108
+
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.
67
109
68
110
```json title="opencode.json"
69
111
{
@@ -106,9 +148,7 @@ You can use opencode with any provider listed at [here](https://ai-sdk.dev/provi
0 commit comments