{"slug": "config-qwen-in-opencode", "title": "Config Qwen in OpenCode", "summary": "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.", "body_md": "OpenCode config in Ubuntu\n\nآدرس کانفیگ اوپن کد در لینوکس اوبونتو\n\n```\n~/.config/opencode/opencode.json\n```\n\nIn \"provider\" set the \"qwen\" section with your token\n\nدر بخش \"provider\" قسمت \"qwen\" را با توکن خودتان به شکل زیر قرار دهید\n\n```\n{\n  \"$schema\": \"https://opencode.ai/config.json\",\n  \"provider\": {\n    \"qwen\": {\n      \"npm\": \"@ai-sdk/openai-compatible\",\n      \"name\": \"QwenAI\",\n      \"options\": {\n\t       \"baseURL\": \"https://qwen.aikit.club/v1\",\n\t       \"apiKey\": \"<TOKEN>\"\n      },\n      \"models\": {\n\t      \"qwen3.7-plus\": {\n\t        \"name\": \"Qwen 3.7 Plus\"\n\t      },\n\t      \"qwen3.7-max\": {\n\t        \"name\": \"Qwen 3.7 Max\"\n\t      },\n      }\n    }\n  }\n}\n```\n\nOpenCode config in Ubuntu\n\nآدرس کانفیگ اوپن کد در لینوکس اوبونتو\n\n␃WPNCODE0␃\n\nIn \"provider\" set the \"qwen\" section with your token\n\nدر بخش \"provider\" قسمت \"qwen\" را با توکن خودتان به شکل زیر قرار دهید\n\n␃WPNCODE1␃", "url": "https://wpnews.pro/news/config-qwen-in-opencode", "canonical_source": "https://gist.github.com/SC0d3r/ebe12c7c76d0b30e309553158ce09e49", "published_at": "2026-07-30 16:09:48+00:00", "updated_at": "2026-07-31 05:29:04.267372+00:00", "lang": "en", "topics": ["developer-tools", "artificial-intelligence"], "entities": ["OpenCode", "Qwen", "Ubuntu", "QwenAI"], "alternates": {"html": "https://wpnews.pro/news/config-qwen-in-opencode", "markdown": "https://wpnews.pro/news/config-qwen-in-opencode.md", "text": "https://wpnews.pro/news/config-qwen-in-opencode.txt", "jsonld": "https://wpnews.pro/news/config-qwen-in-opencode.jsonld"}}