@qwen-code/qwen-code 0.19.0 → 0.19.1-nightly.20260624.a234860a4
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/bundled/qc-helper/SKILL.md +13 -5
- package/bundled/qc-helper/docs/configuration/_meta.ts +1 -0
- package/bundled/qc-helper/docs/configuration/auth.md +68 -48
- package/bundled/qc-helper/docs/configuration/model-providers.md +217 -195
- package/bundled/qc-helper/docs/configuration/settings.md +30 -14
- package/bundled/qc-helper/docs/configuration/themes.md +7 -4
- package/bundled/qc-helper/docs/extension/extension-releasing.md +1 -1
- package/bundled/qc-helper/docs/extension/introduction.md +3 -15
- package/bundled/qc-helper/docs/features/arena.md +3 -3
- package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
- package/bundled/qc-helper/docs/features/channels/plugins.md +1 -1
- package/bundled/qc-helper/docs/features/commands.md +6 -1
- package/bundled/qc-helper/docs/features/headless.md +1 -1
- package/bundled/qc-helper/docs/features/mcp.md +24 -8
- package/bundled/qc-helper/docs/features/sandbox.md +2 -2
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +1 -1
- package/bundled/qc-helper/docs/integration-github-action.md +2 -2
- package/bundled/qc-helper/docs/overview.md +1 -1
- package/bundled/qc-helper/docs/quickstart.md +9 -5
- package/bundled/qc-helper/docs/qwen-serve.md +15 -3
- package/bundled/qc-helper/docs/support/tos-privacy.md +1 -1
- package/chunks/{agent-IPSDEZNB.js → agent-6KV474S5.js} +7 -7
- package/chunks/{agent-headless-ZMTUWMZJ.js → agent-headless-XO7MM6JT.js} +7 -7
- package/chunks/{anthropicContentGenerator-6MCH4X6S.js → anthropicContentGenerator-7352A7I5.js} +2 -2
- package/chunks/{artifact-tool-PBX64YTT.js → artifact-tool-5J4HUZAV.js} +1 -1
- package/chunks/{askUserQuestion-5ZQOWSRT.js → askUserQuestion-HF7HCWDD.js} +1 -1
- package/chunks/{chunk-PO5LVPK3.js → chunk-2QDQTWCI.js} +1 -1
- package/chunks/{chunk-255L5QYW.js → chunk-3BR4OIOE.js} +1 -1
- package/chunks/{chunk-KFR4QTV3.js → chunk-54J4JDWT.js} +123 -174
- package/chunks/{chunk-S7ILEIB4.js → chunk-76BDT2HH.js} +4 -5
- package/chunks/{chunk-YF3ORUIU.js → chunk-7QBKO4A6.js} +2348 -1817
- package/chunks/{chunk-GAAALA2X.js → chunk-C4JC2FL3.js} +7 -6
- package/chunks/{chunk-CICUTYTF.js → chunk-HNYTRFAM.js} +52 -45
- package/chunks/{chunk-JRVB4QUY.js → chunk-KBXLIVWQ.js} +1 -1
- package/chunks/{chunk-QKUAGMGE.js → chunk-NKJ6LRCR.js} +1 -1
- package/chunks/{chunk-57XRIZVC.js → chunk-NWLUISRA.js} +1 -1
- package/chunks/{chunk-VRIVIYRL.js → chunk-TKXRLRTF.js} +4 -4
- package/chunks/{computer-use-YYK42DD5.js → computer-use-WOKHYISX.js} +7 -7
- package/chunks/{contextCommand-BO45MUAA.js → contextCommand-JSYQAO3O.js} +9 -9
- package/chunks/{cron-create-DXKAP5KN.js → cron-create-A5637KCI.js} +9 -6
- package/chunks/{cron-delete-WGO4PZTF.js → cron-delete-AADOSEOZ.js} +1 -1
- package/chunks/{cron-list-EY7D3ZUC.js → cron-list-OFCPTT2Y.js} +1 -1
- package/chunks/{edit-QERNJN7K.js → edit-6EN6NO6G.js} +7 -7
- package/chunks/{en-UTXMGXIR.js → en-7OGNWWME.js} +1 -0
- package/chunks/{enter-worktree-6ZKH5IL3.js → enter-worktree-XJ4S74CL.js} +7 -7
- package/chunks/{enterPlanMode-B2PBF4MA.js → enterPlanMode-GQNQIH2V.js} +7 -7
- package/chunks/{exit-worktree-EOCMQO4I.js → exit-worktree-6MKLATVB.js} +7 -7
- package/chunks/{exitPlanMode-WSRXCBRZ.js → exitPlanMode-YACWA5GO.js} +7 -7
- package/chunks/{geminiContentGenerator-NTR4LTKS.js → geminiContentGenerator-OLJGOIWO.js} +1 -1
- package/chunks/{glob-IWDJQI2V.js → glob-YHSIN2LG.js} +7 -7
- package/chunks/{grep-2DV5BXMH.js → grep-5EMEAJBO.js} +7 -7
- package/chunks/{loop-wakeup-XVSDE7QR.js → loop-wakeup-DGSMT4N6.js} +2 -2
- package/chunks/{ls-LPY3ATQQ.js → ls-UGRZ4ZOM.js} +1 -1
- package/chunks/{lsp-ZT3AAXIF.js → lsp-72IJURW3.js} +1 -1
- package/chunks/{monitor-6HBDS2RS.js → monitor-ZGXTGINM.js} +7 -7
- package/chunks/{notebook-edit-J5AY5BRY.js → notebook-edit-O7WO3APR.js} +7 -7
- package/chunks/{openaiContentGenerator-ENABCJDM.js → openaiContentGenerator-N4FCEGU2.js} +6 -6
- package/chunks/{qwenContentGenerator-ISW42U7C.js → qwenContentGenerator-BOAZ7MMG.js} +9 -9
- package/chunks/{read-file-NRX2FSSQ.js → read-file-RB35MI5I.js} +3 -3
- package/chunks/{ripGrep-WF5CKHR5.js → ripGrep-CWJOA6JG.js} +7 -7
- package/chunks/{scheduler-PNPG5WJ3.js → scheduler-XUBHNI2Z.js} +7 -7
- package/chunks/{send-message-447W6NH6.js → send-message-URUZ7PLA.js} +1 -1
- package/chunks/{serve-ZBRCIIHW.js → serve-P356SCA2.js} +197 -31
- package/chunks/{shell-DLIL6MLU.js → shell-5TRHTPML.js} +7 -7
- package/chunks/{skill-32TXHY4A.js → skill-RW6N7GHL.js} +3 -3
- package/chunks/{src-PDDLF5BB.js → src-SPEHQKTK.js} +35 -9
- package/chunks/{syntheticOutput-GQRDRLGR.js → syntheticOutput-65FRJGWM.js} +2 -2
- package/chunks/{task-create-66DDSTVI.js → task-create-IH45HOFT.js} +2 -2
- package/chunks/{task-list-GOPXRSHG.js → task-list-FUB6JWSX.js} +1 -1
- package/chunks/{task-stop-M7NKGFX2.js → task-stop-P6IOHQM3.js} +1 -1
- package/chunks/{task-update-M5TBHLZV.js → task-update-RTUT7LJV.js} +2 -2
- package/chunks/{team-create-EHLDSJGI.js → team-create-D6GSPXCO.js} +7 -7
- package/chunks/{team-delete-DKKDS65W.js → team-delete-RXGYRMHC.js} +1 -1
- package/chunks/{todoWrite-4VX7X44D.js → todoWrite-O6JK24G6.js} +1 -1
- package/chunks/{tool-search-FU7IZAOO.js → tool-search-6YIMUUVD.js} +3 -3
- package/chunks/{web-fetch-YPP3V4FJ.js → web-fetch-KUMBROUI.js} +2 -2
- package/chunks/{workflow-WUDNBCGX.js → workflow-ML3XFTCN.js} +23 -15
- package/chunks/{write-file-NVFPX6CH.js → write-file-VLT6ODLK.js} +7 -7
- package/chunks/{zh-YOXVTJU5.js → zh-3RMSEO5M.js} +1 -0
- package/chunks/{zh-TW-J2TTW67R.js → zh-TW-R7WRLTJS.js} +1 -0
- package/cli.js +778 -382
- package/locales/en.js +1 -0
- package/locales/zh-TW.js +1 -0
- package/locales/zh.js +1 -0
- package/package.json +3 -3
- package/web-shell/assets/{arc-pxOt9B72.js → arc-DHUeMnnj.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-B9XuYYOT.js → architectureDiagram-3BPJPVTR-DlX12yyj.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-5yK68iu4.js → blockDiagram-GPEHLZMM-DTFUXMUT.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-B1LY-qNI.js → c4Diagram-AAUBKEIU-CWdB54fk.js} +1 -1
- package/web-shell/assets/channel-C3WhMjjP.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-DkgXg7cM.js → chunk-2J33WTMH-CF5C5jNR.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-DdM45KFM.js → chunk-4BX2VUAB-Cw7Ydfji.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-CmdsDjD4.js → chunk-55IACEB6-CnbI1ZCw.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-CQ4pJ5GH.js → chunk-727SXJPM-DmSy00Pe.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-Dy6UWz37.js → chunk-AQP2D5EJ-DgNgXqBu.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-CC8nFqap.js → chunk-FMBD7UC4-tz2IvOXv.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-CkmS7lx7.js → chunk-ND2GUHAM-DaBLEBPa.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-DynyqleZ.js → chunk-QZHKN3VN-DVCQST3O.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CQ6TXPif.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CQ6TXPif.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-DA0fzCsY.js → cose-bilkent-S5V4N54A-CAKTcdCQ.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DHYXRqCo.js → dagre-BM42HDAG-BdkBwlKg.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-DWD6BcPs.js → diagram-2AECGRRQ-DYt3G65F.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-CX9wnqVc.js → diagram-5GNKFQAL-BWvROWjY.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-BpE8Kbt8.js → diagram-KO2AKTUF-BvvgwIaQ.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-DLPcrP0C.js → diagram-LMA3HP47-E7NLSNKg.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-CSUCBsCe.js → diagram-OG6HWLK6-CYmUBgpE.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-d3Z0uMXS.js → erDiagram-TEJ5UH35-BU5gY30h.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-C7vj5FX3.js → flowDiagram-I6XJVG4X-V_ZssSZ9.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-BV9UvDV_.js → ganttDiagram-6RSMTGT7-QIShlsdI.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-CoWp0mW4.js → gitGraphDiagram-PVQCEYII-DJxdu2YS.js} +1 -1
- package/web-shell/assets/index-BPnhI7gl.css +1 -0
- package/web-shell/assets/index-De4rqTsW.js +706 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-DUswfJHA.js → infoDiagram-5YYISTIA-BqjdrFeO.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-WidEKukx.js → ishikawaDiagram-YF4QCWOH-BP_a2YZ2.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-D7IRK3VN.js → journeyDiagram-JHISSGLW-BXg-S3Lk.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-CwFJ6Cja.js → kanban-definition-UN3LZRKU-BksAkdEJ.js} +1 -1
- package/web-shell/assets/{linear-BQ8GvDRY.js → linear-D2m9-ODE.js} +1 -1
- package/web-shell/assets/{mermaid.core-CwF8A_xO.js → mermaid.core-dTtkZp2F.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-TR1s0iZi.js → mindmap-definition-RKZ34NQL-Bft9my8O.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-Cd91pMl9.js → pieDiagram-4H26LBE5-Cw8S-alZ.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-BGxGDNMl.js → quadrantDiagram-W4KKPZXB-DaDoTMts.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-Cq3fWmYz.js → requirementDiagram-4Y6WPE33-Cp5kSpwj.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-ChLyGdq0.js → sankeyDiagram-5OEKKPKP-CW8RsJJZ.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-tazy79aB.js → sequenceDiagram-3UESZ5HK-DTfpIiJK.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-dIYLUNSf.js → stateDiagram-AJRCARHV-DixFVzEs.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DZgE04s3.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-BuENhrC2.js → timeline-definition-PNZ67QCA-DYsbXn5l.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DLtum9dF.js → vennDiagram-CIIHVFJN-HUpRpuUp.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-Bf7OSF3y.js → wardley-L42UT6IY-cT3nQH_T.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-slMw3OB3.js → wardleyDiagram-YWT4CUSO-Dmm7J6Qc.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CdxOm8oC.js → xychartDiagram-2RQKCTM6-CX0L5p9C.js} +1 -1
- package/web-shell/index.html +3 -3
- package/web-shell/assets/channel-Cx7egbSX.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CwH_F8cH.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CwH_F8cH.js +0 -1
- package/web-shell/assets/index-BDZiTAkl.css +0 -1
- package/web-shell/assets/index-CjTH6cLP.js +0 -516
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-luL7KTiX.js +0 -1
- package/chunks/{chunk-JDV3VBPY.js → chunk-F6XNTYNE.js} +202 -202
- package/chunks/{chunk-PLY4F7QW.js → chunk-L7U2RI5O.js} +54 -54
|
@@ -61,11 +61,19 @@ Use this index to locate the right document for the user's question. Load only t
|
|
|
61
61
|
| Headless / non-interactive mode | `docs/features/headless.md` |
|
|
62
62
|
| LSP integration | `docs/features/lsp.md` |
|
|
63
63
|
| Token caching | `docs/features/token-caching.md` |
|
|
64
|
-
| Language / i18n | `docs/features/language.md`
|
|
65
|
-
| Arena mode | `docs/features/arena.md`
|
|
66
|
-
| Status line | `docs/features/status-line.md`
|
|
67
|
-
| Scheduled tasks (cron/loop) | `docs/features/scheduled-tasks.md`
|
|
68
|
-
| Worktree | `docs/features/worktree.md`
|
|
64
|
+
| Language / i18n | `docs/features/language.md` |
|
|
65
|
+
| Arena mode | `docs/features/arena.md` |
|
|
66
|
+
| Status line | `docs/features/status-line.md` |
|
|
67
|
+
| Scheduled tasks (cron/loop) | `docs/features/scheduled-tasks.md` |
|
|
68
|
+
| Worktree | `docs/features/worktree.md` |
|
|
69
|
+
| Code review (`/review`) | `docs/features/code-review.md` |
|
|
70
|
+
| Structured output (JSON schema) | `docs/features/structured-output.md` |
|
|
71
|
+
| Dual output | `docs/features/dual-output.md` |
|
|
72
|
+
| Tool-use summaries | `docs/features/tool-use-summaries.md` |
|
|
73
|
+
| Followup suggestions | `docs/features/followup-suggestions.md` |
|
|
74
|
+
| Markdown rendering | `docs/features/markdown-rendering.md` |
|
|
75
|
+
| Contextual tips | `docs/features/tips.md` |
|
|
76
|
+
| Channels (Telegram/WeChat/DingTalk/etc.) | `docs/features/channels/overview.md` |
|
|
69
77
|
|
|
70
78
|
### IDE Integration
|
|
71
79
|
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# Authentication
|
|
2
2
|
|
|
3
|
-
Qwen Code
|
|
3
|
+
Qwen Code's first-run `/auth` menu has three top-level options. Pick the one that matches how you want to run the CLI:
|
|
4
4
|
|
|
5
|
-
- **
|
|
6
|
-
- **
|
|
7
|
-
- **
|
|
5
|
+
- **Alibaba ModelStudio**: official recommended setup. Opens a sub-menu with **Coding Plan** (for individual developers · weekly quota included), **Token Plan** (for teams and companies · usage-based billing with a dedicated endpoint), or **Standard API Key** (connect with an existing ModelStudio API key).
|
|
6
|
+
- **Third-party Providers**: choose a built-in provider and connect with an API key (DeepSeek, MiniMax, Z.AI, Idealab, ModelScope, OpenRouter, Requesty).
|
|
7
|
+
- **Custom Provider**: manually connect a local server, proxy, or unsupported provider — supports OpenAI, Anthropic, Gemini, and other compatible endpoints.
|
|
8
|
+
|
|
9
|
+
> [!note]
|
|
10
|
+
>
|
|
11
|
+
> **Qwen OAuth** is no longer a selectable dialog entry — its free tier was discontinued on 2026-04-15. It remains documented below as a hard-coded, discontinued provider only.
|
|
8
12
|
|
|
9
13
|
## Option 1: Qwen OAuth (Discontinued)
|
|
10
14
|
|
|
@@ -23,7 +27,7 @@ Start the CLI and follow the browser flow:
|
|
|
23
27
|
qwen
|
|
24
28
|
```
|
|
25
29
|
|
|
26
|
-
|
|
30
|
+
Qwen OAuth is no longer offered as a selectable entry in the `/auth` dialog; run `/auth` and choose one of the current options (Alibaba ModelStudio, Third-party Providers, or Custom Provider) instead.
|
|
27
31
|
|
|
28
32
|
> [!note]
|
|
29
33
|
>
|
|
@@ -48,7 +52,7 @@ Alibaba Cloud Coding Plan is available in two regions:
|
|
|
48
52
|
|
|
49
53
|
### Interactive setup
|
|
50
54
|
|
|
51
|
-
Enter `qwen` in the terminal to launch Qwen Code, then run the `/auth` command
|
|
55
|
+
Enter `qwen` in the terminal to launch Qwen Code, then run the `/auth` command, select **Alibaba ModelStudio**, and choose **Coding Plan** from the sub-menu. Choose your region, then enter your `sk-sp-xxxxxxxxx` key.
|
|
52
56
|
|
|
53
57
|
After authentication, use the `/model` command to switch between all Alibaba Cloud Coding Plan supported models (including qwen3.5-plus, qwen3.6-plus, qwen3.7-plus, qwen3-coder-plus, qwen3-coder-next, qwen3-max-2026-01-23, glm-5, glm-4.7, kimi-k2.5, and MiniMax-M2.5).
|
|
54
58
|
|
|
@@ -71,15 +75,18 @@ If you prefer to skip the interactive `/auth` flow, add the following to `~/.qwe
|
|
|
71
75
|
```json
|
|
72
76
|
{
|
|
73
77
|
"modelProviders": {
|
|
74
|
-
"openai":
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
"openai": {
|
|
79
|
+
"protocol": "openai",
|
|
80
|
+
"models": [
|
|
81
|
+
{
|
|
82
|
+
"id": "qwen3-coder-plus",
|
|
83
|
+
"name": "qwen3-coder-plus (Coding Plan)",
|
|
84
|
+
"baseUrl": "https://coding.dashscope.aliyuncs.com/v1",
|
|
85
|
+
"description": "qwen3-coder-plus from Alibaba Cloud Coding Plan",
|
|
86
|
+
"envKey": "BAILIAN_CODING_PLAN_API_KEY"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
83
90
|
},
|
|
84
91
|
"env": {
|
|
85
92
|
"BAILIAN_CODING_PLAN_API_KEY": "sk-sp-xxxxxxxxx"
|
|
@@ -110,15 +117,18 @@ The simplest way to get started with API Key authentication is to put everything
|
|
|
110
117
|
```json
|
|
111
118
|
{
|
|
112
119
|
"modelProviders": {
|
|
113
|
-
"openai":
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
"openai": {
|
|
121
|
+
"protocol": "openai",
|
|
122
|
+
"models": [
|
|
123
|
+
{
|
|
124
|
+
"id": "qwen3-coder-plus",
|
|
125
|
+
"name": "qwen3-coder-plus",
|
|
126
|
+
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
127
|
+
"description": "Qwen3-Coder via Dashscope",
|
|
128
|
+
"envKey": "DASHSCOPE_API_KEY"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
122
132
|
},
|
|
123
133
|
"env": {
|
|
124
134
|
"DASHSCOPE_API_KEY": "sk-xxxxxxxxxxxxx"
|
|
@@ -158,10 +168,11 @@ The key concept is **Model Providers** (`modelProviders`): Qwen Code supports mu
|
|
|
158
168
|
| OpenAI-compatible | `openai` | `OPENAI_API_KEY`, `OPENAI_BASE_URL`, `OPENAI_MODEL` | OpenAI, Azure OpenAI, OpenRouter, Requesty, ModelScope, Alibaba Cloud, any OpenAI-compatible endpoint |
|
|
159
169
|
| Anthropic | `anthropic` | `ANTHROPIC_API_KEY`, `ANTHROPIC_BASE_URL`, `ANTHROPIC_MODEL` | Anthropic Claude |
|
|
160
170
|
| Google GenAI | `gemini` | `GEMINI_API_KEY`, `GEMINI_MODEL` | Google Gemini |
|
|
171
|
+
| Vertex AI | `vertex-ai` | `GOOGLE_API_KEY`, `GOOGLE_MODEL` (sets `GOOGLE_GENAI_USE_VERTEXAI=true`; uses the `gemini` protocol) | Google Vertex AI |
|
|
161
172
|
|
|
162
173
|
#### Step 1: Configure models and providers in `~/.qwen/settings.json`
|
|
163
174
|
|
|
164
|
-
Define which models are available for each protocol. Each model entry requires at minimum an `id
|
|
175
|
+
Define which models are available for each protocol. Each model entry requires at minimum an `id`; `envKey` (the environment variable name that holds your API key) is optional and recommended — when omitted, it falls back to the auth type's default env key (e.g. `OPENAI_API_KEY` for `openai`).
|
|
165
176
|
|
|
166
177
|
> [!important]
|
|
167
178
|
>
|
|
@@ -172,28 +183,37 @@ Edit `~/.qwen/settings.json` (create it if it doesn't exist). You can mix multip
|
|
|
172
183
|
```json
|
|
173
184
|
{
|
|
174
185
|
"modelProviders": {
|
|
175
|
-
"openai":
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
186
|
+
"openai": {
|
|
187
|
+
"protocol": "openai",
|
|
188
|
+
"models": [
|
|
189
|
+
{
|
|
190
|
+
"id": "gpt-4o",
|
|
191
|
+
"name": "GPT-4o",
|
|
192
|
+
"envKey": "OPENAI_API_KEY",
|
|
193
|
+
"baseUrl": "https://api.openai.com/v1"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"anthropic": {
|
|
198
|
+
"protocol": "anthropic",
|
|
199
|
+
"models": [
|
|
200
|
+
{
|
|
201
|
+
"id": "claude-sonnet-4-20250514",
|
|
202
|
+
"name": "Claude Sonnet 4",
|
|
203
|
+
"envKey": "ANTHROPIC_API_KEY"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"gemini": {
|
|
208
|
+
"protocol": "gemini",
|
|
209
|
+
"models": [
|
|
210
|
+
{
|
|
211
|
+
"id": "gemini-2.5-pro",
|
|
212
|
+
"name": "Gemini 2.5 Pro",
|
|
213
|
+
"envKey": "GEMINI_API_KEY"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
}
|
|
197
217
|
}
|
|
198
218
|
}
|
|
199
219
|
```
|
|
@@ -208,7 +228,7 @@ Edit `~/.qwen/settings.json` (create it if it doesn't exist). You can mix multip
|
|
|
208
228
|
| ------------------ | -------- | -------------------------------------------------------------------- |
|
|
209
229
|
| `id` | Yes | Model ID sent to the API (e.g. `gpt-4o`, `claude-sonnet-4-20250514`) |
|
|
210
230
|
| `name` | No | Display name in the `/model` picker (defaults to `id`) |
|
|
211
|
-
| `envKey` |
|
|
231
|
+
| `envKey` | No | Environment variable name for the API key (e.g. `OPENAI_API_KEY`); optional/recommended — defaults to the auth type's default env key when omitted |
|
|
212
232
|
| `baseUrl` | No | API endpoint override (useful for proxies or custom endpoints) |
|
|
213
233
|
| `generationConfig` | No | Fine-tune `timeout`, `maxRetries`, `samplingParams`, etc. |
|
|
214
234
|
|