@qwen-code/qwen-code 0.10.1 → 0.10.2

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 CHANGED
@@ -24,9 +24,9 @@ Qwen Code is an open-source AI agent for the terminal, optimized for [Qwen3-Code
24
24
 
25
25
  ## Why Qwen Code?
26
26
 
27
- - **OpenAI-compatible, OAuth free tier**: use an OpenAI-compatible API, or sign in with Qwen OAuth to get 1,000 free requests/day.
27
+ - **Multi-protocol, OAuth free tier**: use OpenAI / Anthropic / Gemini-compatible APIs, or sign in with Qwen OAuth for 1,000 free requests/day.
28
28
  - **Open-source, co-evolving**: both the framework and the Qwen3-Coder model are open-source—and they ship and evolve together.
29
- - **Agentic workflow, feature-rich**: rich built-in tools (Skills, SubAgents, Plan Mode) for a full agentic workflow and a Claude Code-like experience.
29
+ - **Agentic workflow, feature-rich**: rich built-in tools (Skills, SubAgents) for a full agentic workflow and a Claude Code-like experience.
30
30
  - **Terminal-first, IDE-friendly**: built for developers who live in the command line, with optional integration for VS Code, Zed, and JetBrains IDEs.
31
31
 
32
32
  ## Installation
@@ -51,10 +51,7 @@ curl -fsSL -o %TEMP%\install-qwen.bat https://qwen-code-assets.oss-cn-hangzhou.a
51
51
 
52
52
  #### Prerequisites
53
53
 
54
- ```bash
55
- # Node.js 20+
56
- curl -qL https://www.npmjs.com/install.sh | sh
57
- ```
54
+ Make sure you have Node.js 20 or later installed. Download it from [nodejs.org](https://nodejs.org/en/download).
58
55
 
59
56
  #### NPM
60
57
 
@@ -104,7 +101,7 @@ Your browser does not support the video tag.
104
101
  Qwen Code supports two authentication methods:
105
102
 
106
103
  - **Qwen OAuth (recommended & free)**: sign in with your `qwen.ai` account in a browser.
107
- - **OpenAI-compatible API**: use `OPENAI_API_KEY` (and optionally a custom base URL / model).
104
+ - **API-KEY**: use an API key to connect to any supported provider (OpenAI, Anthropic, Google GenAI, Alibaba Cloud Bailian, and other compatible endpoints).
108
105
 
109
106
  #### Qwen OAuth (recommended)
110
107
 
@@ -116,17 +113,17 @@ Start `qwen`, then run:
116
113
 
117
114
  Choose **Qwen OAuth** and complete the browser flow. Your credentials are cached locally so you usually won't need to log in again.
118
115
 
119
- #### OpenAI-compatible API (API key)
116
+ > **Note:** In non-interactive or headless environments (e.g., CI, SSH, containers), you typically **cannot** complete the OAuth browser login flow. In these cases, please use the API-KEY authentication method.
120
117
 
121
- Environment variables (recommended for CI / headless environments):
118
+ #### API-KEY (flexible)
122
119
 
123
- ```bash
124
- export OPENAI_API_KEY="your-api-key-here"
125
- export OPENAI_BASE_URL="https://api.openai.com/v1" # optional
126
- export OPENAI_MODEL="gpt-4o" # optional
127
- ```
120
+ Use this if you want more flexibility over which provider and model to use. Supports multiple protocols:
121
+
122
+ - **OpenAI-compatible**: Alibaba Cloud Bailian, ModelScope, OpenAI, OpenRouter, and other OpenAI-compatible providers
123
+ - **Anthropic**: Claude models
124
+ - **Google GenAI**: Gemini models
128
125
 
129
- For details (including `.qwen/.env` loading and security notes), see the [authentication guide](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/auth/).
126
+ For full details (including `modelProviders` configuration, `.env` file loading, environment variable priorities, and security notes), see the [authentication guide](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/auth/).
130
127
 
131
128
  ## Usage
132
129