CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
README.md158 linesDownload Raw Back to qwen-code
1<div align="center">2 3[![npm version](https://img.shields.io/npm/v/@qwen-code/qwen-code.svg)](https://www.npmjs.com/package/@qwen-code/qwen-code)4[![License](https://img.shields.io/github/license/QwenLM/qwen-code.svg)](./LICENSE)5[![Node.js Version](https://img.shields.io/badge/node-%3E%3D22.0.0-brightgreen.svg)](https://nodejs.org/)6[![Downloads](https://img.shields.io/npm/dm/@qwen-code/qwen-code.svg)](https://www.npmjs.com/package/@qwen-code/qwen-code)7 8<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>9 10**The open-source AI coding agent that lives in your terminal.**11 12<a href="https://qwenlm.github.io/qwen-code-docs/zh/users/overview">中文</a> |13<a href="https://qwenlm.github.io/qwen-code-docs/de/users/overview">Deutsch</a> |14<a href="https://qwenlm.github.io/qwen-code-docs/fr/users/overview">français</a> |15<a href="https://qwenlm.github.io/qwen-code-docs/ja/users/overview">日本語</a> |16<a href="https://qwenlm.github.io/qwen-code-docs/ru/users/overview">Русский</a> |17<a href="https://qwenlm.github.io/qwen-code-docs/pt-BR/users/overview">Português (Brasil)</a>18 19</div>20 21## Why Qwen Code?22 23- **Agentic out of the box** — Auto-Memory, Auto-Skills, SubAgents, Agent Teams, and MCP. Dynamic workflows, zero setup.24- **Open-source, inside and out** — The framework and the Qwen models are open-source. They evolve together. No vendor lock-in.25- **Multi-protocol** — Supports OpenAI, Anthropic, Gemini, and Qwen APIs. Any third-party provider or local model (Ollama / vLLM). Switch at runtime.26- **Beyond the terminal** — IDE plugins, Desktop app, daemon mode, SDKs, and IM bots (Telegram / DingTalk / WeChat / Feishu).27 28> [!TIP]29> 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.30 31## Installation32 33**Linux / macOS:**34 35```bash36curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash37```38 39**Windows:**40 41```powershell42irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.ps1 | iex43```44 45> Restart your terminal after installation to ensure environment variables take effect.46 47<details>48<summary>NPM / Homebrew</summary>49 50**NPM** (requires [Node.js 22+](https://nodejs.org/)):51 52```bash53npm install -g @qwen-code/qwen-code@latest54```55 56**Homebrew** (macOS / Linux):57 58```bash59brew install qwen-code60```61 62</details>63 64## Quick Start65 66```bash67qwen          # Launch interactive terminal UI68# Inside the session:69/auth         # Configure your provider and API key70```71 72See the [Authentication Guide](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/auth/) and [Settings Reference](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/settings/) for detailed setup.73 74![Qwen Code](https://img.alicdn.com/imgextra/i2/O1CN01K0nwj41RM1Il8kB0t_!!6000000002096-2-tps-1544-1060.png)75 76## How to Use Qwen Code77 78| Mode            | Command         | Use Case                                                                                                                                                                                                                                        |79| --------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |80| **Interactive** | `qwen`          | Terminal UI with rich rendering, `@file` references, slash commands                                                                                                                                                                             |81| **Headless**    | `qwen -p "..."` | Scripts, CI/CD, batch processing — no UI                                                                                                                                                                                                        |82| **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/) |83| **Desktop**     | —               | [Qwen Code Desktop](https://github.com/QwenLM/qwen-code/releases/tag/desktop-latest) — GUI for macOS, Windows, Linux                                                                                                                            |84| **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)                                                                                     |85| **SDK**         | —               | [TypeScript](./packages/sdk-typescript/README.md), [Python](./packages/sdk-python/README.md), [Java](./packages/sdk-java/qwencode/README.md)                                                                                                    |86| **IM Bot**      | `qwen channel`  | Connect to Telegram, DingTalk, WeChat, or Feishu                                                                                                                                                                                                |87 88<details>89<summary>SDK example (Python)</summary>90 91```python92import asyncio93 94from qwen_code_sdk import is_sdk_result_message, query95 96 97async def main() -> None:98    result = query(99        "Summarize the repository layout.",100        {101            "cwd": "/path/to/project",102            "path_to_qwen_executable": "qwen",103        },104    )105 106    async for message in result:107        if is_sdk_result_message(message):108            print(message["result"])109 110 111asyncio.run(main())112```113 114</details>115 116## Capabilities117 118If 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](https://github.com/wenshao/codeagents/blob/main/docs/comparison/qwen-code-improvement-report.md), improving both breadth and reliability across the board.119 120| Feature                                                            | Qwen Code | Claude Code |121| ------------------------------------------------------------------ | :-------: | :---------: |122| SubAgents, Agent Teams, Dynamic Workflows                          |     ✓     |      ✓      |123| Auto-Memory, Auto-Skills, Hooks                                    |     ✓     |      ✓      |124| Built-in Skills (/review, /batch, /loop, /bugfix…)                 |     ✓     |      ✓      |125| MCP, Plan Mode, LSP Integration                                    |     ✓     |      ✓      |126| Auto Mode, Sandbox, Git Worktrees                                  |     ✓     |      ✓      |127| Computer Use (desktop automation)                                  |     ✓     |      ✓      |128| IDE Plugins (VS Code / JetBrains / Zed)                            |     ✓     |      ✓      |129| SDK                                                                |     ✓     |      ✓      |130| Headless Mode, Session Management                                  |     ✓     |      ✓      |131| Open-source — model and framework                                  |     ✓     |      —      |132| Multi-protocol (OpenAI / Anthropic / Gemini / Qwen + any provider) |     ✓     |      —      |133| Agent Arena (multi-model head-to-head on same task)                |     ✓     |      —      |134| Daemon Mode — `qwen serve` (multi-client shared agent)             |     ✓     |      —      |135| IM Channels (Telegram / DingTalk / WeChat / Feishu)                |     ✓     |      —      |136 137## Ecosystem138 139- [**Qwen Code Desktop**](https://github.com/QwenLM/qwen-code/releases/tag/desktop-latest) — Official desktop app for macOS, Windows, and Linux140- [**AionUi**](https://github.com/iOfficeAI/AionUi) — A modern GUI for command-line AI tools including Qwen Code141- [**Gemini CLI Desktop**](https://github.com/Piebald-AI/gemini-cli-desktop) — A cross-platform desktop/web/mobile UI for Qwen Code142 143- [**🦞 Qwen Code Claw**](https://github.com/openclaw/acpx) — Let other agents (Claude, Codex, etc.) delegate coding tasks to Qwen Code via ACP. Paste this prompt into your agent:144 145```text146Use Qwen Code as a coding agent. First, fetch and read this skill reference:147https://raw.githubusercontent.com/QwenLM/qwen-code/refs/heads/main/.qwen/skills/qwen-code-claw/SKILL.md148Then follow the instructions inside to install, authenticate, and use Qwen Code via acpx for all coding tasks.149```150 151## Contributing152 153Contributions are welcome! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.154 155## Acknowledgments156 157This project was originally based on [Google Gemini CLI](https://github.com/google-gemini/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.158 
basant307/AI_Governance_Project · CoolFace