@qwen-code/qwen-code 0.14.4 β 0.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/bundled/qc-helper/docs/configuration/auth.md +7 -5
- package/bundled/qc-helper/docs/configuration/settings.md +1 -0
- package/bundled/qc-helper/docs/features/sub-agents.md +37 -1
- package/bundled/qc-helper/docs/support/tos-privacy.md +1 -1
- package/cli.js +6843 -5668
- package/locales/de.js +17 -9
- package/locales/en.js +17 -9
- package/locales/fr.js +17 -9
- package/locales/ja.js +17 -9
- package/locales/pt.js +17 -9
- package/locales/ru.js +17 -9
- package/locales/zh.js +17 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
|
|
21
21
|
## π News
|
|
22
22
|
|
|
23
|
-
- **2026-04-
|
|
23
|
+
- **2026-04-15**: Qwen OAuth free tier has been discontinued. To continue using Qwen Code, switch to [Alibaba Cloud Coding Plan](https://modelstudio.console.alibabacloud.com/?tab=coding-plan#/efm/coding-plan-index), [OpenRouter](https://openrouter.ai), [Fireworks AI](https://app.fireworks.ai), or bring your own API key. Run `qwen auth` to configure.
|
|
24
|
+
|
|
25
|
+
- **2026-04-13**: Qwen OAuth free tier policy update: daily quota adjusted to 100 requests/day (from 1,000).
|
|
24
26
|
|
|
25
27
|
- **2026-04-02**: Qwen3.6-Plus is now live! Sign in via Qwen OAuth to use it directly, or get an API key from [Alibaba Cloud ModelStudio](https://modelstudio.console.alibabacloud.com/ap-southeast-1?tab=doc#/doc/?type=model&url=2840914_2&modelId=qwen3.6-plus) to access it through the OpenAI-compatible API.
|
|
26
28
|
|
|
@@ -30,7 +32,7 @@
|
|
|
30
32
|
|
|
31
33
|
Qwen 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.
|
|
32
34
|
|
|
33
|
-
- **Multi-protocol,
|
|
35
|
+
- **Multi-protocol, flexible providers**: use OpenAI / Anthropic / Gemini-compatible APIs, [Alibaba Cloud Coding Plan](https://modelstudio.console.alibabacloud.com/?tab=coding-plan#/efm/coding-plan-index), [OpenRouter](https://openrouter.ai), [Fireworks AI](https://app.fireworks.ai), or bring your own API key.
|
|
34
36
|
- **Open-source, co-evolving**: both the framework and the Qwen3-Coder model are open-sourceβand they ship and evolve together.
|
|
35
37
|
- **Agentic workflow, feature-rich**: rich built-in tools (Skills, SubAgents) for a full agentic workflow and a Claude Code-like experience.
|
|
36
38
|
- **Terminal-first, IDE-friendly**: built for developers who live in the command line, with optional integration for VS Code, Zed, and JetBrains IDEs.
|
|
@@ -2,18 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Qwen Code supports three authentication methods. Pick the one that matches how you want to run the CLI:
|
|
4
4
|
|
|
5
|
-
- **Qwen OAuth**: sign in with your `qwen.ai` account in a browser. Free
|
|
5
|
+
- **Qwen OAuth**: sign in with your `qwen.ai` account in a browser. **Free tier discontinued on 2026-04-15** β switch to another method.
|
|
6
6
|
- **Alibaba Cloud Coding Plan**: use an API key from Alibaba Cloud. Paid subscription with diverse model options and higher quotas.
|
|
7
7
|
- **API Key**: bring your own API key. Flexible to your own needs β supports OpenAI, Anthropic, Gemini, and other compatible endpoints.
|
|
8
8
|
|
|
9
|
-
## Option 1: Qwen OAuth (
|
|
9
|
+
## Option 1: Qwen OAuth (Discontinued)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
> [!warning]
|
|
12
|
+
>
|
|
13
|
+
> The Qwen OAuth free tier was discontinued on 2026-04-15. Existing cached tokens may continue working briefly, but new requests will be rejected. Please switch to Alibaba Cloud Coding Plan, [OpenRouter](https://openrouter.ai), [Fireworks AI](https://app.fireworks.ai), or another provider. Run `qwen auth` to configure.
|
|
12
14
|
|
|
13
15
|
- **How it works**: on first start, Qwen Code opens a browser login page. After you finish, credentials are cached locally so you usually won't need to log in again.
|
|
14
16
|
- **Requirements**: a `qwen.ai` account + internet access (at least for the first login).
|
|
15
17
|
- **Benefits**: no API key management, automatic credential refresh.
|
|
16
|
-
- **Cost & quota**:
|
|
18
|
+
- **Cost & quota**: the free tier has been discontinued as of 2026-04-15.
|
|
17
19
|
|
|
18
20
|
Start the CLI and follow the browser flow:
|
|
19
21
|
|
|
@@ -327,8 +329,8 @@ You'll see a selector with arrow-key navigation:
|
|
|
327
329
|
```
|
|
328
330
|
Select authentication method:
|
|
329
331
|
|
|
330
|
-
> Qwen OAuth - Free Β· 100 requests/day Β· Ending 2026-04-15
|
|
331
332
|
Alibaba Cloud Coding Plan - Paid Β· Up to 6,000 requests/5 hrs Β· All Alibaba Cloud Coding Plan Models
|
|
333
|
+
Qwen OAuth - Discontinued β switch to Coding Plan or API Key
|
|
332
334
|
|
|
333
335
|
(Use β β arrows to navigate, Enter to select, Ctrl+C to exit)
|
|
334
336
|
```
|
|
@@ -527,6 +527,7 @@ For authentication-related variables (like `OPENAI_*`) and the recommended `.qwe
|
|
|
527
527
|
| `CODE_ASSIST_ENDPOINT` | Specifies the endpoint for the code assist server. | This is useful for development and testing. |
|
|
528
528
|
| `QWEN_CODE_MAX_OUTPUT_TOKENS` | Overrides the default maximum output tokens per response. When not set, Qwen Code uses an adaptive strategy: starts with 8K tokens and automatically retries with 64K if the response is truncated. Set this to a specific value (e.g., `16000`) to use a fixed limit instead. | Takes precedence over the capped default (8K) but is overridden by `samplingParams.max_tokens` in settings. Disables automatic escalation when set. Example: `export QWEN_CODE_MAX_OUTPUT_TOKENS=16000` |
|
|
529
529
|
| `TAVILY_API_KEY` | Your API key for the Tavily web search service. | Used to enable the `web_search` tool functionality. Example: `export TAVILY_API_KEY="tvly-your-api-key-here"` |
|
|
530
|
+
| `QWEN_CODE_PROFILE_STARTUP` | Set to `1` to enable startup performance profiling. Writes a JSON timing report to `~/.qwen/startup-perf/` with per-phase durations. | Only active inside the sandbox child process. Zero overhead when not set. Example: `export QWEN_CODE_PROFILE_STARTUP=1` |
|
|
530
531
|
|
|
531
532
|
## Command-Line Arguments
|
|
532
533
|
|
|
@@ -12,10 +12,46 @@ Subagents are independent AI assistants that:
|
|
|
12
12
|
- **Work autonomously** - Once given a task, they work independently until completion or failure
|
|
13
13
|
- **Provide detailed feedback** - You can see their progress, tool usage, and execution statistics in real-time
|
|
14
14
|
|
|
15
|
+
## Fork Subagent (Implicit Fork)
|
|
16
|
+
|
|
17
|
+
In addition to named subagents, Qwen Code supports **implicit forking** β when the AI omits the `subagent_type` parameter, it triggers a fork that inherits the parent's full conversation context.
|
|
18
|
+
|
|
19
|
+
### How Fork Differs from Named Subagents
|
|
20
|
+
|
|
21
|
+
| | Named Subagent | Fork Subagent |
|
|
22
|
+
| ------------- | --------------------------------- | ----------------------------------------------------- |
|
|
23
|
+
| Context | Starts fresh, no parent history | Inherits parent's full conversation history |
|
|
24
|
+
| System prompt | Uses its own configured prompt | Uses parent's exact system prompt (for cache sharing) |
|
|
25
|
+
| Execution | Blocks the parent until done | Runs in background, parent continues immediately |
|
|
26
|
+
| Use case | Specialized tasks (testing, docs) | Parallel tasks that need the current context |
|
|
27
|
+
|
|
28
|
+
### When Fork is Used
|
|
29
|
+
|
|
30
|
+
The AI automatically uses fork when it needs to:
|
|
31
|
+
|
|
32
|
+
- Run multiple research tasks in parallel (e.g., "investigate module A, B, and C")
|
|
33
|
+
- Perform background work while continuing the main conversation
|
|
34
|
+
- Delegate tasks that require understanding of the current conversation context
|
|
35
|
+
|
|
36
|
+
### Prompt Cache Sharing
|
|
37
|
+
|
|
38
|
+
All forks share the parent's exact API request prefix (system prompt, tools, conversation history), enabling DashScope prompt cache hits. When 3 forks run in parallel, the shared prefix is cached once and reused β saving 80%+ token costs compared to independent subagents.
|
|
39
|
+
|
|
40
|
+
### Recursive Fork Prevention
|
|
41
|
+
|
|
42
|
+
Fork children cannot create further forks. This is enforced at runtime β if a fork attempts to spawn another fork, it receives an error instructing it to execute tasks directly.
|
|
43
|
+
|
|
44
|
+
### Current Limitations
|
|
45
|
+
|
|
46
|
+
- **No result feedback**: Fork results are reflected in the UI progress display but are not automatically fed back into the main conversation. The parent AI sees a placeholder message and cannot act on the fork's output.
|
|
47
|
+
- **No worktree isolation**: Forks share the parent's working directory. Concurrent file modifications from multiple forks may conflict.
|
|
48
|
+
|
|
15
49
|
## Key Benefits
|
|
16
50
|
|
|
17
51
|
- **Task Specialization**: Create agents optimized for specific workflows (testing, documentation, refactoring, etc.)
|
|
18
52
|
- **Context Isolation**: Keep specialized work separate from your main conversation
|
|
53
|
+
- **Context Inheritance**: Fork subagents inherit the full conversation for context-heavy parallel tasks
|
|
54
|
+
- **Prompt Cache Sharing**: Fork subagents share the parent's cache prefix, reducing token costs
|
|
19
55
|
- **Reusability**: Save and reuse agent configurations across projects and sessions
|
|
20
56
|
- **Controlled Access**: Limit which tools each agent can use for security and focus
|
|
21
57
|
- **Progress Visibility**: Monitor agent execution with real-time progress updates
|
|
@@ -23,7 +59,7 @@ Subagents are independent AI assistants that:
|
|
|
23
59
|
## How Subagents Work
|
|
24
60
|
|
|
25
61
|
1. **Configuration**: You create Subagents configurations that define their behavior, tools, and system prompts
|
|
26
|
-
2. **Delegation**: The main AI can automatically delegate tasks to appropriate Subagents
|
|
62
|
+
2. **Delegation**: The main AI can automatically delegate tasks to appropriate Subagents β or implicitly fork when no specific subagent type is needed
|
|
27
63
|
3. **Execution**: Subagents work independently, using their configured tools to complete tasks
|
|
28
64
|
4. **Results**: They return results and execution summaries back to the main conversation
|
|
29
65
|
|
|
@@ -6,7 +6,7 @@ Qwen Code is an open-source AI coding assistant tool maintained by the Qwen Code
|
|
|
6
6
|
|
|
7
7
|
Qwen Code supports three authentication methods to access AI models. Your authentication method determines which terms of service and privacy policies apply to your usage:
|
|
8
8
|
|
|
9
|
-
1. **Qwen OAuth** β Log in with your qwen.ai account (free
|
|
9
|
+
1. **Qwen OAuth** β Log in with your qwen.ai account (free tier discontinued 2026-04-15)
|
|
10
10
|
2. **Alibaba Cloud Coding Plan** β Use an API key from Alibaba Cloud
|
|
11
11
|
3. **API Key** β Bring your own API key
|
|
12
12
|
|