Skip to content

Instantly share code, notes, and snippets.

@steebchen
Created January 25, 2026 17:28
Show Gist options
  • Select an option

  • Save steebchen/ac95021c600cdf2c5b91ddcab7dd14af to your computer and use it in GitHub Desktop.

Select an option

Save steebchen/ac95021c600cdf2c5b91ddcab7dd14af to your computer and use it in GitHub Desktop.
Qwen Coder Plus with OpenCode via LLM Gateway

Qwen Coder Plus with OpenCode via LLM Gateway

Model Overview

  • Model ID: qwen-coder-plus-latest
  • Provider: Alibaba
  • Strengths: Code-specialized, strong at generation, open-source foundation
  • Context: 128K tokens

Configuration

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"

Usage

opencode --model qwen-coder-plus-latest "generate a REST API client"

Best Use Cases

  • Code generation from descriptions
  • Boilerplate creation
  • Function implementation
  • Code translation
  • Test generation

Pricing Tier

Budget - cost-effective for code-focused tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment