Find a file
2025-12-19 10:28:07 +08:00
.allstar Downgrade branch_protection to log (#2934) 2025-08-26 11:24:24 +00:00
.aoneci/workflows chore: fix lint errors for shell scripts and yaml files 2025-08-22 11:35:35 +08:00
.gcp Fix cloudbuild step. (#7131) 2025-08-26 18:55:06 +00:00
.github chore: rename @qwen-code/sdk-typescript to @qwen-code/sdk 2025-12-05 21:47:26 +08:00
.husky Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
.vscode bundle cli in vscode 2025-12-13 20:56:18 +08:00
docs docs: updated vscode showcase video 2025-12-17 16:47:37 +08:00
docs-site feat: update docs 2025-12-15 09:47:03 +08:00
eslint-rules pre-release commit 2025-07-22 23:26:01 +08:00
hello Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
integration-tests Add chat recording toggle (CLI + settings) and disable recording in tests 2025-12-15 13:48:38 +08:00
packages Merge pull request #1260 from QwenLM/docs-byYijing 2025-12-16 10:16:57 +08:00
scripts feat(i18n): Add Internationalization Support for UI and LLM Output (#1058) 2025-11-21 15:44:37 +08:00
.editorconfig pre-release commit 2025-07-22 23:26:01 +08:00
.gitattributes pre-release commit 2025-07-22 23:26:01 +08:00
.gitignore feat: update docs 2025-12-09 20:16:03 +08:00
.npmrc chore: remove google registry 2025-08-08 20:45:54 +08:00
.nvmrc chore: Expand node version test matrix (#2700) 2025-07-21 16:33:54 -07:00
.prettierignore Add .prettierignore file (#6914) 2025-08-24 21:01:26 +00:00
.prettierrc.json pre-release commit 2025-07-22 23:26:01 +08:00
.yamllint.yml Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
CHANGELOG.md chore: pump version to 0.0.14 2025-09-29 14:31:14 +08:00
CONTRIBUTING.md Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
Dockerfile Refactor Dockerfile with multi-stage build for smaller image size 2025-08-10 13:00:46 +03:00
esbuild.config.js 🐛 Bug Fixes Release v0.1.1 (#898) 2025-10-29 12:25:50 +08:00
eslint.config.js Merge branch 'main' into docs-byYijing 2025-12-15 19:42:20 +08:00
LICENSE Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
Makefile fix: rename make run-npx from gemini to qwen 2025-08-09 16:58:09 +07:00
package-lock.json Merge pull request #1260 from QwenLM/docs-byYijing 2025-12-16 10:16:57 +08:00
package.json pump version to 0.5.1 2025-12-15 20:48:02 +08:00
README.md docs: updated quick start video 2025-12-19 10:28:07 +08:00
SECURITY.md docs: Update security policy with Alibaba contact information (#390) 2025-08-20 15:30:31 +08:00
tsconfig.json # 🚀 Sync Gemini CLI v0.2.1 - Major Feature Update (#483) 2025-09-01 14:48:55 +08:00
vitest.config.ts feat: create draft framework for cli & sdk 2025-12-04 17:10:16 +08:00

Qwen Code

npm version License Node.js Version Downloads

AI-powered command-line workflow tool for developers

中文 | Deutsch | français | 日本語 | Русский

InstallationQuick StartFeaturesDocumentationContributing

Qwen Code is a powerful command-line AI workflow tool adapted from Gemini CLI, specifically optimized for Qwen3-Coder models. It enhances your development workflow with advanced code understanding, automated tasks, and intelligent assistance.

📌 Why Qwen Code

  • 🎯 Free Access Available: Get started with 2,000 free requests per day via Qwen OAuth.
  • 🧠 Code Understanding & Editing - Query and edit large codebases beyond traditional context window limits
  • 🤖 Workflow Automation - Automate operational tasks like handling pull requests and complex rebases
  • 💻 Terminal-first: Designed for developers who live in the command line.
  • 🧰 VS Code: Install the VS Code extension to seamlessly integrate into your existing workflow.
  • 📦 Simple Setup: Easy installation with npm, Homebrew, or source for quick deployment.

👉 Know more workflows

📦 The extension is currently in development. For installation, features, and development guide, see the VS Code Extension README.

How to use Qwen Code?

Prerequisites

Ensure you have Node.js version 20 or higher installed.

curl -qL https://www.npmjs.com/install.sh | sh

Install from npm

npm install -g @qwen-code/qwen-code@latest

🚀 Quick Start

# Start Qwen Code
qwen

# Example commands
> What does this project do?
> Explain this codebase structure
> Help me refactor this function
> Generate unit tests for this module

qwencode-start

Usage Examples

1 Interactive Mode

cd your-project/
qwen

Navigate to your project folder and type qwen to launch Qwen Code. Start a conversation and use @ to reference files within the folder.

If you want to learn more about common workflows, click Common Workflows to view.

2 Headless Mode

cd your-project/
qwen -p "your question"

Headless mode allows you to run Qwen Code programmatically from command line scripts and automation tools without any interactive UI. This is ideal for scripting, automation, CI/CD pipelines, and building AI-powered tools.

3 Use in IDE

If you prefer to integrate Qwen Code into your current editor, we now support VS Code and Zed. For details, please refer to:

4 SDK

Qwen Code now supports an SDK designed to simplify integration with the Qwen Code platform. It provides a set of easy-to-use APIs and tools enabling developers to efficiently build, test, and deploy applications. For details, please refer to:

Commands & Shortcuts

Session Commands

  • /help - Display available commands
  • /clear - Clear conversation history
  • /compress - Compress history to save tokens
  • /stats - Show current session information
  • /exit or /quit - Exit Qwen Code

Keyboard Shortcuts

  • Ctrl+C - Cancel current operation
  • Ctrl+D - Exit (on empty line)
  • Up/Down - Navigate command history

👉 Know more about Commands

💡 Tip: In YOLO mode (--yolo), vision switching happens automatically without prompts when images are detected. Know more about Approval Mode

Benchmark Results

Terminal-Bench Performance

Agent Model Accuracy
Qwen Code Qwen3-Coder-480A35 37.5%
Qwen Code Qwen3-Coder-30BA3B 31.3%

Development & Contributing

See CONTRIBUTING.md to learn how to contribute to the project.

For detailed authentication setup, see the authentication guide.

Troubleshooting

If you encounter issues, check the troubleshooting guide.

Acknowledgments

This project is based on Google Gemini CLI. We acknowledge and appreciate the excellent work of the Gemini CLI team. Our main contribution focuses on parser-level adaptations to better support Qwen-Coder models.

License

LICENSE

Star History

Star History Chart