Integrations
OpenCode
OpenCode is an open-source terminal coding agent. It accepts arbitrary OpenAI-compatible providers, so ezrouter plugs in without a bridge extension.
Install
Install or update OpenCode to v1.14.24 or newer — earlier versions have rough edges around custom providers. See the download page for OS-specific instructions.
opencode --versionConnect to ezrouter
Start OpenCode and add ezrouter as a provider through the /connect flow:
- Run
opencodein your project directory. - Type
/connectand pick OpenAI-compatible (or Custom, if
shown).
- Set the base URL to
https://www.ezrouter.dev/v1. - Paste your API key from the
- Choose a default model from the list OpenCode fetches from
GET /v1/models — for example claude-sonnet-4-6 or deepseek-v4-pro.
OpenCode persists the configuration. The next time you run opencode in the same machine, it reuses the saved provider.
Anthropic surface alternative
If you want to use claude models with their full Anthropic feature set (extended thinking, prompt caching), connect to the Anthropic-compatible surface instead:
- Base URL:
https://www.ezrouter.dev/anthropic/v1 - Provider type: Anthropic-compatible
See Anthropic API guide for surface selection guidance.
Troubleshooting
/connectdoes not show a custom-URL option — upgrade to
v1.14.24 or newer.
401 invalid_api_key— re-paste the key. Keys with trailing
whitespace fail.
- Model list is empty after connecting — the key is valid but has
no models in its allowlist. Contact [email protected].
Next steps
- API overview — surface options
and divergences.
- CC Switch — desktop GUI that can manage OpenCode and
Claude Code provider entries together.
- Pricing — per-model rates.