@qwen-code/qwen-code 0.18.5 → 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.
Files changed (165) hide show
  1. package/bundled/qc-helper/SKILL.md +13 -5
  2. package/bundled/qc-helper/docs/configuration/_meta.ts +1 -0
  3. package/bundled/qc-helper/docs/configuration/auth.md +68 -48
  4. package/bundled/qc-helper/docs/configuration/model-providers.md +217 -195
  5. package/bundled/qc-helper/docs/configuration/qwen-ignore.md +31 -15
  6. package/bundled/qc-helper/docs/configuration/settings.md +44 -27
  7. package/bundled/qc-helper/docs/configuration/themes.md +7 -4
  8. package/bundled/qc-helper/docs/extension/extension-releasing.md +1 -1
  9. package/bundled/qc-helper/docs/extension/introduction.md +27 -21
  10. package/bundled/qc-helper/docs/features/arena.md +3 -3
  11. package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
  12. package/bundled/qc-helper/docs/features/channels/plugins.md +1 -1
  13. package/bundled/qc-helper/docs/features/commands.md +6 -1
  14. package/bundled/qc-helper/docs/features/headless.md +1 -1
  15. package/bundled/qc-helper/docs/features/mcp.md +33 -14
  16. package/bundled/qc-helper/docs/features/sandbox.md +2 -2
  17. package/bundled/qc-helper/docs/features/tool-use-summaries.md +1 -1
  18. package/bundled/qc-helper/docs/integration-github-action.md +2 -2
  19. package/bundled/qc-helper/docs/overview.md +1 -1
  20. package/bundled/qc-helper/docs/quickstart.md +9 -5
  21. package/bundled/qc-helper/docs/qwen-serve.md +14 -2
  22. package/bundled/qc-helper/docs/support/tos-privacy.md +1 -1
  23. package/chunks/{agent-2TEY55UD.js → agent-6KV474S5.js} +24 -22
  24. package/chunks/{agent-headless-SCUAXEEE.js → agent-headless-XO7MM6JT.js} +24 -22
  25. package/chunks/{anthropicContentGenerator-5S4OMMNL.js → anthropicContentGenerator-7352A7I5.js} +12 -11
  26. package/chunks/artifact-tool-5J4HUZAV.js +675 -0
  27. package/chunks/{askUserQuestion-WHVYL2S2.js → askUserQuestion-HF7HCWDD.js} +20 -7
  28. package/chunks/chunk-22IFUCVR.js +291 -0
  29. package/chunks/{chunk-26ZYKTYZ.js → chunk-2BIF2NVV.js} +2 -2
  30. package/chunks/{chunk-VKILGMZQ.js → chunk-2QDQTWCI.js} +1 -1
  31. package/chunks/{chunk-XGU3ETVO.js → chunk-3BR4OIOE.js} +3 -3
  32. package/chunks/{chunk-LTN3VYMZ.js → chunk-3UALQ56H.js} +1 -1
  33. package/chunks/{chunk-F5E6IKYN.js → chunk-54J4JDWT.js} +619 -135
  34. package/chunks/{chunk-KZGQ3G3Q.js → chunk-76BDT2HH.js} +80 -83
  35. package/chunks/{chunk-VECKCOH6.js → chunk-7QBKO4A6.js} +7118 -5113
  36. package/chunks/{chunk-MSJ2MXJ6.js → chunk-BGUDAULQ.js} +11 -290
  37. package/chunks/{chunk-FH4P6RQA.js → chunk-BNXANYLH.js} +1 -1
  38. package/chunks/{chunk-SIJKWK35.js → chunk-C4JC2FL3.js} +8 -7
  39. package/chunks/{chunk-WE6TNQJU.js → chunk-C4K3FEQ2.js} +36 -0
  40. package/chunks/{chunk-G4BUMVEY.js → chunk-CGEGHF2C.js} +2 -217
  41. package/chunks/chunk-EEEZIVFJ.js +908 -0
  42. package/chunks/chunk-EJYJYJZ2.js +3703 -0
  43. package/chunks/{chunk-ATLUHLZE.js → chunk-EW6C27XX.js} +1 -1
  44. package/chunks/{chunk-42HGOMED.js → chunk-F6XNTYNE.js} +216 -1
  45. package/chunks/{chunk-C6MI2ASN.js → chunk-GZCJS5WH.js} +2 -2
  46. package/chunks/{chunk-KGV3F6UF.js → chunk-HGNSRCRB.js} +1 -1
  47. package/chunks/{chunk-2CNO5W47.js → chunk-HNYTRFAM.js} +171 -5016
  48. package/chunks/{chunk-CX3SGIPK.js → chunk-KBXLIVWQ.js} +2 -2
  49. package/chunks/{chunk-GOMVJKBL.js → chunk-L7U2RI5O.js} +59 -57
  50. package/chunks/{chunk-GBN55AWZ.js → chunk-NKJ6LRCR.js} +2 -2
  51. package/chunks/{chunk-2O3NAOJG.js → chunk-NWLUISRA.js} +1 -1
  52. package/chunks/{chunk-ID533GA3.js → chunk-OTBK43JR.js} +1 -1
  53. package/chunks/{chunk-AE6RQU6F.js → chunk-PRYMDRBV.js} +1 -1
  54. package/chunks/{chunk-KQIKOTQJ.js → chunk-RYLJU2DY.js} +60 -5
  55. package/chunks/{chunk-CTHZVIMD.js → chunk-T2VDEFUU.js} +2 -2
  56. package/chunks/{chunk-C7JA3XCX.js → chunk-TKXRLRTF.js} +5 -5
  57. package/chunks/{chunk-LF6BKGZT.js → chunk-TXVGVZYR.js} +3 -3
  58. package/chunks/{chunk-XU7BKR3B.js → chunk-XU5P23GN.js} +3 -3
  59. package/chunks/{computer-use-OB3C5QG2.js → computer-use-WOKHYISX.js} +24 -22
  60. package/chunks/contextCommand-JSYQAO3O.js +56 -0
  61. package/chunks/{cron-create-THNDTYXU.js → cron-create-A5637KCI.js} +12 -9
  62. package/chunks/{cron-delete-BS5H6TFJ.js → cron-delete-AADOSEOZ.js} +4 -4
  63. package/chunks/{cron-list-7OBVHT7K.js → cron-list-OFCPTT2Y.js} +4 -4
  64. package/chunks/{dist-GKRNVFBH.js → dist-ZBX7LPJZ.js} +2 -1
  65. package/chunks/{edit-GNCLIF67.js → edit-6EN6NO6G.js} +24 -22
  66. package/chunks/{en-S3OQBISC.js → en-7OGNWWME.js} +48 -0
  67. package/chunks/{enter-worktree-E7BNZOGT.js → enter-worktree-XJ4S74CL.js} +24 -22
  68. package/chunks/{enterPlanMode-IA42A5EU.js → enterPlanMode-GQNQIH2V.js} +27 -23
  69. package/chunks/{exit-worktree-QJ2K74UT.js → exit-worktree-6MKLATVB.js} +24 -22
  70. package/chunks/{exitPlanMode-UKKHBUYJ.js → exitPlanMode-YACWA5GO.js} +36 -28
  71. package/chunks/{geminiContentGenerator-ICSDM37U.js → geminiContentGenerator-OLJGOIWO.js} +4 -4
  72. package/chunks/{glob-IGD7LWYX.js → glob-YHSIN2LG.js} +26 -23
  73. package/chunks/{grep-IZM3IVND.js → grep-5EMEAJBO.js} +24 -22
  74. package/chunks/{keychain-token-storage-YHXIWXIB.js → keychain-token-storage-CSYMNRPP.js} +2 -2
  75. package/chunks/{loop-wakeup-SSBWZ64K.js → loop-wakeup-DGSMT4N6.js} +5 -5
  76. package/chunks/{ls-YPFUHZRQ.js → ls-UGRZ4ZOM.js} +6 -6
  77. package/chunks/{lsp-FD6DNVAF.js → lsp-72IJURW3.js} +2 -2
  78. package/chunks/{monitor-ALJNE3R4.js → monitor-ZGXTGINM.js} +24 -22
  79. package/chunks/{notebook-edit-7XRZX55T.js → notebook-edit-O7WO3APR.js} +25 -23
  80. package/chunks/{openaiContentGenerator-FWKITDFJ.js → openaiContentGenerator-N4FCEGU2.js} +12 -15
  81. package/chunks/{qwenContentGenerator-5RPGQZ63.js → qwenContentGenerator-BOAZ7MMG.js} +26 -24
  82. package/chunks/{qwenOAuth2-WZ54YZ4J.js → qwenOAuth2-K4AASPCV.js} +5 -4
  83. package/chunks/{read-file-4WN2DT5N.js → read-file-RB35MI5I.js} +9 -8
  84. package/chunks/{ripGrep-4ZKT6KBQ.js → ripGrep-CWJOA6JG.js} +24 -22
  85. package/chunks/{scheduler-O2E65VDK.js → scheduler-XUBHNI2Z.js} +73 -27
  86. package/chunks/{send-message-FWFTX62Q.js → send-message-URUZ7PLA.js} +24 -4
  87. package/chunks/{serve-3DM6CRGD.js → serve-P356SCA2.js} +618 -92
  88. package/chunks/{shell-ARVZK6RF.js → shell-5TRHTPML.js} +24 -22
  89. package/chunks/{skill-BFUBGA4I.js → skill-RW6N7GHL.js} +11 -10
  90. package/chunks/{src-5YMCDSII.js → src-SPEHQKTK.js} +140 -67
  91. package/chunks/{syntheticOutput-JY5NEDTV.js → syntheticOutput-65FRJGWM.js} +3 -3
  92. package/chunks/{task-create-IGILDV25.js → task-create-IH45HOFT.js} +6 -6
  93. package/chunks/{task-list-KBEJVAAG.js → task-list-FUB6JWSX.js} +5 -5
  94. package/chunks/{task-stop-WFTMQ6AC.js → task-stop-P6IOHQM3.js} +2 -2
  95. package/chunks/{task-update-UIVX7ZEV.js → task-update-RTUT7LJV.js} +6 -6
  96. package/chunks/{team-create-HRBV5ATK.js → team-create-D6GSPXCO.js} +28 -26
  97. package/chunks/{team-delete-LPOXDPVB.js → team-delete-RXGYRMHC.js} +5 -5
  98. package/chunks/{todoWrite-R4RIJKOD.js → todoWrite-O6JK24G6.js} +4 -4
  99. package/chunks/{tool-search-67HI54YA.js → tool-search-6YIMUUVD.js} +9 -8
  100. package/chunks/{web-fetch-JU7SS6KE.js → web-fetch-KUMBROUI.js} +4 -4
  101. package/chunks/{workflow-W4SCLWLU.js → workflow-ML3XFTCN.js} +557 -97
  102. package/chunks/{write-file-TLNXC2NR.js → write-file-VLT6ODLK.js} +24 -22
  103. package/chunks/{zh-QXLZV2PX.js → zh-3RMSEO5M.js} +48 -0
  104. package/chunks/{zh-TW-3OKU7LDA.js → zh-TW-R7WRLTJS.js} +48 -0
  105. package/cli.js +8559 -5100
  106. package/locales/en.js +69 -0
  107. package/locales/zh-TW.js +66 -0
  108. package/locales/zh.js +66 -0
  109. package/package.json +3 -2
  110. package/web-shell/assets/{arc-CRFN10gD.js → arc-DHUeMnnj.js} +1 -1
  111. package/web-shell/assets/{architectureDiagram-3BPJPVTR-IRlu1CpH.js → architectureDiagram-3BPJPVTR-DlX12yyj.js} +1 -1
  112. package/web-shell/assets/{blockDiagram-GPEHLZMM-htIZ6iw8.js → blockDiagram-GPEHLZMM-DTFUXMUT.js} +1 -1
  113. package/web-shell/assets/{c4Diagram-AAUBKEIU-A2GoRq3O.js → c4Diagram-AAUBKEIU-CWdB54fk.js} +1 -1
  114. package/web-shell/assets/channel-C3WhMjjP.js +1 -0
  115. package/web-shell/assets/{chunk-2J33WTMH-CdP2AC6u.js → chunk-2J33WTMH-CF5C5jNR.js} +1 -1
  116. package/web-shell/assets/{chunk-4BX2VUAB-DrA07nW2.js → chunk-4BX2VUAB-Cw7Ydfji.js} +1 -1
  117. package/web-shell/assets/{chunk-55IACEB6-CFGnVU2f.js → chunk-55IACEB6-CnbI1ZCw.js} +1 -1
  118. package/web-shell/assets/{chunk-727SXJPM-BTMkq3Tk.js → chunk-727SXJPM-DmSy00Pe.js} +1 -1
  119. package/web-shell/assets/{chunk-AQP2D5EJ-C9sYg04Z.js → chunk-AQP2D5EJ-DgNgXqBu.js} +1 -1
  120. package/web-shell/assets/{chunk-FMBD7UC4-Cag-cj6I.js → chunk-FMBD7UC4-tz2IvOXv.js} +1 -1
  121. package/web-shell/assets/{chunk-ND2GUHAM-CDSTFoR7.js → chunk-ND2GUHAM-DaBLEBPa.js} +1 -1
  122. package/web-shell/assets/{chunk-QZHKN3VN-CN9Z6oOs.js → chunk-QZHKN3VN-DVCQST3O.js} +1 -1
  123. package/web-shell/assets/classDiagram-4FO5ZUOK-CQ6TXPif.js +1 -0
  124. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CQ6TXPif.js +1 -0
  125. package/web-shell/assets/{cose-bilkent-S5V4N54A-DuN9j8Du.js → cose-bilkent-S5V4N54A-CAKTcdCQ.js} +1 -1
  126. package/web-shell/assets/{dagre-BM42HDAG-ByCWe45f.js → dagre-BM42HDAG-BdkBwlKg.js} +1 -1
  127. package/web-shell/assets/{diagram-2AECGRRQ-eWyU_pKZ.js → diagram-2AECGRRQ-DYt3G65F.js} +1 -1
  128. package/web-shell/assets/{diagram-5GNKFQAL-0Bfu3Fq5.js → diagram-5GNKFQAL-BWvROWjY.js} +1 -1
  129. package/web-shell/assets/{diagram-KO2AKTUF-B6KBKkQP.js → diagram-KO2AKTUF-BvvgwIaQ.js} +1 -1
  130. package/web-shell/assets/{diagram-LMA3HP47-TToDmeA_.js → diagram-LMA3HP47-E7NLSNKg.js} +1 -1
  131. package/web-shell/assets/{diagram-OG6HWLK6-CQCkC2Yx.js → diagram-OG6HWLK6-CYmUBgpE.js} +1 -1
  132. package/web-shell/assets/{erDiagram-TEJ5UH35-Cm9ls1iB.js → erDiagram-TEJ5UH35-BU5gY30h.js} +1 -1
  133. package/web-shell/assets/{flowDiagram-I6XJVG4X-Dyoz80Pv.js → flowDiagram-I6XJVG4X-V_ZssSZ9.js} +1 -1
  134. package/web-shell/assets/{ganttDiagram-6RSMTGT7-Cfut9yaU.js → ganttDiagram-6RSMTGT7-QIShlsdI.js} +1 -1
  135. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-BCuJdlfD.js → gitGraphDiagram-PVQCEYII-DJxdu2YS.js} +1 -1
  136. package/web-shell/assets/index-BPnhI7gl.css +1 -0
  137. package/web-shell/assets/index-De4rqTsW.js +706 -0
  138. package/web-shell/assets/{infoDiagram-5YYISTIA-CXKxF2VL.js → infoDiagram-5YYISTIA-BqjdrFeO.js} +1 -1
  139. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DE7HWSU8.js → ishikawaDiagram-YF4QCWOH-BP_a2YZ2.js} +1 -1
  140. package/web-shell/assets/{journeyDiagram-JHISSGLW-D__YUfds.js → journeyDiagram-JHISSGLW-BXg-S3Lk.js} +1 -1
  141. package/web-shell/assets/{kanban-definition-UN3LZRKU-D82R169M.js → kanban-definition-UN3LZRKU-BksAkdEJ.js} +1 -1
  142. package/web-shell/assets/{linear-DpyMbKqT.js → linear-D2m9-ODE.js} +1 -1
  143. package/web-shell/assets/{mermaid.core-D1KEFDhn.js → mermaid.core-dTtkZp2F.js} +5 -5
  144. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BwVUFGFE.js → mindmap-definition-RKZ34NQL-Bft9my8O.js} +1 -1
  145. package/web-shell/assets/{pieDiagram-4H26LBE5-BO_qoEGx.js → pieDiagram-4H26LBE5-Cw8S-alZ.js} +1 -1
  146. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-Cx0ZaWPo.js → quadrantDiagram-W4KKPZXB-DaDoTMts.js} +1 -1
  147. package/web-shell/assets/{requirementDiagram-4Y6WPE33-BJPXejOA.js → requirementDiagram-4Y6WPE33-Cp5kSpwj.js} +1 -1
  148. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-C1xeIL9i.js → sankeyDiagram-5OEKKPKP-CW8RsJJZ.js} +1 -1
  149. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CSYKQUjf.js → sequenceDiagram-3UESZ5HK-DTfpIiJK.js} +1 -1
  150. package/web-shell/assets/{stateDiagram-AJRCARHV-d9hiHlAW.js → stateDiagram-AJRCARHV-DixFVzEs.js} +1 -1
  151. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DZgE04s3.js +1 -0
  152. package/web-shell/assets/{timeline-definition-PNZ67QCA-BhCBkq8k.js → timeline-definition-PNZ67QCA-DYsbXn5l.js} +1 -1
  153. package/web-shell/assets/{vennDiagram-CIIHVFJN-DPPFWp_y.js → vennDiagram-CIIHVFJN-HUpRpuUp.js} +1 -1
  154. package/web-shell/assets/{wardley-L42UT6IY-CcOUIgXY.js → wardley-L42UT6IY-cT3nQH_T.js} +1 -1
  155. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-p7oR5X7r.js → wardleyDiagram-YWT4CUSO-Dmm7J6Qc.js} +1 -1
  156. package/web-shell/assets/{xychartDiagram-2RQKCTM6-Dfr7-SEy.js → xychartDiagram-2RQKCTM6-CX0L5p9C.js} +1 -1
  157. package/web-shell/index.html +3 -3
  158. package/chunks/chunk-77WXWU44.js +0 -26
  159. package/chunks/contextCommand-3327KUC4.js +0 -54
  160. package/web-shell/assets/channel-WwImfsc7.js +0 -1
  161. package/web-shell/assets/classDiagram-4FO5ZUOK-CJKQYFeJ.js +0 -1
  162. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CJKQYFeJ.js +0 -1
  163. package/web-shell/assets/index-BDZiTAkl.css +0 -1
  164. package/web-shell/assets/index-DaebdpHq.js +0 -516
  165. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DgReoybQ.js +0 -1
