An open-source AI coding agent that lives in your terminal.
بديل مفتوح المصدر لـ Claude Code وCursor وGitHub Copilot
An open-source AI coding agent that lives in your terminal.
READMEQwenLM/qwen-code على GitHub
The open-source AI coding agent for your terminal, editor, desktop, browser, and chat.
中文 | Deutsch | français | 日本語 | Русский | Português (Brasil) | 한국어
| Qwen Code 1.0 Preview |
|---|
| Qwen Code 1.0 Preview brings together the agent harness capabilities of Qoder and Qwen Code in an open-source release.Try Qwen Code 1.0 Preview · Documentation · 中文文档. |
Tip Qwen Code is actively iterating on itself — using its own agent and models to file issues, submit PRs, review code, and run tests. Powered by the community, driven by AI.
Looking for Qwen Code 1.0 Preview? Get started here. The instructions below are for the main version.
Linux / macOS:
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash
Windows:
irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.ps1 | iex
Restart your terminal after installation to ensure environment variables take effect.
NPM (requires Node.js 22+):
npm install -g @qwen-code/qwen-code@latest
Homebrew (macOS / Linux):
brew install qwen-code
Open a terminal in your project and start Qwen Code:
cd /path/to/your-project
qwen
Inside the session, run /auth and choose Qwen Account with Subscription to sign in with your Plus or Pro subscription, or configure a provider with an API key. Then try:
Explain this repository and show me where to start.
See the Authentication Guide and Settings Reference for detailed setup.
Choose the interface that fits your workflow:
| Interface | Get started |
|---|---|
| Terminal | Run qwen in your project — see Quick Start. |
| Desktop | Download Qwen Code Desktop for macOS, Windows, and Linux. |
| Web | Run qwen serve --open to open the Web UI in your browser. (experimental) |
| Editor | Set up VS Code, Zed, or JetBrains. |
| Chat | Connect Telegram, DingTalk, WeChat, WeCom, Feishu, QQ Bot, Email, or GitHub, then run qwen channel start. See the Channels overview for webhook senders and plugin adapters. |
For automation and custom integrations:
qwen -p "..." in scripts, CI/CD, or batch jobs.qwen serve to connect clients over HTTP + SSE (ACP). (experimental) Daemon guide.import asyncio
from qwen_code_sdk import is_sdk_result_message, query
async def main() -> None:
result = query(
"Summarize the repository layout.",
{
"cwd": "/path/to/project",
"path_to_qwen_executable": "qwen",
},
)
async for message in result:
if is_sdk_result_message(message):
print(message["result"])
asyncio.run(main())
Run Qwen Code as a long-lived service when you want browser, editor, SDK, and automation clients to share agent sessions without each starting a separate process. The daemon provides the built-in Web Shell and an HTTP + SSE API, supports multiple workspaces, and lets clients reconnect to active sessions.
Start it in the foreground and open the Web Shell:
qwen serve --open
The default address is http://127.0.0.1:4170. To run and manage it in the background instead:
qwen daemon start
qwen daemon status
qwen daemon logs -f
qwen daemon stop
By default, the daemon listens on loopback without bearer authentication; any local process that can reach it can use the full API, including code execution. On shared or untrusted hosts, set QWEN_SERVER_TOKEN and use --require-auth. See the Daemon guide for workspaces, authentication, remote access, and the API.
Qwen Code ships with a complete agent harness — multi-agent orchestration, persistent memory, and deep extensibility, all built in.
/goal keeps the session working across turns until an independent verifier accepts the outcome, within a token budget./loop and cron tools re-run prompts on an interval or at a set time.QWEN.md and AGENTS.md briefings load automatically./review, /batch, /bugfix…) work out of the box; /learn distills docs or code into new skills, the agent can generate skills on its own (opt-in), and /curator maintains the library./resume, and browse, rename, or archive sessions.image_gen tool turns prompts into PNG artifacts using your configured image model.On SWE-bench Verified, seven Qwen Code versions scored 76.40%–77.80% on average using the same Qwen 3.7 Max model (500 tasks, three trials per version).
Full results and evaluation configuration →
Qwen Code Desktop — Official desktop app for macOS, Windows, and Linux
AionUi — A modern GUI for command-line AI tools including Qwen Code
Gemini CLI Desktop — A cross-platform desktop/web/mobile UI for Qwen Code
qwen-audio-agent — Realtime full-duplex voice frontend for Qwen Code over ACP — talk hands-free with barge-in and a local wake word
🦞 Qwen Code Claw — Let other agents (Claude, Codex, etc.) delegate coding tasks to Qwen Code via ACP. Paste this prompt into your agent:
Use Qwen Code as a coding agent. First, fetch and read this skill reference:
https://raw.githubusercontent.com/QwenLM/qwen-code/refs/heads/main/.qwen/skills/qwen-code-claw/SKILL.md
Then follow the instructions inside to install, authenticate, and use Qwen Code via acpx for all coding tasks.
bailian-cli). Extends Qwen Code with image/video generation, knowledge retrieval, app orchestration, and model deploymentSee the Terms of Service and Privacy Notice, including Chrome extension and Browser Use data handling.
Contributions are welcome! See CONTRIBUTING.md for guidelines.
This project was originally based on Google Gemini CLI v0.8.2. We gratefully acknowledge the Gemini CLI team's excellent work. Starting from Qwen Code v0.1, we stopped syncing with upstream and began independent development as a multi-protocol, multi-platform agent framework with deep integrations for Qwen models and beyond.
آخر تحديث من GitHub: قبل 21 دقيقة
تُحدَّث أرقام GitHub عدة مرات يوميًا.
يمتلئ الرسم البياني مع جمع أعداد النجوم يوميًا.
كل البدائل مفتوحة المصدر لـ Claude Code وCursor وGitHub Copilot المدرجة هنا جنبًا إلى جنب. انقر عمودًا للترتيب.
DeepSeek Harness | 289.2 ألف | – | MIT | أول أمس | – |
|---|---|---|---|---|---|
Hermes Agent | 267.2 ألف | – | MIT | قبل 24 دقيقة | – |
OpenCode | 230.2 ألف | – | MIT | قبل 3 ساعات | – |
Claw Code | 194.7 ألف | – | MIT | أمس | – |
Codex CLI | 136.9 ألف | – | Apache-2.0 | قبل 32 دقيقة | – |
Pi | 124.9 ألف | – | MIT | قبل ساعة واحدة | – |
Gemini CLI | 109.4 ألف | – | Apache-2.0 | قبل ساعة واحدة | – |
OpenHands | 94.6 ألف | – | MIT | قبل ساعة واحدة | – |
T3 Code | 84.6 ألف | +10 ألف | MIT | قبل 6 ساعات | – |
Cline | 72 ألف | – | Apache-2.0 | قبل 12 ساعة | – |
MetaGPT | 71.5 ألف | – | MIT | قبل 10 أشهر | – |
Open Interpreter | 69 ألف | – | Apache-2.0 | أمس | – |
سجّل الدخول أو أنشئ حسابًا للتعليق.
لا تعليقات بعد. كن أول من يعلّق.
اعرضه بفخر: بطاقة حية بترتيبك وتقييمك تتحدّث تلقائيًا.
تفضّل الشارة الصغيرة؟ أضف ?style=flat