File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ If there are additional providers you want to use you can submit a PR to the [Mo
6565
6666Some basic configuration is available in the global config file.
6767
68- ``` toml title="~/.config/opencode/config.toml"
68+ ``` toml
69+ # ~/.config/opencode/config
6970theme = " opencode"
7071provider = " anthropic"
7172model = " claude-sonnet-4-20250514"
@@ -74,7 +75,8 @@ autoupdate = true
7475
7576You can also extend the models.dev database with your own providers and models by placing a ` provider.toml ` file in ` ~/.config/opencode/providers ` .
7677
77- ``` toml title="~/.config/opencode/providers/openrouter/provider.toml"
78+ ``` toml
79+ # ~/.config/opencode/providers/openrouter/provider.toml
7880[provider ]
7981name = " OpenRouter"
8082env = [" OPENROUTER_API_KEY" ]
@@ -84,7 +86,8 @@ npm = "@openrouter/ai-sdk-provider"
8486
8587And models in ` ~/.config/opencode/providers/openrouter/models/[model-id] ` .
8688
87- ``` toml title="~/.config/opencode/providers/openrouter/models/anthropic/claude-3.5-sonnet.toml"
89+ ``` toml
90+ # ~/.config/opencode/providers/openrouter/models/anthropic/claude-3.5-sonnet.toml
8891name = " Claude 4 Sonnet"
8992attachment = true
9093reasoning = false
You can’t perform that action at this time.
0 commit comments