logo

OpenCode Configuration Guide

Website: https://opencode.ai (click to jump!)

Configuration Steps

Create configuration file

Create opencode.json configuration file in the project root directory:

{
  "$schema": "https://opencode.ai/config.json",
  "theme": "opencode",
  "provider": {
    "google": {
      "options": {
        "apiKey": "YOUR_API_KEY_HERE",
        "baseURL": "https://llmoxy.com/v1"
      }
    }
  },
  "model": "google/gpt-5.4",
  "autoupdate": true
}

Configuration explanation

  • apiKey: Replace YOUR_API_KEY_HERE with your LLMoxy token
  • baseURL: API access point https://llmoxy.com/v1
  • model: Use google/gpt-5.4 model

💡 Tip Please use a token from the auto group. After configuration, OpenCode will automatically use LLMoxy API services.