[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3664":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},3664,"qwen-code","QwenLM\u002Fqwen-code","QwenLM","An open-source AI coding agent that lives in your terminal.","https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Foverview",null,"TypeScript",25124,2492,130,659,0,55,212,800,222,45,"Apache License 2.0",false,"main",[],"2026-06-12 02:00:52","\u003Cdiv align=\"center\">\n\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@qwen-code\u002Fqwen-code.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@qwen-code\u002Fqwen-code)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FQwenLM\u002Fqwen-code.svg)](.\u002FLICENSE)\n[![Node.js Version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fnode-%3E%3D20.0.0-brightgreen.svg)](https:\u002F\u002Fnodejs.org\u002F)\n[![Downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002F@qwen-code\u002Fqwen-code.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@qwen-code\u002Fqwen-code)\n\n\u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F15287\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F15287\" alt=\"QwenLM%2Fqwen-code | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"\u002F>\u003C\u002Fa>\n\n**An open-source AI agent that lives in your terminal.**\n\n\u003Ca href=\"https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fzh\u002Fusers\u002Foverview\">中文\u003C\u002Fa> |\n\u003Ca href=\"https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fde\u002Fusers\u002Foverview\">Deutsch\u003C\u002Fa> |\n\u003Ca href=\"https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Ffr\u002Fusers\u002Foverview\">français\u003C\u002Fa> |\n\u003Ca href=\"https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fja\u002Fusers\u002Foverview\">日本語\u003C\u002Fa> |\n\u003Ca href=\"https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fru\u002Fusers\u002Foverview\">Русский\u003C\u002Fa> |\n\u003Ca href=\"https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fpt-BR\u002Fusers\u002Foverview\">Português (Brasil)\u003C\u002Fa>\n\n\u003C\u002Fdiv>\n\n## 🎉 News\n\n- **2026-04-15**: Qwen OAuth free tier has been discontinued. To continue using Qwen Code, switch to [Alibaba Cloud Coding Plan](https:\u002F\u002Fmodelstudio.console.alibabacloud.com\u002F?tab=coding-plan#\u002Fefm\u002Fcoding-plan-index), [OpenRouter](https:\u002F\u002Fopenrouter.ai), [Fireworks AI](https:\u002F\u002Fapp.fireworks.ai), or bring your own API key. Run `qwen auth` to configure.\n\n- **2026-04-13**: Qwen OAuth free tier policy update: daily quota adjusted to 100 requests\u002Fday (from 1,000).\n\n- **2026-04-02**: Qwen3.6-Plus is now live! Get an API key from [Alibaba Cloud ModelStudio](https:\u002F\u002Fmodelstudio.console.alibabacloud.com\u002Fap-southeast-1?tab=doc#\u002Fdoc\u002F?type=model&url=2840914_2&modelId=qwen3.6-plus) to access it through the OpenAI-compatible API.\n\n- **2026-02-16**: Qwen3.5-Plus is now live!\n\n## Why Qwen Code?\n\nQwen Code is an open-source AI agent for the terminal, optimized for Qwen series models. It helps you understand large codebases, automate tedious work, and ship faster.\n\n- **Multi-protocol, flexible providers**: use OpenAI \u002F Anthropic \u002F Gemini-compatible APIs, [Alibaba Cloud Coding Plan](https:\u002F\u002Fmodelstudio.console.alibabacloud.com\u002F?tab=coding-plan#\u002Fefm\u002Fcoding-plan-index), [OpenRouter](https:\u002F\u002Fopenrouter.ai), [Fireworks AI](https:\u002F\u002Fapp.fireworks.ai), or bring your own API key.\n- **Open-source, co-evolving**: both the framework and the Qwen3-Coder model are open-source—and they ship and evolve together.\n- **Agentic workflow, feature-rich**: rich built-in tools (Skills, SubAgents) for a full agentic workflow and a Claude Code-like experience.\n- **Terminal-first, IDE-friendly**: built for developers who live in the command line, with optional integration for VS Code, Zed, and JetBrains IDEs.\n\n![](https:\u002F\u002Fgw.alicdn.com\u002Fimgextra\u002Fi1\u002FO1CN01D2DviS1wwtEtMwIzJ_!!6000000006373-2-tps-1600-900.png)\n\n## Installation\n\n### Quick Install (Recommended)\n\n#### Linux \u002F macOS\n\n```bash\nbash -c \"$(curl -fsSL https:\u002F\u002Fqwen-code-assets.oss-cn-hangzhou.aliyuncs.com\u002Finstallation\u002Finstall-qwen.sh)\"\n```\n\n#### Windows (Run as Administrator)\n\nWorks in both Command Prompt and PowerShell:\n\n```cmd\npowershell -Command \"Invoke-WebRequest 'https:\u002F\u002Fqwen-code-assets.oss-cn-hangzhou.aliyuncs.com\u002Finstallation\u002Finstall-qwen.bat' -OutFile (Join-Path $env:TEMP 'install-qwen.bat'); & (Join-Path $env:TEMP 'install-qwen.bat')\"\n```\n\n> **Note**: It's recommended to restart your terminal after installation to ensure environment variables take effect.\n\n### Manual Installation\n\n#### Prerequisites\n\nMake sure you have Node.js 20 or later installed. Download it from [nodejs.org](https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload).\n\n#### NPM\n\n```bash\nnpm install -g @qwen-code\u002Fqwen-code@latest\n```\n\n#### Homebrew (macOS, Linux)\n\n```bash\nbrew install qwen-code\n```\n\n## Quick Start\n\n```bash\n# Start Qwen Code (interactive)\nqwen\n\n# Then, in the session:\n\u002Fhelp\n\u002Fauth\n```\n\nOn first use, you'll be prompted to sign in. You can run `\u002Fauth` anytime to switch authentication methods.\n\nExample prompts:\n\n```text\nWhat does this project do?\nExplain the codebase structure.\nHelp me refactor this function.\nGenerate unit tests for this module.\n```\n\n\u003Cdetails>\n\u003Csummary>Click to watch a demo video\u003C\u002Fsummary>\n\n\u003Cvideo src=\"https:\u002F\u002Fcloud.video.taobao.com\u002Fvod\u002FHLfyppnCHplRV9Qhz2xSqeazHeRzYtG-EYJnHAqtzkQ.mp4\" controls>\nYour browser does not support the video tag.\n\u003C\u002Fvideo>\n\n\u003C\u002Fdetails>\n\n## 🦞 Use Qwen Code for Coding Tasks in Claw\n\nCopy the prompt below and paste it into your agent:\n\n```\nUse Qwen Code as a coding agent. First, fetch and read this skill reference:\nhttps:\u002F\u002Fraw.githubusercontent.com\u002FQwenLM\u002Fqwen-code\u002Frefs\u002Fheads\u002Fmain\u002F.qwen\u002Fskills\u002Fqwen-code-claw\u002FSKILL.md\nThen follow the instructions inside to install, authenticate, and use Qwen Code via acpx for all coding tasks.\n```\n\n## Authentication\n\nQwen Code supports the following authentication methods:\n\n- **API Key (recommended)**: use an API key from Alibaba Cloud Model Studio ([Beijing](https:\u002F\u002Fbailian.console.aliyun.com\u002F) \u002F [intl](https:\u002F\u002Fmodelstudio.console.alibabacloud.com\u002F)) or any supported provider (OpenAI, Anthropic, Google GenAI, and other compatible endpoints).\n- **Coding Plan**: subscribe to the Alibaba Cloud Coding Plan ([Beijing](https:\u002F\u002Fbailian.console.aliyun.com\u002Fcn-beijing?tab=coding-plan#\u002Fefm\u002Fcoding-plan-index) \u002F [intl](https:\u002F\u002Fmodelstudio.console.alibabacloud.com\u002F?tab=coding-plan#\u002Fefm\u002Fcoding-plan-index)) for a fixed monthly fee with higher quotas.\n\n> ⚠️ **Qwen OAuth was discontinued on April 15, 2026.** If you were previously using Qwen OAuth, please switch to one of the methods above. Run `qwen` and then `\u002Fauth` to reconfigure.\n\n#### API Key (recommended)\n\nUse an API key to connect to Alibaba Cloud Model Studio or any supported provider. Supports multiple protocols:\n\n- **OpenAI-compatible**: Alibaba Cloud ModelStudio, ModelScope, OpenAI, OpenRouter, and other OpenAI-compatible providers\n- **Anthropic**: Claude models\n- **Google GenAI**: Gemini models\n\nThe **recommended** way to configure models and providers is by editing `~\u002F.qwen\u002Fsettings.json` (create it if it doesn't exist). This file lets you define all available models, API keys, and default settings in one place.\n\n##### Quick Setup in 3 Steps\n\n**Step 1:** Create or edit `~\u002F.qwen\u002Fsettings.json`\n\nHere is a complete example:\n\n```json\n{\n  \"modelProviders\": {\n    \"openai\": [\n      {\n        \"id\": \"qwen3.6-plus\",\n        \"name\": \"qwen3.6-plus\",\n        \"baseUrl\": \"https:\u002F\u002Fdashscope.aliyuncs.com\u002Fcompatible-mode\u002Fv1\",\n        \"description\": \"Qwen3-Coder via Dashscope\",\n        \"envKey\": \"DASHSCOPE_API_KEY\"\n      }\n    ]\n  },\n  \"env\": {\n    \"DASHSCOPE_API_KEY\": \"sk-xxxxxxxxxxxxx\"\n  },\n  \"security\": {\n    \"auth\": {\n      \"selectedType\": \"openai\"\n    }\n  },\n  \"model\": {\n    \"name\": \"qwen3.6-plus\"\n  }\n}\n```\n\n**Step 2:** Understand each field\n\n| Field                        | What it does                                                                                                                          |\n| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |\n| `modelProviders`             | Declares which models are available and how to connect to them. Keys like `openai`, `anthropic`, `gemini` represent the API protocol. |\n| `modelProviders[].id`        | The model ID sent to the API (e.g. `qwen3.6-plus`, `gpt-4o`).                                                                         |\n| `modelProviders[].envKey`    | The name of the environment variable that holds your API key.                                                                         |\n| `modelProviders[].baseUrl`   | The API endpoint URL (required for non-default endpoints).                                                                            |\n| `env`                        | A fallback place to store API keys (lowest priority; prefer `.env` files or `export` for sensitive keys).                             |\n| `security.auth.selectedType` | The protocol to use on startup (`openai`, `anthropic`, `gemini`, `vertex-ai`).                                                        |\n| `model.name`                 | The default model to use when Qwen Code starts.                                                                                       |\n\n**Step 3:** Start Qwen Code — your configuration takes effect automatically:\n\n```bash\nqwen\n```\n\nUse the `\u002Fmodel` command at any time to switch between all configured models.\n\n##### More Examples\n\n\u003Cdetails>\n\u003Csummary>Coding Plan (Alibaba Cloud ModelStudio) — fixed monthly fee, higher quotas\u003C\u002Fsummary>\n\n```json\n{\n  \"modelProviders\": {\n    \"openai\": [\n      {\n        \"id\": \"qwen3.6-plus\",\n        \"name\": \"qwen3.6-plus (Coding Plan)\",\n        \"baseUrl\": \"https:\u002F\u002Fcoding.dashscope.aliyuncs.com\u002Fv1\",\n        \"description\": \"qwen3.6-plus from ModelStudio Coding Plan\",\n        \"envKey\": \"BAILIAN_CODING_PLAN_API_KEY\"\n      },\n      {\n        \"id\": \"qwen3.5-plus\",\n        \"name\": \"qwen3.5-plus (Coding Plan)\",\n        \"baseUrl\": \"https:\u002F\u002Fcoding.dashscope.aliyuncs.com\u002Fv1\",\n        \"description\": \"qwen3.5-plus with thinking enabled from ModelStudio Coding Plan\",\n        \"envKey\": \"BAILIAN_CODING_PLAN_API_KEY\",\n        \"generationConfig\": {\n          \"extra_body\": {\n            \"enable_thinking\": true\n          }\n        }\n      },\n      {\n        \"id\": \"glm-4.7\",\n        \"name\": \"glm-4.7 (Coding Plan)\",\n        \"baseUrl\": \"https:\u002F\u002Fcoding.dashscope.aliyuncs.com\u002Fv1\",\n        \"description\": \"glm-4.7 with thinking enabled from ModelStudio Coding Plan\",\n        \"envKey\": \"BAILIAN_CODING_PLAN_API_KEY\",\n        \"generationConfig\": {\n          \"extra_body\": {\n            \"enable_thinking\": true\n          }\n        }\n      },\n      {\n        \"id\": \"kimi-k2.5\",\n        \"name\": \"kimi-k2.5 (Coding Plan)\",\n        \"baseUrl\": \"https:\u002F\u002Fcoding.dashscope.aliyuncs.com\u002Fv1\",\n        \"description\": \"kimi-k2.5 with thinking enabled from ModelStudio Coding Plan\",\n        \"envKey\": \"BAILIAN_CODING_PLAN_API_KEY\",\n        \"generationConfig\": {\n          \"extra_body\": {\n            \"enable_thinking\": true\n          }\n        }\n      }\n    ]\n  },\n  \"env\": {\n    \"BAILIAN_CODING_PLAN_API_KEY\": \"sk-xxxxxxxxxxxxx\"\n  },\n  \"security\": {\n    \"auth\": {\n      \"selectedType\": \"openai\"\n    }\n  },\n  \"model\": {\n    \"name\": \"qwen3.6-plus\"\n  }\n}\n```\n\n> Subscribe to the Coding Plan and get your API key at [Alibaba Cloud ModelStudio(Beijing)](https:\u002F\u002Fbailian.console.aliyun.com\u002Fcn-beijing?tab=coding-plan#\u002Fefm\u002Fcoding-plan-index) or [Alibaba Cloud ModelStudio(intl)](https:\u002F\u002Fmodelstudio.console.alibabacloud.com\u002F?tab=coding-plan#\u002Fefm\u002Fcoding-plan-index).\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Multiple providers (OpenAI + Anthropic + Gemini)\u003C\u002Fsummary>\n\n```json\n{\n  \"modelProviders\": {\n    \"openai\": [\n      {\n        \"id\": \"gpt-4o\",\n        \"name\": \"GPT-4o\",\n        \"envKey\": \"OPENAI_API_KEY\",\n        \"baseUrl\": \"https:\u002F\u002Fapi.openai.com\u002Fv1\"\n      }\n    ],\n    \"anthropic\": [\n      {\n        \"id\": \"claude-sonnet-4-20250514\",\n        \"name\": \"Claude Sonnet 4\",\n        \"envKey\": \"ANTHROPIC_API_KEY\"\n      }\n    ],\n    \"gemini\": [\n      {\n        \"id\": \"gemini-2.5-pro\",\n        \"name\": \"Gemini 2.5 Pro\",\n        \"envKey\": \"GEMINI_API_KEY\"\n      }\n    ]\n  },\n  \"env\": {\n    \"OPENAI_API_KEY\": \"sk-xxxxxxxxxxxxx\",\n    \"ANTHROPIC_API_KEY\": \"sk-ant-xxxxxxxxxxxxx\",\n    \"GEMINI_API_KEY\": \"AIzaxxxxxxxxxxxxx\"\n  },\n  \"security\": {\n    \"auth\": {\n      \"selectedType\": \"openai\"\n    }\n  },\n  \"model\": {\n    \"name\": \"gpt-4o\"\n  }\n}\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Enable thinking mode (for supported models like qwen3.5-plus)\u003C\u002Fsummary>\n\n```json\n{\n  \"modelProviders\": {\n    \"openai\": [\n      {\n        \"id\": \"qwen3.5-plus\",\n        \"name\": \"qwen3.5-plus (thinking)\",\n        \"envKey\": \"DASHSCOPE_API_KEY\",\n        \"baseUrl\": \"https:\u002F\u002Fdashscope.aliyuncs.com\u002Fcompatible-mode\u002Fv1\",\n        \"generationConfig\": {\n          \"extra_body\": {\n            \"enable_thinking\": true\n          }\n        }\n      }\n    ]\n  },\n  \"env\": {\n    \"DASHSCOPE_API_KEY\": \"sk-xxxxxxxxxxxxx\"\n  },\n  \"security\": {\n    \"auth\": {\n      \"selectedType\": \"openai\"\n    }\n  },\n  \"model\": {\n    \"name\": \"qwen3.5-plus\"\n  }\n}\n```\n\n\u003C\u002Fdetails>\n\n> **Tip:** You can also set API keys via `export` in your shell or `.env` files, which take higher priority than `settings.json` → `env`. See the [authentication guide](https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Fconfiguration\u002Fauth\u002F) for full details.\n\n> **Security note:** Never commit API keys to version control. The `~\u002F.qwen\u002Fsettings.json` file is in your home directory and should stay private.\n\n#### Local Model Setup (Ollama \u002F vLLM)\n\nYou can also run models locally — no API key or cloud account needed. This is not an authentication method; instead, configure your local model endpoint in `~\u002F.qwen\u002Fsettings.json` using the `modelProviders` field.\n\n\u003Cdetails>\n\u003Csummary>Ollama setup\u003C\u002Fsummary>\n\n1. Install Ollama from [ollama.com](https:\u002F\u002Follama.com\u002F)\n2. Pull a model: `ollama pull qwen3:32b`\n3. Configure `~\u002F.qwen\u002Fsettings.json`:\n\n```json\n{\n  \"modelProviders\": {\n    \"openai\": [\n      {\n        \"id\": \"qwen3:32b\",\n        \"name\": \"Qwen3 32B (Ollama)\",\n        \"baseUrl\": \"http:\u002F\u002Flocalhost:11434\u002Fv1\",\n        \"description\": \"Qwen3 32B running locally via Ollama\"\n      }\n    ]\n  },\n  \"security\": {\n    \"auth\": {\n      \"selectedType\": \"openai\"\n    }\n  },\n  \"model\": {\n    \"name\": \"qwen3:32b\"\n  }\n}\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>vLLM setup\u003C\u002Fsummary>\n\n1. Install vLLM: `pip install vllm`\n2. Start the server: `vllm serve Qwen\u002FQwen3-32B`\n3. Configure `~\u002F.qwen\u002Fsettings.json`:\n\n```json\n{\n  \"modelProviders\": {\n    \"openai\": [\n      {\n        \"id\": \"Qwen\u002FQwen3-32B\",\n        \"name\": \"Qwen3 32B (vLLM)\",\n        \"baseUrl\": \"http:\u002F\u002Flocalhost:8000\u002Fv1\",\n        \"description\": \"Qwen3 32B running locally via vLLM\"\n      }\n    ]\n  },\n  \"security\": {\n    \"auth\": {\n      \"selectedType\": \"openai\"\n    }\n  },\n  \"model\": {\n    \"name\": \"Qwen\u002FQwen3-32B\"\n  }\n}\n```\n\n\u003C\u002Fdetails>\n\n## Usage\n\nAs an open-source terminal agent, you can use Qwen Code in four primary ways:\n\n1. Interactive mode (terminal UI)\n2. Headless mode (scripts, CI)\n3. IDE integration (VS Code, Zed)\n4. SDKs (TypeScript, Python, Java)\n\n#### Interactive mode\n\n```bash\ncd your-project\u002F\nqwen\n```\n\nRun `qwen` in your project folder to launch the interactive terminal UI. Use `@` to reference local files (for example `@src\u002Fmain.ts`).\n\n#### Headless mode\n\n```bash\ncd your-project\u002F\nqwen -p \"your question\"\n```\n\nUse `-p` to run Qwen Code without the interactive UI—ideal for scripts, automation, and CI\u002FCD. Learn more: [Headless mode](https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Ffeatures\u002Fheadless).\n\n#### IDE integration\n\nUse Qwen Code inside your editor (VS Code, Zed, and JetBrains IDEs):\n\n- [Use in VS Code](https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Fintegration-vscode\u002F)\n- [Use in Zed](https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Fintegration-zed\u002F)\n- [Use in JetBrains IDEs](https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Fintegration-jetbrains\u002F)\n\n#### SDKs\n\nBuild on top of Qwen Code with the available SDKs:\n\n- TypeScript: [Use the Qwen Code SDK](.\u002Fpackages\u002Fsdk-typescript\u002FREADME.md)\n- Python: [Use the Python SDK](.\u002Fpackages\u002Fsdk-python\u002FREADME.md)\n- Java: [Use the Java SDK](.\u002Fpackages\u002Fsdk-java\u002Fqwencode\u002FREADME.md)\n\nPython SDK example:\n\n```python\nimport asyncio\n\nfrom qwen_code_sdk import is_sdk_result_message, query\n\n\nasync def main() -> None:\n    result = query(\n        \"Summarize the repository layout.\",\n        {\n            \"cwd\": \"\u002Fpath\u002Fto\u002Fproject\",\n            \"path_to_qwen_executable\": \"qwen\",\n        },\n    )\n\n    async for message in result:\n        if is_sdk_result_message(message):\n            print(message[\"result\"])\n\n\nasyncio.run(main())\n```\n\n## Commands & Shortcuts\n\n### Session Commands\n\n- `\u002Fhelp` - Display available commands\n- `\u002Fclear` - Clear conversation history\n- `\u002Fcompress` - Compress history to save tokens\n- `\u002Fstats` - Show current session information\n- `\u002Fbug` - Submit a bug report\n- `\u002Fexit` or `\u002Fquit` - Exit Qwen Code\n\n### Keyboard Shortcuts\n\n- `Ctrl+C` - Cancel current operation\n- `Ctrl+D` - Exit (on empty line)\n- `Up\u002FDown` - Navigate command history\n\n> Learn more about [Commands](https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Ffeatures\u002Fcommands\u002F)\n>\n> **Tip**: In YOLO mode (`--yolo`), vision switching happens automatically without prompts when images are detected. Learn more about [Approval Mode](https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Ffeatures\u002Fapproval-mode\u002F)\n\n## Configuration\n\nQwen Code can be configured via `settings.json`, environment variables, and CLI flags.\n\n| File                    | Scope         | Description                                                                             |\n| ----------------------- | ------------- | --------------------------------------------------------------------------------------- |\n| `~\u002F.qwen\u002Fsettings.json` | User (global) | Applies to all your Qwen Code sessions. **Recommended for `modelProviders` and `env`.** |\n| `.qwen\u002Fsettings.json`   | Project       | Applies only when running Qwen Code in this project. Overrides user settings.           |\n\nThe most commonly used top-level fields in `settings.json`:\n\n| Field                        | Description                                                                                          |\n| ---------------------------- | ---------------------------------------------------------------------------------------------------- |\n| `modelProviders`             | Define available models per protocol (`openai`, `anthropic`, `gemini`, `vertex-ai`).                 |\n| `env`                        | Fallback environment variables (e.g. API keys). Lower priority than shell `export` and `.env` files. |\n| `security.auth.selectedType` | The protocol to use on startup (e.g. `openai`).                                                      |\n| `model.name`                 | The default model to use when Qwen Code starts.                                                      |\n\n> See the [Authentication](#api-key-flexible) section above for complete `settings.json` examples, and the [settings reference](https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Fconfiguration\u002Fsettings\u002F) for all available options.\n\n## Benchmark Results\n\n### Terminal-Bench Performance\n\n| Agent     | Model              | Accuracy |\n| --------- | ------------------ | -------- |\n| Qwen Code | Qwen3-Coder-480A35 | 37.5%    |\n| Qwen Code | Qwen3-Coder-30BA3B | 31.3%    |\n\n## Ecosystem\n\nLooking for a graphical interface?\n\n- [**AionUi**](https:\u002F\u002Fgithub.com\u002FiOfficeAI\u002FAionUi) A modern GUI for command-line AI tools including Qwen Code\n- [**Gemini CLI Desktop**](https:\u002F\u002Fgithub.com\u002FPiebald-AI\u002Fgemini-cli-desktop) A cross-platform desktop\u002Fweb\u002Fmobile UI for Qwen Code\n\n## Troubleshooting\n\nIf you encounter issues, check the [troubleshooting guide](https:\u002F\u002Fqwenlm.github.io\u002Fqwen-code-docs\u002Fen\u002Fusers\u002Fsupport\u002Ftroubleshooting\u002F).\n\n**Common issues:**\n\n- **`Qwen OAuth free tier was discontinued on 2026-04-15`**: Qwen OAuth is no longer available. Run `qwen` → `\u002Fauth` and switch to API Key or Coding Plan. See the [Authentication](#authentication) section above for setup instructions.\n\nTo report a bug from within the CLI, run `\u002Fbug` and include a short title and repro steps.\n\n## Connect with Us\n\n- Discord: https:\u002F\u002Fdiscord.gg\u002FRN7tqZCeDK\n- Dingtalk: https:\u002F\u002Fqr.dingtalk.com\u002Faction\u002Fjoingroup?code=v1,k1,+FX6Gf\u002FZDlTahTIRi8AEQhIaBlqykA0j+eBKKdhLeAE=&_dt_no_comment=1&origin=1\n\n## Acknowledgments\n\nThis project is based on [Google Gemini CLI](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-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.\n","Qwen Code 是一个开源的终端AI代理，旨在帮助开发者理解和管理大型代码库、自动化繁琐任务并加速开发流程。它支持多种协议和灵活的服务提供商，包括OpenAI、Anthropic、Gemini兼容API以及阿里云编码计划等，用户也可以自定义API密钥。该项目不仅开源了框架本身，还开放了Qwen3-Coder模型，两者共同演进。Qwen Code提供了丰富的内置工具如Skills和SubAgents，支持完整的代理工作流，为用户提供类似Claude Code的体验。此外，它专为偏好命令行操作的开发者设计，同时支持与VS Code、Zed及JetBrains系列IDE的集成，使得无论是在终端还是IDE环境中都能高效工作。",2,"2026-06-11 02:55:24","top_language"]