经 AI Skill Hub 精选评估,qwen-code Agent工作流 获评「强烈推荐」。在 GitHub 上收获超过 24.4k 颗 Star,这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。
qwen-code Agent工作流 是一款基于 TypeScript 开发的开源工具,专注于 AI代理、终端工具、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
qwen-code Agent工作流 是一款基于 TypeScript 开发的开源工具,专注于 AI代理、终端工具、代码生成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g qwen-code # 方式二:npx 直接运行(无需安装) npx qwen-code --help # 方式三:项目依赖安装 npm install qwen-code # 方式四:从源码运行 git clone https://github.com/QwenLM/qwen-code cd qwen-code npm install npm start
# 命令行使用
qwen-code --help
# 基本用法
qwen-code [options] <input>
# Node.js 代码中使用
const qwen_code = require('qwen-code');
const result = await qwen_code.run(options);
console.log(result);
# qwen-code 配置说明 # 查看配置选项 qwen-code --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export QWEN_CODE_CONFIG="/path/to/config.yml"
<a href="https://trendshift.io/repositories/15287" target="_blank"><img src="https://trendshift.io/api/badge/repositories/15287" alt="QwenLM%2Fqwen-code | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
The open-source AI coding agent that lives in your terminal.
<a href="https://qwenlm.github.io/qwen-code-docs/zh/users/overview">中文</a> | <a href="https://qwenlm.github.io/qwen-code-docs/de/users/overview">Deutsch</a> | <a href="https://qwenlm.github.io/qwen-code-docs/fr/users/overview">français</a> | <a href="https://qwenlm.github.io/qwen-code-docs/ja/users/overview">日本語</a> | <a href="https://qwenlm.github.io/qwen-code-docs/ru/users/overview">Русский</a> | <a href="https://qwenlm.github.io/qwen-code-docs/pt-BR/users/overview">Português (Brasil)</a>
</div>
If you know Claude Code, you already know Qwen Code — and then some. We've put significant effort into bringing Qwen Code to feature parity with Claude Code, improving both breadth and reliability across the board.
| Feature | Qwen Code | Claude Code |
|---|---|---|
| SubAgents, Agent Teams, Dynamic Workflows | ✓ | ✓ |
| Auto-Memory, Auto-Skills, Hooks | ✓ | ✓ |
| Built-in Skills (/review, /batch, /loop, /bugfix…) | ✓ | ✓ |
| MCP, Plan Mode, LSP Integration | ✓ | ✓ |
| Auto Mode, Sandbox, Git Worktrees | ✓ | ✓ |
| Computer Use (desktop automation) | ✓ | ✓ |
| IDE Plugins (VS Code / JetBrains / Zed) | ✓ | ✓ |
| SDK | ✓ | ✓ |
| Headless Mode, Session Management | ✓ | ✓ |
| Open-source — model and framework | ✓ | — |
| Multi-protocol (OpenAI / Anthropic / Gemini / Qwen + any provider) | ✓ | — |
| Agent Arena (multi-model head-to-head on same task) | ✓ | — |
Daemon Mode — qwen serve (multi-client shared agent) | ✓ | — |
| IM Channels (Telegram / DingTalk / WeChat / Feishu) | ✓ | — |
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.
<details> <summary>NPM / Homebrew</summary>
NPM (requires Node.js 22+):
npm install -g @qwen-code/qwen-code@latest
Homebrew (macOS / Linux):
brew install qwen-code
</details>
```bash qwen # Launch interactive terminal UI
| Mode | Command | Use Case |
|---|---|---|
| **Interactive** | qwen | Terminal UI with rich rendering, @file references, slash commands |
| **Headless** | qwen -p "..." | Scripts, CI/CD, batch processing — no UI |
| **IDE** | — | [VS Code](https://qwenlm.github.io/qwen-code-docs/en/users/integration-vscode/), [Zed](https://qwenlm.github.io/qwen-code-docs/en/users/integration-zed/), [JetBrains](https://qwenlm.github.io/qwen-code-docs/en/users/integration-jetbrains/) |
| **Desktop** | — | [Qwen Code Desktop](https://github.com/QwenLM/qwen-code/releases/tag/desktop-latest) — GUI for macOS, Windows, Linux |
| **Daemon** | qwen serve | Shared agent session over HTTP+SSE (ACP). Multiple clients, one agent. _(experimental)_ [Docs](https://qwenlm.github.io/qwen-code-docs/en/users/qwen-serve) |
| **SDK** | — | [TypeScript](./packages/sdk-typescript/README.md), [Python](./packages/sdk-python/README.md), [Java](./packages/sdk-java/qwencode/README.md) |
| **IM Bot** | qwen channel | Connect to Telegram, DingTalk, WeChat, or Feishu |
<details> <summary>SDK example (Python)</summary>
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())
</details>
开源AI代理工具,集成度高,星标24k+说明认可度不错。终端集成体验优秀,适合开发效率场景,但依赖三方API使用有成本。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:qwen-code Agent工作流 的核心功能完整,质量优秀。对于AI爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | qwen-code |
| 原始描述 | 开源AI工作流:An open-source AI agent that lives in your terminal.。⭐24.4k · TypeScript |
| Topics | AI代理终端工具代码生成工作流自动化TypeScript |
| GitHub | https://github.com/QwenLM/qwen-code |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-05-16 · 更新时间:2026-05-19 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。