@@ -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,6 +1,7 @@
1
1
  export default {
2
2
  settings: 'Settings',
3
3
  auth: 'Authentication',
4
+ 'model-providers': 'Model Providers',
4
5
  'qwen-ignore': 'Ignoring Files',
5
6
  'trusted-folders': 'Trusted Folders',
6
7
  themes: 'Themes',
@@ -1,10 +1,14 @@
1
1
  # Authentication
2
2
 
3
- Qwen Code supports three authentication methods. Pick the one that matches how you want to run the CLI:
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
- - **Qwen OAuth**: sign in with your `qwen.ai` account in a browser. **Free tier discontinued on 2026-04-15** switch to another method.
6
- - **Alibaba Cloud Coding Plan**: use an API key from Alibaba Cloud. Paid subscription with diverse model options and higher quotas.
7
- - **API Key**: bring your own API key. Flexible to your own needs — supports OpenAI, Anthropic, Gemini, and other compatible endpoints.
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
- Then run `/auth` and choose the OAuth provider from the interactive dialog.
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 and select **Alibaba Cloud Coding Plan**. Choose your region, then enter your `sk-sp-xxxxxxxxx` key.
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
- "id": "qwen3-coder-plus",
77
- "name": "qwen3-coder-plus (Coding Plan)",
78
- "baseUrl": "https://coding.dashscope.aliyuncs.com/v1",
79
- "description": "qwen3-coder-plus from Alibaba Cloud Coding Plan",
80
- "envKey": "BAILIAN_CODING_PLAN_API_KEY"
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
- "id": "qwen3-coder-plus",
116
- "name": "qwen3-coder-plus",
117
- "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
118
- "description": "Qwen3-Coder via Dashscope",
119
- "envKey": "DASHSCOPE_API_KEY"
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` and an `envKey` (the environment variable name that holds your API key).
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
- "id": "gpt-4o",
178
- "name": "GPT-4o",
179
- "envKey": "OPENAI_API_KEY",
180
- "baseUrl": "https://api.openai.com/v1"
181
- }
182
- ],
183
- "anthropic": [
184
- {
185
- "id": "claude-sonnet-4-20250514",
186
- "name": "Claude Sonnet 4",
187
- "envKey": "ANTHROPIC_API_KEY"
188
- }
189
- ],
190
- "gemini": [
191
- {
192
- "id": "gemini-2.5-pro",
193
- "name": "Gemini 2.5 Pro",
194
- "envKey": "GEMINI_API_KEY"
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` | Yes | Environment variable name for the API key (e.g. `OPENAI_API_KEY`) |
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