QwenLM/qwen-code
Tool · Free
Qwen Code is an open-source coding agent for the terminal and other interfaces, with MCP, skills, and multi-agent workflows. Supports several API protocols and local models through Ollama or vLLM.
What you can use for free
Qwen Code under Apache-2.0 can run without a license fee. A local model uses your own hardware and has a separate license. Free Qwen OAuth access closed on April 15, 2026.
Paid features and costs
Paid external APIs are billed under provider terms; Alibaba Cloud Coding Plan uses a fixed fee, while Token Plan bills actual tokens. Pricing and quotas depend on the chosen plan and region.
Access and limitations
Qwen Code is free under Apache-2.0; local models require your own resources and a separate license, while external APIs use provider pricing. Free Qwen OAuth access closed on April 15, 2026.
Use cases
- Develop a project with your chosen model provider
- Use a coding agent with local inference
Example workflow
A possible workflow; this is not a report of hands-on testing.
Example workflow with QwenLM/qwen-code: Develop a project with your chosen model provider.
Before you start
- A repository, a description of one change, and a reproducible example of the expected behavior.
- Project context: affected files, constraints, and the established validation method.
Steps
- For the task “Develop a project with your chosen model provider”: open the relevant project and let the agent inspect the affected implementation before making changes.
- Set a bounded task with completion criteria; review the proposed changes and how they address the requirement.
- Run the appropriate project checks and compare behavior before and after the change.
Check your result
- The change solves the stated task and does not touch unrelated files unnecessarily.
- Investigate check failures; review generated code, configuration, and data access permissions.
Choosing QwenLM/qwen-code
Develop a project with your chosen model provider
Choose this when
- Develop a project with your chosen model provider
- Use a coding agent with local inference
Consider alternatives when
- When choosing for this topic, compare QwenLM/qwen-code with OpenCode. A candidate to compare under the topic: Terminal agents, Agent orchestration. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare QwenLM/qwen-code with Gemini CLI. A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Requirements
- NPM installation requires Node.js 22+.
- After starting qwen, configure the provider through /auth or settings.json; local inference requires your own compatible endpoint. The out-of-session qwen auth command has been removed.
Things to consider
- Costs and limits of free use: Paid external APIs are billed under provider terms; Alibaba Cloud Coding Plan uses a fixed fee, while Token Plan bills actual tokens. Pricing and quotas depend on the chosen plan and region.
- Terms of use: Apache-2.0 for Qwen Code; check the chosen models' licenses separately.
- The former free Qwen OAuth is no longer offered in /auth. The README marks Web UI and daemon as experimental; assess suitability for your own environment separately.
Frequently asked questions
What can you use for free in QwenLM/qwen-code?
Qwen Code under Apache-2.0 can run without a license fee. A local model uses your own hardware and has a separate license. Free Qwen OAuth access closed on April 15, 2026.
What additional costs might arise with QwenLM/qwen-code?
Paid external APIs are billed under provider terms; Alibaba Cloud Coding Plan uses a fixed fee, while Token Plan bills actual tokens. Pricing and quotas depend on the chosen plan and region.
What terms of use matter for QwenLM/qwen-code?
Apache-2.0 for Qwen Code; check the chosen models' licenses separately.
How do you get started with QwenLM/qwen-code?
For the task “Develop a project with your chosen model provider”: open the relevant project and let the agent inspect the affected implementation before making changes. Set a bounded task with completion criteria; review the proposed changes and how they address the requirement. Run the appropriate project checks and compare behavior before and after the change.
What should you consider when choosing QwenLM/qwen-code?
The README states a Windows installer and desktop application; NPM requires Node.js 22+. External tool compatibility depends on their dependencies.
How do I prepare Qwen Code to run?
NPM installation requires Node.js 22+. Configure access to the chosen provider separately; local models connect through Ollama or vLLM.
Can Qwen Code run from a script or my own application?
For headless workflows, qwen -p is available; integrations have TypeScript, Python, and Java SDKs. qwen serve provides an HTTP/SSE ACP interface and experimental Web UI. These are different ways to access the agent; chosen model costs still apply.
Related tasks and approaches
- OpenCode
A candidate to compare under the topic: Terminal agents, Agent orchestration. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- Gemini CLI
A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- OpenAI Codex CLI
A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
Apache-2.0 for Qwen Code; check the chosen models' licenses separately.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsUsage details
The README states a Windows installer and desktop application; NPM requires Node.js 22+. External tool compatibility depends on their dependencies.
Technologies and topics
- MCP
- Ollama