Qwen Code
Qwen Code is an open-source coding agent from the Qwen team with terminal, editor, desktop, browser, and chat surfaces and support for Qwen and third-party model providers.
Overview
Qwen Code is an Apache-2.0-licensed coding agent for repositories across terminal, IDE, desktop, and web interfaces. Install using the official standalone installer, npm (Node.js 22+), or Homebrew; run qwen inside a project and use /auth to select QwenCloud (Token Plan or pay-as-you-go API key), Alibaba ModelStudio, a third-party provider, or a custom provider. The former free Qwen OAuth option was discontinued on April 15, 2026. Qwen Code can inspect and edit code, execute shell commands, use MCP servers, and delegate tasks to subagents. The client is free; provider subscriptions or usage charges may apply.
Qwen Code: install, sign in and choose a model
1. Install the CLI
With Node.js 22 or later, install via npm. On macOS or Linux, Homebrew is another option.
npm install -g @qwen-code/qwen-code@latest2. Open a project and configure access
Run
qweninside your repository, then use/auth. QwenCloud offers a Token Plan subscription or a pay-as-you-go API key; Alibaba ModelStudio has separate Coding Plan, Token Plan and API-key options. You can also choose a third-party or custom provider.3. Verify the connection
Use
/doctorto check authentication and/modelto select an available model. Avoid placing API keys in source control.
Common questions
- Is Qwen Code free?
- The Apache-2.0 client is free. QwenCloud, Alibaba ModelStudio, other hosted providers or subscriptions may charge separately for model usage. The former free Qwen OAuth sign-in was discontinued on April 15, 2026.
- Can Qwen Code use a local model?
- Its Custom Provider option can connect to a locally running, compatible model server. A local connection does not guarantee that every cloud-dependent tool works offline.
- Which plan should I choose?
- For an existing API key, select the matching pay-as-you-go provider. If you subscribe to QwenCloud Token Plan or Alibaba ModelStudio Coding Plan, select that specific plan in
/auth; their endpoints and billing rules are different.
Official quickstart →·Authentication options →·Explore connected models and APIs →
Agent details
- Type
- Coding
- Autonomy
- Supervised
- Environments
- Local, Browser, Desktop, Cli, Ide
- Human in loop
- Yes
- Pricing
- Free
- Categories
- AI Coding, Open-source Coding Agents, Terminal Coding Agents
Capabilities
The Qwen Code client is open source. Model-provider charges or subscription requirements can apply depending on the selected provider.
Selectable or integrated models
These are documented as selectable or accessible, not necessarily the product's default models.
API integrations
Alibaba Cloud Model Studio API
Alibaba Cloud Model Studio API provides programmatic access to Qwen and supported third-party models through native DashScope and OpenAI-compatible interfaces.
Claude API
Claude API is Anthropic's REST API for programmatic access to Claude models, including Messages, streaming, tool use, files, model listing, and related platform features.
DeepSeek API
DeepSeek API serves its current V4 models through OpenAI-compatible and Anthropic-compatible interfaces and separately offers Search and Fetch JSON endpoints for live web content.
Gemini API
Gemini API provides programmatic access to Google's Gemini and related generative models through standard, streaming, real-time, batch, embeddings, and media endpoints.
OpenAI API
OpenAI API provides programmatic access to OpenAI models through the Responses API, Realtime API, batch processing, and other model and media endpoints.
OpenRouter API
OpenRouter API is an OpenAI-compatible model-routing API that exposes hundreds of models from many providers through a single endpoint and account.
xAI API
xAI API provides programmatic access to Grok models through OpenAI-compatible REST endpoints and xAI's gRPC interface, with text, tool, media, file, and batch APIs.
Alternatives
Alternative relationships are editorial navigation, not rankings.