diff options
| author | adamdottv <[email protected]> | 2025-06-23 10:21:21 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-23 10:21:25 -0500 |
| commit | e2e481cbb5c00f7de40d450a50a7c3a2227baa85 (patch) | |
| tree | 803654962a102634579d9f34532ae3f0401ea191 /packages/web/src/content | |
| parent | 5140e83012ddb540a36ca4830205f88194bd706c (diff) | |
| download | opencode-e2e481cbb5c00f7de40d450a50a7c3a2227baa85.tar.gz opencode-e2e481cbb5c00f7de40d450a50a7c3a2227baa85.zip | |
docs: disabled_providers
Diffstat (limited to 'packages/web/src/content')
| -rw-r--r-- | packages/web/src/content/docs/docs/config.mdx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/docs/config.mdx b/packages/web/src/content/docs/docs/config.mdx index 7e01c7bf4..e9a493afc 100644 --- a/packages/web/src/content/docs/docs/config.mdx +++ b/packages/web/src/content/docs/docs/config.mdx @@ -89,3 +89,21 @@ You can configure MCP servers you want to use through the `mcp` option. ``` [Learn more here](/docs/mcp-servers). + +--- + +### Disabled providers + +You can disable providers that are loaded automatically through the `disabled_providers` option. This is useful when you want to prevent certain providers from being loaded even if their credentials are available. + +```json title="opencode.json" +{ + "$schema": "https://opencode.ai/config.json", + "disabled_providers": ["openai", "gemini"] +} +``` + +The `disabled_providers` option accepts an array of provider IDs. When a provider is disabled: +- It won't be loaded even if environment variables are set +- It won't be loaded even if API keys are configured through `opencode auth login` +- The provider's models won't appear in the model selection list |
