cd /news/developer-tools/config-qwen-in-opencode · home topics developer-tools article
[ARTICLE · art-81397] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Config Qwen in OpenCode

A developer shared a configuration guide for integrating Qwen AI models into OpenCode on Ubuntu Linux, providing the JSON configuration file path and code snippet for setting up the Qwen provider with API tokens.

read1 min views1 publishedJul 30, 2026

OpenCode config in Ubuntu

آدرس کانفیگ اوپن کد در لینوکس اوبونتو

~/.config/opencode/opencode.json

In "provider" set the "qwen" section with your token

در بخش "provider" قسمت "qwen" را با توکن خودتان به شکل زیر قرار دهید

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "qwen": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "QwenAI",
      "options": {
	       "baseURL": "https://qwen.aikit.club/v1",
	       "apiKey": "<TOKEN>"
      },
      "models": {
	      "qwen3.7-plus": {
	        "name": "Qwen 3.7 Plus"
	      },
	      "qwen3.7-max": {
	        "name": "Qwen 3.7 Max"
	      },
      }
    }
  }
}

OpenCode config in Ubuntu

آدرس کانفیگ اوپن کد در لینوکس اوبونتو

␃WPNCODE0␃

In "provider" set the "qwen" section with your token

در بخش "provider" قسمت "qwen" را با توکن خودتان به شکل زیر قرار دهید

␃WPNCODE1␃

── more in #developer-tools 4 stories · sorted by recency
── more on @opencode 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/config-qwen-in-openc…] indexed:0 read:1min 2026-07-30 ·