@qwen-code/qwen-code 0.10.2 → 0.10.4-nightly.20260219.c6a723ef
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 +205 -4
- package/cli.js +315 -152
- package/locales/de.js +20 -2
- package/locales/en.js +20 -2
- package/locales/ja.js +21 -2
- package/locales/pt.js +20 -2
- package/locales/ru.js +21 -2
- package/locales/zh.js +20 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
|
+
> 🎉 **News (2026-02-16)**: Qwen3.5-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?tab=doc#/doc/?type=model&url=2840914_2&modelId=group-qwen3.5-plus) to access it through the OpenAI-compatible API.
|
|
22
|
+
|
|
21
23
|
Qwen Code is an open-source AI agent for the terminal, optimized for [Qwen3-Coder](https://github.com/QwenLM/Qwen3-Coder). It helps you understand large codebases, automate tedious work, and ship faster.
|
|
22
24
|
|
|
23
25
|

|
|
@@ -123,7 +125,195 @@ Use this if you want more flexibility over which provider and model to use. Supp
|
|
|
123
125
|
- **Anthropic**: Claude models
|
|
124
126
|
- **Google GenAI**: Gemini models
|
|
125
127
|
|
|
126
|
-
|
|
128
|
+
The **recommended** way to configure models and providers is by editing `~/.qwen/settings.json` (create it if it doesn't exist). This file lets you define all available models, API keys, and default settings in one place.
|
|
129
|
+
|
|
130
|
+
##### Quick Setup in 3 Steps
|
|
131
|
+
|
|
132
|
+
**Step 1:** Create or edit `~/.qwen/settings.json`
|
|
133
|
+
|
|
134
|
+
Here is a complete example:
|
|
135
|
+
|
|
136
|
+
```json
|
|
137
|
+
{
|
|
138
|
+
"modelProviders": {
|
|
139
|
+
"openai": [
|
|
140
|
+
{
|
|
141
|
+
"id": "qwen3-coder-plus",
|
|
142
|
+
"name": "qwen3-coder-plus",
|
|
143
|
+
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
144
|
+
"description": "Qwen3-Coder via Dashscope",
|
|
145
|
+
"envKey": "DASHSCOPE_API_KEY"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"env": {
|
|
150
|
+
"DASHSCOPE_API_KEY": "sk-xxxxxxxxxxxxx"
|
|
151
|
+
},
|
|
152
|
+
"security": {
|
|
153
|
+
"auth": {
|
|
154
|
+
"selectedType": "openai"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"model": {
|
|
158
|
+
"name": "qwen3-coder-plus"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Step 2:** Understand each field
|
|
164
|
+
|
|
165
|
+
| Field | What it does |
|
|
166
|
+
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
167
|
+
| `modelProviders` | Declares which models are available and how to connect to them. Keys like `openai`, `anthropic`, `gemini` represent the API protocol. |
|
|
168
|
+
| `modelProviders[].id` | The model ID sent to the API (e.g. `qwen3-coder-plus`, `gpt-4o`). |
|
|
169
|
+
| `modelProviders[].envKey` | The name of the environment variable that holds your API key. |
|
|
170
|
+
| `modelProviders[].baseUrl` | The API endpoint URL (required for non-default endpoints). |
|
|
171
|
+
| `env` | A fallback place to store API keys (lowest priority; prefer `.env` files or `export` for sensitive keys). |
|
|
172
|
+
| `security.auth.selectedType` | The protocol to use on startup (`openai`, `anthropic`, `gemini`, `vertex-ai`). |
|
|
173
|
+
| `model.name` | The default model to use when Qwen Code starts. |
|
|
174
|
+
|
|
175
|
+
**Step 3:** Start Qwen Code — your configuration takes effect automatically:
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
qwen
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Use the `/model` command at any time to switch between all configured models.
|
|
182
|
+
|
|
183
|
+
##### More Examples
|
|
184
|
+
|
|
185
|
+
<details>
|
|
186
|
+
<summary>Coding Plan (Alibaba Cloud Bailian) — fixed monthly fee, higher quotas</summary>
|
|
187
|
+
|
|
188
|
+
```json
|
|
189
|
+
{
|
|
190
|
+
"modelProviders": {
|
|
191
|
+
"openai": [
|
|
192
|
+
{
|
|
193
|
+
"id": "qwen3.5-plus",
|
|
194
|
+
"name": "qwen3.5-plus (Coding Plan)",
|
|
195
|
+
"baseUrl": "https://coding.dashscope.aliyuncs.com/v1",
|
|
196
|
+
"description": "qwen3.5-plus with thinking enabled from Bailian Coding Plan",
|
|
197
|
+
"envKey": "BAILIAN_CODING_PLAN_API_KEY",
|
|
198
|
+
"generationConfig": {
|
|
199
|
+
"extra_body": {
|
|
200
|
+
"enable_thinking": true
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "qwen3-coder-plus",
|
|
206
|
+
"name": "qwen3-coder-plus (Coding Plan)",
|
|
207
|
+
"baseUrl": "https://coding.dashscope.aliyuncs.com/v1",
|
|
208
|
+
"description": "qwen3-coder-plus from Bailian Coding Plan",
|
|
209
|
+
"envKey": "BAILIAN_CODING_PLAN_API_KEY"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"env": {
|
|
214
|
+
"BAILIAN_CODING_PLAN_API_KEY": "sk-xxxxxxxxxxxxx"
|
|
215
|
+
},
|
|
216
|
+
"security": {
|
|
217
|
+
"auth": {
|
|
218
|
+
"selectedType": "openai"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"model": {
|
|
222
|
+
"name": "qwen3-coder-plus"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
> Subscribe to the Coding Plan and get your API key at [Alibaba Cloud Bailian](https://modelstudio.console.aliyun.com/?tab=dashboard#/efm/coding_plan).
|
|
228
|
+
|
|
229
|
+
</details>
|
|
230
|
+
|
|
231
|
+
<details>
|
|
232
|
+
<summary>Multiple providers (OpenAI + Anthropic + Gemini)</summary>
|
|
233
|
+
|
|
234
|
+
```json
|
|
235
|
+
{
|
|
236
|
+
"modelProviders": {
|
|
237
|
+
"openai": [
|
|
238
|
+
{
|
|
239
|
+
"id": "gpt-4o",
|
|
240
|
+
"name": "GPT-4o",
|
|
241
|
+
"envKey": "OPENAI_API_KEY",
|
|
242
|
+
"baseUrl": "https://api.openai.com/v1"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"anthropic": [
|
|
246
|
+
{
|
|
247
|
+
"id": "claude-sonnet-4-20250514",
|
|
248
|
+
"name": "Claude Sonnet 4",
|
|
249
|
+
"envKey": "ANTHROPIC_API_KEY"
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"gemini": [
|
|
253
|
+
{
|
|
254
|
+
"id": "gemini-2.5-pro",
|
|
255
|
+
"name": "Gemini 2.5 Pro",
|
|
256
|
+
"envKey": "GEMINI_API_KEY"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"env": {
|
|
261
|
+
"OPENAI_API_KEY": "sk-xxxxxxxxxxxxx",
|
|
262
|
+
"ANTHROPIC_API_KEY": "sk-ant-xxxxxxxxxxxxx",
|
|
263
|
+
"GEMINI_API_KEY": "AIzaxxxxxxxxxxxxx"
|
|
264
|
+
},
|
|
265
|
+
"security": {
|
|
266
|
+
"auth": {
|
|
267
|
+
"selectedType": "openai"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"model": {
|
|
271
|
+
"name": "gpt-4o"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
</details>
|
|
277
|
+
|
|
278
|
+
<details>
|
|
279
|
+
<summary>Enable thinking mode (for supported models like qwen3.5-plus)</summary>
|
|
280
|
+
|
|
281
|
+
```json
|
|
282
|
+
{
|
|
283
|
+
"modelProviders": {
|
|
284
|
+
"openai": [
|
|
285
|
+
{
|
|
286
|
+
"id": "qwen3.5-plus",
|
|
287
|
+
"name": "qwen3.5-plus (thinking)",
|
|
288
|
+
"envKey": "DASHSCOPE_API_KEY",
|
|
289
|
+
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
290
|
+
"generationConfig": {
|
|
291
|
+
"extra_body": {
|
|
292
|
+
"enable_thinking": true
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"env": {
|
|
299
|
+
"DASHSCOPE_API_KEY": "sk-xxxxxxxxxxxxx"
|
|
300
|
+
},
|
|
301
|
+
"security": {
|
|
302
|
+
"auth": {
|
|
303
|
+
"selectedType": "openai"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"model": {
|
|
307
|
+
"name": "qwen3.5-plus"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
</details>
|
|
313
|
+
|
|
314
|
+
> **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://qwenlm.github.io/qwen-code-docs/en/users/configuration/auth/) for full details.
|
|
315
|
+
|
|
316
|
+
> **Security note:** Never commit API keys to version control. The `~/.qwen/settings.json` file is in your home directory and should stay private.
|
|
127
317
|
|
|
128
318
|
## Usage
|
|
129
319
|
|
|
@@ -191,10 +381,21 @@ Build on top of Qwen Code with the TypeScript SDK:
|
|
|
191
381
|
|
|
192
382
|
Qwen Code can be configured via `settings.json`, environment variables, and CLI flags.
|
|
193
383
|
|
|
194
|
-
|
|
195
|
-
|
|
384
|
+
| File | Scope | Description |
|
|
385
|
+
| ----------------------- | ------------- | --------------------------------------------------------------------------------------- |
|
|
386
|
+
| `~/.qwen/settings.json` | User (global) | Applies to all your Qwen Code sessions. **Recommended for `modelProviders` and `env`.** |
|
|
387
|
+
| `.qwen/settings.json` | Project | Applies only when running Qwen Code in this project. Overrides user settings. |
|
|
388
|
+
|
|
389
|
+
The most commonly used top-level fields in `settings.json`:
|
|
390
|
+
|
|
391
|
+
| Field | Description |
|
|
392
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
393
|
+
| `modelProviders` | Define available models per protocol (`openai`, `anthropic`, `gemini`, `vertex-ai`). |
|
|
394
|
+
| `env` | Fallback environment variables (e.g. API keys). Lower priority than shell `export` and `.env` files. |
|
|
395
|
+
| `security.auth.selectedType` | The protocol to use on startup (e.g. `openai`). |
|
|
396
|
+
| `model.name` | The default model to use when Qwen Code starts. |
|
|
196
397
|
|
|
197
|
-
See [settings](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/settings/) for available options
|
|
398
|
+
> See the [Authentication](#api-key-flexible) section above for complete `settings.json` examples, and the [settings reference](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/settings/) for all available options.
|
|
198
399
|
|
|
199
400
|
## Benchmark Results
|
|
200
401
|
|