- Model ID:
gpt-4o - Provider: OpenAI
- Strengths: General-purpose coding, broad knowledge base
- Context: 128K tokens
Add to ~/.config/opencode/config.json:
{
"provider": "openai-compatible",
"apiKey": "your-llmgateway-api-key",
"baseUrl": "https://api.llmgateway.io/v1",
"model": "gpt-4o"
}Or via environment:
export OPENCODE_PROVIDER="openai-compatible"
export OPENCODE_API_KEY="your-llmgateway-api-key"
export OPENCODE_BASE_URL="https://api.llmgateway.io/v1"
export OPENCODE_MODEL="gpt-4o"opencode --model gpt-4o "convert this Python to TypeScript"- General coding tasks
- Cross-language development
- API integrations
- Code translation between languages
- Broad technical questions
Mid-tier - good all-around choice for varied tasks.