- Model ID:
qwen-coder-plus-latest - Provider: Alibaba
- Strengths: Code-specialized, strong at generation, open-source foundation
- Context: 128K tokens
Add to ~/.config/opencode/config.json:
{
"provider": "openai-compatible",
"apiKey": "your-llmgateway-api-key",
"baseUrl": "https://api.llmgateway.io/v1",
"model": "qwen-coder-plus-latest"
}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="qwen-coder-plus-latest"opencode --model qwen-coder-plus-latest "generate a REST API client"- Code generation from descriptions
- Boilerplate creation
- Function implementation
- Code translation
- Test generation
Budget - cost-effective for code-focused tasks.