Qwen Code
Also known as: Qwen Code CLI, Qwen Code Desktop, QwenLM qwen-code, @qwen-code/qwen-code
Qwen Code is an open source coding agent for the terminal from the Qwen team, released under Apache 2.0 and free to use with Qwen, OpenAI, Anthropic or Gemini compatible providers or a local model. It plans, edits, runs commands, spawns background subagents in git worktrees, keeps project memory, and reviews and fixes pull requests. It also runs headless in CI, through a GitHub Action, from chat apps such as Telegram, DingTalk and Feishu, inside VS Code, JetBrains and Zed, and through SDKs, hooks and MCP.
Qwen Code is an open source AI coding agent for the terminal, published by the Qwen team on GitHub under the Apache 2.0 license, and the Qwen site notes that it is powered by Alibaba Cloud. It began as a fork of Gemini CLI and has been developed independently since its first versions, with more than 29,000 stars, over 600 contributors and frequent releases. The tool is free, and buyers pay whichever model provider they connect, from Qwen subscriptions and Alibaba Cloud plans to other providers or a local model.
It runs as a command line agent, a desktop app, a VS Code extension in beta and an agent inside JetBrains and Zed. The agent edits files, runs shell commands, searches the web, connects to MCP servers and works with GitHub, and it delegates to subagents that run in the background with their own model and tools inside separate git worktrees. Plan mode and five approval modes, from asking before every action to full auto approval, sit beside allow, ask and deny rules, file checkpoints and optional sandboxes.
Auto memory keeps notes per project that can be viewed, edited and cleared. A review command builds and tests changes in an isolated worktree with verifier agents, and an autofix command commits pull request fixes only when the repository's checks pass. Headless runs return JSON for CI, a GitHub Action answers mentions, twelve channels including Telegram, DingTalk, Feishu, GitHub and email start tasks, and computer use and browser use let it operate desktop apps and a signed in Chrome.
There is no charge for Qwen Code itself. Signing in with a Qwen account now needs a paid Plus or Pro subscription, Alibaba Cloud's Coding Plan Pro costs $50 a month with request caps, and pay as you go Qwen models start at about $0.40 per million input tokens.
Everything runs on the developer's machine under Linux, macOS or Windows, with local models through Ollama, vLLM or LM Studio, or hosted Qwen models in Beijing or Singapore. Usage statistics go to Alibaba Cloud unless switched off, OpenTelemetry export is available, and Qwen Code does not train on prompts or code.
System settings let an operator enforce the sign in method, approval modes and MCP servers, but there is no single sign on, admin console or security attestation.
It fits developers and teams who want a free, open source terminal agent with deep Qwen support, a choice of models including local ones, and hooks, SDKs and chat channels to build on. It fits less well for buyers who need vendor support, central administration or compliance reports, and several newer features, such as agent teams, the server daemon and the SDKs, are still marked experimental or alpha.
Vendor details
Canonical URL
https://github.com/QwenLM/qwen-code
Category
Coding agent
Subcategory
Open source terminal coding agent with subagents, project memory, chat channels and SDKs, tuned for Qwen models
Funding status
Open source project of the Qwen team (QwenLM); the Qwen site states it is powered by Alibaba Cloud.
Company status
first party product
Use cases & customers
Primary use cases
Target customers
Deployment options
Integrations
MCP servers over stdio or HTTP with OAuth; GitHub through its command line tool and a GitHub Action; GitHub and GitLab channels; Telegram, WeChat, QQ, DingTalk, WeCom, Feishu and email channels; web fetch and DashScope web search; VS Code extension; JetBrains and Zed through the Agent Client Protocol; OpenAI, Anthropic, Gemini and Vertex AI compatible providers; Ollama, vLLM and LM Studio; OpenTelemetry; Gemini CLI, Claude Code and Qoder extensions.
In practice
A developer runs Qwen Code against a local model served by Ollama, asks it to refactor a payments module in plan mode, approves the plan, and lets an Explore subagent map the code in the background while the main agent edits.
A platform team adds the Qwen Code GitHub Action so that a mention on a pull request runs a review that builds and tests the change in a separate worktree and posts findings inline.
A team in China connects the DingTalk channel so engineers can message the agent to fix a failing test; it works in the repository, runs the tests and replies with the result.
Sources & related URLs
Related / legacy domains
Research sources
Agentic Index coverage score
13.0 / 14 capabilities · 93%
| Integrations & Tool Calling | Full |
|---|---|
|
Built in tools read and write files, run shell commands, keep a todo list, fetch pages and search the web, with search backed by DashScope on Qwen and Model Studio plans. MCP servers connect over stdio or HTTP at user or project scope, with OAuth sign in, per server tool include and exclude lists, and MCP prompts and resources. Pull request fixes push through the GitHub command line tool, review comments post inline on pull requests, and GitHub and GitLab channels pick up repository activity. Sourceqwenlm.github.io/qwen-code-docs/en/users/features/mcpread 2026-11-08 |
|
| Workflow Orchestration | Full |
|
Explore, general purpose and fork subagents run in the background by default, each with its own model and tool allowlist, and can be isolated in their own git worktree. Plan mode, goals, loops and batch commands structure longer work, and background sessions can be reattached later. Agent Teams splits a task into up to three workstreams with one writer pinned to a worktree, and Arena races several models on the same task, though both are marked experimental. Sourceqwenlm.github.io/qwen-code-docs/en/users/features/sub-agentsread 2026-11-08 |
|
| Knowledge Grounding & RAG | Partial |
|
A QWEN.md context file rides along on every request, rules folders add guidance scoped to paths, and @ references pull specific files into a prompt. Web fetch and search bring in outside pages, and an experimental language server mode adds symbol awareness. No embeddings, vector index or semantic search over the codebase or company documents is offered, so the agent finds code by reading and searching files as it works. Sourceqwenlm.github.io/qwen-code-docs/en/users/features/rulesread 2026-11-08 |
|
| Human Oversight & Guardrails | Full |
|
Five approval modes run from read only planning, through asking before every action and auto approving file edits, to an auto mode where a classifier screens each call and falls back to manual after three blocks, and a mode that approves everything. Allow, ask and deny rules decide individual tools and commands, with deny winning. Checkpoints taken before each tool call let restore and rewind undo file changes, and optional sandboxes run tools in Docker, Podman, macOS Seatbelt or Linux bubblewrap. Sourceqwenlm.github.io/qwen-code-docs/en/users/features/approval-moderead 2026-11-08 |
|
| Security, Identity & Governance | Partial |
|
Operators can place system settings that override user and project choices, enforcing the sign in method, allowed approval modes and permitted MCP servers, and project hooks need approval before they run. Sign in uses a Qwen account, API keys or Vertex credentials, prompts and code are not used for training by the tool, and usage statistics go to Alibaba Cloud unless switched off. The local server has no authentication unless a token is required, and there is no single sign on, user roles or security attestation. Sourceqwenlm.github.io/qwen-code-docs/en/users/support/tos-privacyread 2026-11-08 |
|
| Observability & Auditability | Full |
|
OpenTelemetry export sends traces, logs and metrics such as token usage and tool call counts to any OpenTelemetry endpoint or a file, with Alibaba Cloud's monitoring service supported, though prompts are logged by default once telemetry is on. A stats command shows usage by model, tool and skill over days and months, sessions export as web pages, Markdown or JSON, and headless output carries model and tool statistics for each run. Sourceqwenlm.github.io/qwen-code-docs/en/developers/development/telemetryread 2026-11-08 |
|
| Memory & State Persistence | Full |
|
Auto memory is on by default and keeps markdown notes about the developer, their feedback, the project and outside references in a folder per project, with an index file and pinned notes, and each git worktree gets its own folder. Commands view, add, remove and consolidate memories, the files can be edited directly, and a cleanup pass runs once a day after enough sessions. Shared team memory in the repository and a Mem0 integration are optional, and the whole feature can be turned off. Sourceqwenlm.github.io/qwen-code-docs/en/users/features/memoryread 2026-11-08 |
|
| Deployment & Data Residency | Full |
|
Everything runs on the developer's own machine under Linux, macOS or Windows, and local models served by Ollama, vLLM or LM Studio keep code and prompts on that machine entirely. Hosted Qwen models come from Alibaba Cloud endpoints in Beijing for China and Singapore for international users, and no hosted agent service sits between the developer and the model. A self hosted reference deployment for a managed agent exists but is experimental. Sourceqwenlm.github.io/qwen-code-docs/en/users/configuration/model-providersread 2026-11-08 |
|
| Prebuilt Agents / Templates / Packs | Full |
|
Skills for review, batch work, loops and bug fixing come built in alongside Explore, general purpose and fork subagents, and Auto Skill writes new skills from repeated work, marking them stale after 30 days. Extensions install from git, npm or a URL, and the tool loads extensions from the Gemini CLI gallery, plugins from the Claude Code marketplace and Qoder plugins, browsable from a Discover tab. There is no marketplace run by the Qwen team itself. Sourceqwenlm.github.io/qwen-code-docs/en/users/extension/introductionread 2026-11-08 |
|
| Triggers & Channel Coverage | Full |
|
Beyond the interactive terminal, headless runs take a prompt with turn and wall time limits and return text, JSON or streamed JSON for scripts and CI. A GitHub Action answers mentions of the Qwen coder bot to review or triage issues and pull requests, and twelve channels, among them Telegram, WeChat, DingTalk, Feishu, GitHub, GitLab and email, start tasks from messages, with persistent cron loops per channel target. Scheduled tasks inside a session fire on cron while the agent is running and expire after seven days. Sourceqwenlm.github.io/qwen-code-docs/en/users/features/channels/overviewread 2026-11-08 |
|
| Model Flexibility & Routing | Full |
|
Providers connect over OpenAI, Anthropic, Gemini or Vertex AI protocols, with DeepSeek, Grok, MiniMax, Z.AI, Kimi, OpenRouter and others built in, plus Qwen accounts, Alibaba Cloud plans and local models through Ollama, vLLM or LM Studio. A model command switches the main model and sets separate fast, vision and compaction models, and each subagent can run its own model. There is no automatic fallback when a request fails, apart from a vision fallback. Sourceqwenlm.github.io/qwen-code-docs/en/users/configuration/model-providersread 2026-11-08 |
|
| APIs / SDKs / MCP Extensibility | Full |
|
TypeScript, Python and Java SDKs drive the agent from code, the first marked experimental and the others alpha. Hooks on 23 events, from each tool call to session start and end, run commands, HTTP calls or prompts and can block a tool. The agent speaks MCP and the Agent Client Protocol, an experimental server exposes a REST API, headless runs return JSON, and channel plugins and extensions add new surfaces. Sourceqwenlm.github.io/qwen-code-docs/en/users/features/hooksread 2026-11-08 |
|
| Testing, Debugging & Optimization | Full |
|
The review command builds and tests changes in an isolated worktree, runs verifier agents and a reverse audit, and can post findings inline on a pull request. Goals use an independent verifier that checks whether the target was met, and the autofix command commits a pull request fix only when the repository's own checks pass. Arena compares several models on the same task in separate worktrees, though it is still experimental. Sourceqwenlm.github.io/qwen-code-docs/en/users/features/code-reviewread 2026-11-08 |
|
| Browser / Computer-use | Full |
|
Computer use runs through an MCP server or a native driver that exposes 19 desktop operations on macOS, Windows and Linux X11, once the operating system grants accessibility and screen recording rights. Browser use works through a Chrome extension that lets the agent operate the developer's signed in tabs on macOS or Linux, and can be switched off as a skill. Neither is marked experimental, though both need setup beyond the base install. Sourceqwenlm.github.io/qwen-code-docs/en/users/features/computer-useread 2026-11-08 |
|
The Agentic Index coverage score grades every vendor Full, Partial or Not documented against the same 14 buyer facing capabilities, from public evidence only. Each capability links to how all vendors in the index score on it. How this evidence is graded
Pricing
Qwen Code is free under Apache 2.0. Models are paid to the provider: Alibaba Cloud's Coding Plan Pro is $50 a month, and Qwen models on Model Studio start at about $0.40 per million input tokens.
No charge for the agent; model usage is billed by the chosen provider per token, per request plan or through a Qwen subscription.
Included quota
Alibaba Cloud's Coding Plan Pro allows 6,000 requests per 5 hours, 45,000 a week and 90,000 a month across qwen3.7-plus, qwen3.6-plus, qwen3.5-plus, Kimi, GLM and MiniMax models.
What is public
The open source license, the end of the free Qwen allowance, Alibaba Cloud Coding Plan pricing and limits, and per token Model Studio prices.
Billing mechanics
No billing for the agent; the developer pays a model provider by subscription, request plan or per token, or runs a local model.
Cost watchouts
Usage statistics are on by default; review and agent team features run several agents in parallel and multiply token use; Coding Plan Pro slots are limited and first come, first served.
Variable cost rationale
The agent costs nothing, but every request is paid to a model provider, so long autonomous runs, background subagents and review agents running in parallel raise token spend unless a capped plan or a local model is used.
Additional watchouts
No vendor support, central billing or admin console; model costs sit with whichever provider is configured.
Overage / add-ons
Pay as you go Model Studio pricing applies outside a plan, such as qwen3.5-plus at $0.40 per million input tokens and $2.40 per million output tokens in Singapore.
Sales call required
No, self serve available
Free / trial
The tool is free and open source. The free Qwen account allowance closed in April 2026, so free use now means a local model or another provider's free tier.
Lowest paid plan
No paid plan for the tool itself; Alibaba Cloud's Coding Plan Pro at $50 a month covers Qwen models for coding tools
Commercial notes
Qwen Code is published by the Qwen team on GitHub, and the Qwen site states it is powered by Alibaba Cloud.
Key ambiguities
Qwen Plus and Pro subscription prices, now required for Qwen account sign in, are not shown on a reachable first party page, and qwen.ai still describes Qwen account sign in without a subscription.
Cancellation / refund
No contract for the tool; provider plans follow Alibaba Cloud or the chosen provider's terms.
Support SLA / resale
Community support through GitHub; no vendor support plan for the tool.
Missing data
Qwen Plus and Pro subscription prices, and QwenCloud Token Plan prices.
Related vendors
- Cognition — Maker of Devin, an autonomous AI software engineer
- 10Web — Agentic website platform whose AI agents build, host and manage…
- AgentUI — Managed AI app builder for operations teams that generates and hosts…
- Aider — Open source, model agnostic terminal coding agent that edits your…
- Amp — Amp is a coding agent from Amp Frontier Corporation that runs each…
- Anthropic Claude Code — Anthropic's agentic coding system across terminal, desktop, IDE, web…