Qwen Code is an open-source AI coding agent that runs in your terminal. It's built for developers who want an agentic coding assistant without being locked into a single model provider, forked from Google's Gemini CLI and now developed independently with deep support for Qwen models alongside other providers.
qwen serve) for shared sessions, and SDKs for TypeScript, Python, and Java.qwen channel, letting you run coding tasks from chat apps.qwen -p "..." for scripting, CI/CD pipelines, and batch processing without the interactive UI./review, /batch, /loop, and /bugfix.Qwen Code fits developers who want a terminal-first coding agent they can point at different model backends depending on cost, latency, or privacy needs. It's a good match for teams already using local models (Ollama, vLLM) who want an agent that isn't tied to one vendor's API. If you need to script AI-assisted coding tasks into CI/CD, headless mode and the SDKs (TypeScript, Python, Java) make that straightforward.
It also suits developers who want to interact with a coding agent from IDEs (VS Code, JetBrains, Zed), a desktop app, or even messaging apps like Telegram or Feishu, rather than being stuck to a single terminal session. The daemon mode (qwen serve) is useful if multiple clients need to share one agent session over HTTP.
This is not a good fit if you want a fully managed, zero-maintenance SaaS product. You need Node.js 22+ installed, an API key or local model setup, and some comfort with terminal tools. If you specifically need a closed, single-vendor product with dedicated enterprise support, this open-source project may require more self-management than that would.
On Linux or macOS, install with the provided script:
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash
On Windows, use PowerShell:
irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.ps1 | iex
Restart your terminal afterward so environment variables take effect.
Alternatively, install via NPM (requires Node.js 22+):
npm install -g @qwen-code/qwen-code@latest
Or via Homebrew on macOS/Linux:
brew install qwen-code
Once installed, launch the interactive terminal UI and configure your provider:
qwen # Launch interactive terminal UI
# Inside the session:
/auth # Configure your provider and API key
For scripting or CI/CD, use headless mode instead: qwen -p "your prompt". Check the Authentication Guide and Settings Reference on the project's docs site for provider-specific setup details.