Skip to content
aicoolies logo
Qwen Code logo

Qwen Code

Open-source terminal AI agent by Alibaba

Open-source AI coding assistant CLI with multi-model support and subagent capabilities in the terminal.

About Qwen Code

Qwen Code is an open-source AI coding agent for the terminal developed by Alibaba Cloud, optimized for the Qwen3-Coder model to help developers understand large codebases, automate repetitive development tasks, and ship code faster through natural language interaction. It solves the challenge of making cutting-edge AI coding capabilities accessible to developers who prefer terminal-based workflows, providing a CLI tool that delegates engineering tasks to AI using custom prompts and interaction protocols designed to unlock the full potential of Alibaba's coding models. Qwen Code represents Alibaba's commitment to open-source AI development tools alongside their powerful Qwen model family.

Qwen Code is powered by Qwen3-Coder, which features a Mixture-of-Experts architecture with 480 billion total parameters and 35 billion active parameters per token, achieving a 69.6% score on SWE-Bench Verified that surpasses many competing models. The model natively supports a 256K token context window, extendable up to 1 million tokens, enabling it to process vast codebases in a single session. Qwen Code provides tools for code generation, refactoring, debugging, test writing, and documentation generation, all accessible through natural language commands in the terminal with project-aware context understanding.

Qwen Code targets developers and engineering teams who want a high-performance, open-source AI coding agent without subscription costs, particularly those working with large codebases that require extensive context windows. It is especially relevant for developers in the Alibaba Cloud ecosystem, teams using Qwen models for other AI applications, and cost-conscious organizations that prefer self-hosted or API-based AI tools over proprietary subscriptions. Qwen Code integrates with the broader Alibaba Cloud Model Studio platform, providing access to multiple Qwen variants and third-party models for different coding tasks and budget requirements.

Pricing & Platform Specs

Pricing Summary

Qwen Code CLI is free and open-source (Apache-2.0). Users cover only their own LLM API token costs (BYOK) or local inference hardware expenses.

full pricing breakdown →

Supported Platforms

CLI, VS Code, Zed, JetBrains

Explore categories, tags & use cases

Open-source AI coding agent for the terminal

Open-source terminal-based AI coding agent built in Go by the SST team, with a rich TUI (Bubble Tea) supporting 75+ model providers including OpenAI, Anthropic, Gemini, Bedrock, Groq, and OpenRouter. Features vim-like editing, persistent SQLite sessions, and LSP integration for 40+ languages. Fully free with no vendor lock-in, it has rapidly grown to 95k+ GitHub stars.

Open Source

AI coding agent by Moonshot AI

Terminal-based AI coding agent from Moonshot AI, powered by Kimi K2.5 with a 256K context window that achieves 76.8% on SWE-Bench Verified. Reads and edits code, executes shell commands, fetches web pages, and autonomously plans multi-step development workflows through natural language. Moonshot's entry into the AI coding agent market, leveraging their strength in large-context language models.

freemium

Side-by-Side Comparisons

Qwen Code logo
Qwen Code
vs
Cursor logo
Cursor

Qwen Code vs Cursor: Open-source terminal agent or complete AI coding environment?

Qwen Code and Cursor now overlap more than a simple CLI-versus-editor label suggests, but they still optimize for different buyers. Qwen Code is an Apache-2.0, terminal-first coding agent with flexible provider configuration, local-model support through OpenAI-compatible endpoints, and optional IDE integrations. Cursor is a commercial AI coding environment that combines Tab predictions, an autonomous multi-file Agent, semantic codebase indexing, and cloud execution. Qwen Code gives experienced teams more control over models and deployment; Cursor gives most developers a more cohesive daily workflow. For the general buyer choosing one primary coding environment, Cursor is the stronger default.

Qwen CodeCursor
Codex logo
Codex
vs
Qwen Code logo
Qwen Code

Codex vs Qwen Code: OpenAI’s Managed Coding Workflow vs an Open Provider-Flexible Agent Stack

Codex and Qwen Code are Apache-2.0 coding-agent products with terminal, IDE, and desktop surfaces, repository tools, approval controls, sandbox options, MCP support, and unattended execution. The important difference is commercial and operational: Codex centers an OpenAI-managed workflow with ChatGPT identity and credit accounting, while Qwen Code centers an open, provider-flexible agent stack whose operator chooses the model endpoint, credentials, policies, and supporting infrastructure.

CodexQwen Code
OpenCode logo
OpenCode
vs
Qwen Code logo
Qwen Code

OpenCode vs Qwen Code — Model-Agnostic Control vs Qwen-Native Agent Workflow

OpenCode and Qwen Code are both open-source terminal coding agents, but they optimize for different decisions. OpenCode is the stronger default when you want provider choice, local/BYOK flexibility, and a mature multi-model terminal workflow. Qwen Code is compelling when your team wants a Qwen3-Coder-optimized agent with a generous free request story and an Alibaba-aligned model path.

OpenCodeQwen Code
Qwen Code logo
Qwen Code
vs
gemini cli
Gemini CLI

Qwen Code vs Gemini CLI: Alibaba Coding Agent or Google’s Terminal AI Workflow?

Qwen Code vs Gemini CLI for terminal agents: Alibaba’s open-weight coding CLI versus Google’s terminal AI workflow. As of 18 June 2026, free and Google AI Pro/Ultra individual accounts use Antigravity CLI; Gemini CLI remains on supported Standard/Enterprise/Google Cloud and paid API paths. Both are rising command-line options for developers who want AI help without moving every task into a full IDE. Gemini CLI benefits from Google’s model ecosystem, docs, and broader developer-tool distribution, with that individual-access boundary. Qwen Code is interesting for teams watching open-weight coding models and Alibaba’s fast-moving agent tooling. This comparison explains which CLI is safer for everyday developer adoption, when Qwen Code is worth testing, and how teams should think about model access, repo context, and automation risk.

Qwen CodeGemini CLI
View 1 more comparisons

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Qwen Code?

Open-source AI coding assistant CLI with multi-model support and subagent capabilities in the terminal.

Is Qwen Code free?

Yes — Qwen Code is open source and free to use. Qwen Code CLI is free and open-source (Apache-2.0). Users cover only their own LLM API token costs (BYOK) or local inference hardware expenses.

Is Qwen Code open source?

Yes — Qwen Code is open source.

Is Qwen Code still maintained?

Yes — Qwen Code is active. Its listing was last verified on September 6, 2026.

What are the best Qwen Code alternatives?

The first editor-selected Qwen Code alternatives are OpenCode, Kimi Code.

How does Qwen Code score in our review?

The published editorial review lists Qwen Code at 84/100 overall across speed, privacy, and developer experience. Check the review's evidence status and test metadata for its verification level.