OpenCode
OpenCode Custom Model Configuration and Usage Tips
· ☕ 2 min read
References: OpenCode Config, Providers OpenCode uses the OpenAI Chat Completions API. When connecting to a custom gateway, declare the endpoint and the model list in the provider block of opencode.jsonc. 1. Installation and Configuration File 1 npm install -g opencode-ai The user configuration is at ~/.config/opencode/opencode.jsonc by default (opencode.json also