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.

bash
opencode --version

Connect to ezrouter

Start OpenCode and add ezrouter as a provider through the /connect flow:

  1. Run opencode in your project directory.
  2. Type /connect and pick OpenAI-compatible (or Custom, if

shown).

  1. Set the base URL to https://www.ezrouter.dev/v1.
  2. Paste your API key from the

dashboard.

  1. 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

  • /connect does 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

and divergences.

  • CC Switch — desktop GUI that can manage OpenCode and

Claude Code provider entries together.

  • Pricing — per-model rates.