OpenCode

Integration status
  • Recommended protocol: OpenAI-compatible Chat Completions
  • Configuration checked: July 15, 2026 (official OpenCode provider documentation)
  • Runtime verification: Pending

OpenCode supports custom providers, but provider package names and configuration fields can change. Verify your installed version before publishing or pasting a complete configuration file.

Safe setup process

  1. Add a custom OpenAI-compatible provider named GetRouter.
  2. Store YOUR_API_KEY in the credential method supported by your OpenCode version.
  3. Set the Base URL to https://getrouter.ai/v1 if the provider appends /chat/completions or /responses.
  4. Register an exact MODEL_ID from Models.
  5. Select the provider/model and send a read-only test.
  6. Verify streaming and tool calling independently.

Do not guess the provider's npm adapter or JSON keys. Use the current OpenCode provider documentation for your installed release.