Providers
Using any LLM provider in OpenCode.
OpenCode uses the AI SDK and Models.dev to support 75+ LLM providers and it supports running local models.
To add a provider you need to:
- Add the API keys for the provider using the
/connectcommand. - Configure the provider in your OpenCode config.
Credentials
When you add a provider’s API keys with the /connect command, they are stored
in