AI

Qwen Code: Alibaba's Open-Source AI Agent for the Terminal

Qwen Code is an open-source AI terminal agent by Alibaba optimized for Qwen models, with agentic workflows, sub-agents, and multi-protocol provider support.

Keeping this site alive takes effort — your support means everything.
無程式碼也能輕鬆打造專業LINE官方帳號!一鍵導入模板,讓AI助你行銷加分! 無程式碼也能輕鬆打造專業LINE官方帳號!一鍵導入模板,讓AI助你行銷加分!
Qwen Code: Alibaba's Open-Source AI Agent for the Terminal

Qwen Code is an open-source AI-powered terminal agent developed by the QwenLM team at Alibaba Cloud. Built from the ground up for the terminal environment, Qwen Code provides a Claude Code-style interactive coding experience optimized for Alibaba’s Qwen model family, while maintaining compatibility with models from OpenAI, Anthropic, Google, and others through a multi-protocol provider system.

The agent is designed to feel like a natural extension of the developer’s terminal workflow. It operates in the same shell environment, has access to the file system, can execute commands, edit files, create projects, and manage git workflows – all through natural language interaction. With support for agentic workflows that decompose complex tasks, sub-agents for parallel execution, and IDE integration via VS Code and JetBrains, Qwen Code positions itself as a versatile open-source alternative to proprietary coding assistants.

What is Qwen Code and how does it work?

Qwen Code is a terminal-based AI coding agent that integrates directly into the developer’s shell. Once installed, users interact with it through natural language commands in their terminal. The agent has full access to the working directory, can execute shell commands, read and write files, manage git repositories, and browse the web. It supports a conversational interface where developers can discuss code, request changes, and iterate on solutions.

Key Features

FeatureDescriptionStatus
Interactive TerminalNatural language coding in the shellStable
Agentic WorkflowsMulti-step task decomposition and executionStable
Sub-AgentsParallel execution of independent subtasksBeta
Multi-ProviderSupports Qwen, OpenAI, Anthropic, Google, and moreStable
IDE IntegrationVS Code and JetBrains extension supportBeta
Tool LibraryBuilt-in tools for file, git, web, and system operationsStable

Provider Support

ProviderModelsProtocolQuality
Alibaba CloudQwen 3, Qwen2.5, Qwen-CoderDashScope APIExcellent
OpenAIGPT-4o, GPT-4o-mini, o1, o3OpenAI APIExcellent
AnthropicClaude 3.5 Sonnet, Claude 4Anthropic APIExcellent
GoogleGemini 1.5 Pro, 2.0 FlashGoogle AI APIVery Good
DeepSeekDeepSeek V3, R1OpenAI-compatibleVery Good
OllamaAny local modelOllama APIVariable

How do agentic workflows work in Qwen Code?

Qwen Code’s agentic workflow system is designed for complex, multi-step tasks. When given a high-level request like “Create a REST API for a blog platform,” the agent analyzes the task, creates a plan with specific steps, executes each step sequentially or in parallel using sub-agents, and monitors progress. The workflow system includes error handling, automatic retry, and rollback capabilities. Developers can observe the agent’s reasoning process and intervene at any point.

Installation and Setup

MethodCommandNotes
pippip install qwen-codePython 3.10+ required
npmnpm install -g qwen-codeNode.js 18+ required
Dockerdocker pull qwenlm/qwen-codeFor containerized use
Sourcegit clone https://github.com/QwenLM/qwen-codeDevelopment setup

What IDE integration does Qwen Code offer?

Qwen Code provides VS Code and JetBrains extensions that bridge the terminal agent with the IDE experience. The extensions provide an inline chat panel, code completion suggestions powered by the agent, the ability to apply file edits directly in the editor, and a diff view for reviewing changes before acceptance. The IDE integration shares the same backend agent, so context is maintained between terminal and IDE interactions.

What tools does Qwen Code provide?

Qwen Code comes with a comprehensive tool library that covers common development operations. File operations include read, write, edit, and search across the project. Shell execution allows running commands, scripts, and build tools. Git integration covers commit, branch, push, and PR creation. Web browsing enables documentation lookup and API research. System tools handle process management and environment configuration. The tool library is extensible through a plugin system.

How does Qwen Code handle security?

Security is handled through a permission system that controls what the agent can access. File operations are restricted to the project directory by default, shell commands are sandboxed, and sensitive operations require explicit user confirmation. The agent displays all commands before execution, and the terminal history is maintained for audit purposes. For enterprise deployments, additional security policies can be configured through a YAML-based configuration file.

Frequently Asked Questions

What is Qwen Code? Qwen Code is an open-source AI terminal agent by Alibaba that provides a Claude Code-style interactive coding experience optimized for Qwen models with support for multiple LLM providers.

What features does it offer? Interactive terminal coding, agentic workflows with task decomposition, parallel sub-agents, multi-provider support (Qwen, OpenAI, Anthropic, Google), and IDE integration for VS Code and JetBrains.

How do I install it? Install via pip (pip install qwen-code), npm (npm install -g qwen-code), Docker, or clone from GitHub. Python 3.10+ or Node.js 18+ required.

What LLM providers are supported? Alibaba Cloud (Qwen models), OpenAI, Anthropic, Google, DeepSeek, and any Ollama-hosted local model via the multi-protocol provider system.

Does it integrate with IDEs? Yes, VS Code and JetBrains extensions are available, providing inline chat, code suggestions, diff-based change review, and shared context with the terminal agent.

Further Reading

TAG
CATEGORIES