opencode-providerslisted
Install: claude install-skill Timmy6942025/opencode-builder-skill
# OpenCode Providers
> **📚 Official Docs:** For the latest information, always refer to the official documentation:
> [https://opencode.ai/docs/providers/](https://opencode.ai/docs/providers/)
## Overview
OpenCode uses the [AI SDK](https://ai-sdk.dev/) and [Models.dev](https://models.dev) to support **75+ LLM providers** and local models. Providers are configured through `opencode.json` and authenticated via the `/connect` command.
**Quick start:**
1. Run `/connect` in the TUI and select your provider
2. Enter your API key when prompted
3. Run `/models` to select a model
### Credentials
API keys added via `/connect` are stored in `~/.local/share/opencode/auth.json`.
### Provider Config
Customize providers through the `provider` section in `opencode.json`:
```json
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"options": {
"baseURL": "https://api.anthropic.com/v1"
}
}
}
}
```
**Key config fields:**
- `npm` — AI SDK package (e.g. `@ai-sdk/openai-compatible` for OpenAI-compatible endpoints, `@ai-sdk/openai` for `/v1/responses` endpoints)
- `name` — Display name in UI
- `options.baseURL` — API endpoint URL
- `options.apiKey` — API key (or use `/connect`)
- `options.headers` — Custom headers sent with each request
- `models` — Map of model IDs to configurations
- `limit.context` — Maximum input tokens the model accepts
- `limit.output` — Maximum tokens the model can generate
---
## OpenCode Zen
OpenCode