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
- Add a custom OpenAI-compatible provider named GetRouter.
- Store
YOUR_API_KEYin the credential method supported by your OpenCode version. - Set the Base URL to
https://getrouter.ai/v1if the provider appends/chat/completionsor/responses. - Register an exact
MODEL_IDfrom Models. - Select the provider/model and send a read-only test.
- 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.
