copilot-custom-endpoint 2.2.0 → 3.0.0

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
@@ -20,20 +20,21 @@ That's it. No code, no servers to manage (unless the model specifically needs th
20
20
 
21
21
  ## Pick a model
22
22
 
23
- | Model | Provider | Needs proxy? | Vision | Setup guide |
24
- | ------------------------------ | --------- | ---------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
25
- | **Kimi K3 / K2.7 Code / K2.6** | Moonshot | **Yes** | ✅ | [Manual setup](docs/models/kimi.md) |
26
- | **MiMo V2.5** | Xiaomi | Optional (recommended) | ✅ | [Extension](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot) ★ / [Manual setup](docs/models/mimo.md) |
27
- | **MiMo V2.5 Pro** | Xiaomi | Optional (recommended) | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot) ★ / [Manual setup](docs/models/mimo.md) |
28
- | **Qwen 3.7 Plus** | DashScope | Optional (recommended) | ✅ | [Manual setup](docs/models/qwen.md) |
29
- | **Qwen 3.7 Max** | DashScope | Optional (recommended) | ❌ | [Manual setup](docs/models/qwen.md) |
30
- | **Qwen 3.8 Max** | DashScope | Optional (recommended) | ✅ | [Manual setup](docs/models/qwen.md) |
31
- | **MiniMax M3** | MiniMax | No | ✅ | [Extension](https://github.com/tugudush/minimax-copilot) ★ / [Manual setup](docs/models/minimax.md) |
32
- | **GLM 5.3 Flash** | Z.ai | No | ✅ | [Manual setup](docs/models/glm.md) |
33
- | **GLM 5.3 / 5.2 / 5.1** | Z.ai | No | ✅ via extension proxy | [Manual setup](docs/models/glm.md) |
34
- | **GLM 5V Turbo** | Z.ai | No | ✅ | [Manual setup](docs/models/glm.md) |
35
- | **DeepSeek V4 Flash 0731** | DeepSeek | No (uses an extension) | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot) / [setup notes](docs/models/deepseek.md) |
36
- | **DeepSeek V4 Pro 0813** | DeepSeek | No (uses an extension) | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot) / [setup notes](docs/models/deepseek.md) |
23
+ | Model | Provider | Needs proxy? | Vision | Setup guide |
24
+ | ------------------------------ | ---------- | ----------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
25
+ | **Kimi K3 / K2.7 Code / K2.6** | Moonshot | **Yes** | ✅ | [Manual setup](docs/models/kimi.md) |
26
+ | **MiMo V2.5** | Xiaomi | Optional (recommended) | ✅ | [Extension](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot) ★ / [Manual setup](docs/models/mimo.md) |
27
+ | **MiMo V2.5 Pro** | Xiaomi | Optional (recommended) | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=sdmapvstool.xiaomimimo-for-copilot) ★ / [Manual setup](docs/models/mimo.md) |
28
+ | **Qwen 3.7 Plus** | DashScope | Optional (recommended) | ✅ | [Manual setup](docs/models/qwen.md) |
29
+ | **Qwen 3.7 Max** | DashScope | Optional (recommended) | ❌ | [Manual setup](docs/models/qwen.md) |
30
+ | **Qwen 3.8 Max (0803)** | OpenRouter | Optional (experimental) | ✅ | [Snapshot/proxy setup](docs/models/qwen.md#optional-openrouter-snapshot-proxy) |
31
+ | **Qwen 3.8 Max (0902)** | DashScope | Optional (recommended) | ✅ | [Manual setup](docs/models/qwen.md) |
32
+ | **MiniMax M3** | MiniMax | No | ✅ | [Extension](https://github.com/tugudush/minimax-copilot) ★ / [Manual setup](docs/models/minimax.md) |
33
+ | **GLM 5.3 Flash** | Z.ai | No | ✅ | [Manual setup](docs/models/glm.md) |
34
+ | **GLM 5.3 / 5.2 / 5.1** | Z.ai | No | ✅ via extension proxy | [Manual setup](docs/models/glm.md) |
35
+ | **GLM 5V Turbo** | Z.ai | No | ✅ | [Manual setup](docs/models/glm.md) |
36
+ | **DeepSeek V4 Flash 0731** | DeepSeek | No (uses an extension) | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot) / [setup notes](docs/models/deepseek.md) |
37
+ | **DeepSeek V4 Pro 0813** | DeepSeek | No (uses an extension) | ❌ | [Extension](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot) / [setup notes](docs/models/deepseek.md) |
37
38
 
38
39
  ## Setup
39
40
 
@@ -107,50 +108,51 @@ npx copilot-custom-endpoint clean # Remove debug_log/
107
108
 
108
109
  ## Pricing snapshot
109
110
 
110
- All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To convert to AI credits, multiply by 100 (e.g., $5.00/1M = 500 credits/1M). Session cost assumes ~10K input + ~2K output tokens per turn, 50 turns. DeepSeek V4 estimates use peak rates; official off-peak rates are half. The current AA values come from OpenRouter's live model pages; **every pricing cell comes from first-party provider pricing or GitHub Copilot's official billing table, never OpenRouter.** Qwen 3.8 Max now refers to the current 0902 snapshot. Current corrections include OpenAI GPT-5.6 Sol at **$4 / $0.40 / $20**, Anthropic Sonnet 5 at **$2 / $0.20 / $10**, xAI Grok 4.5 cache reads at **$0.30**, and Alibaba's Qwen 3.7 list rates at **$2.50 / $0.25 / $7.50** (Max) and **$0.40 / $0.04 / $1.60** (Plus).
111
-
112
- | Model | Provider | Cost per intelligence | Intelligence Score | Est. session | Vision | Context window |
113
- | ----------------------------- | --------- | --------------------- | ------------------ | ------------ | ------ | -------------- |
114
- | **GLM 5.3 Flash** | Z.ai | **~$0.0028** | **46.2** | ~$0.13 | ✅ | 1M |
115
- | **GPT-5.6 Luna** | OpenAI | **~$0.0051** | **43.4** | ~$0.22 | ✅ | 1M |
116
- | **MiniMax M3** | MiniMax | **~$0.0076** | **35.7** | ~$0.27 | ✅ | 1M |
117
- | **DeepSeek V4 Flash 0731** | DeepSeek | **~$0.0086** | **40.8** | ~$0.35 | ❌ | 1M |
118
- | **MiMo V2.5 Pro** | Xiaomi | **~$0.0092** | **32.6** | ~$0.30 | ❌ | 1M |
119
- | **MiniMax M3 Priority** | MiniMax | **~$0.0115** | **35.7** | ~$0.41 | ✅ | 1M |
120
- | **Gemini 3.8 Flash** | Google | **~$0.0159** | **47.1** | ~$0.75 | ✅ | 1M |
121
- | **Gemini 3.7 Flash** | Google | **~$0.0166** | **45.2** | ~$0.75 | ✅ | 1M |
122
- | **Gemini 3.6 Flash** | Google | **~$0.0186** | **40.3** | ~$0.75 | ✅ | 1M |
123
- | **GLM 5.3** | Z.ai | **~$0.0235** | **48.6** | ~$1.14 | ❌ | 1M |
124
- | **DeepSeek V4 Pro 0813** | DeepSeek | **~$0.0252** | **42.1** | ~$1.06 | ❌ | 1M |
125
- | **Grok 4.6** | xAI | **~$0.0316** | **50.6** | ~$1.60 | ✅ | 500K |
126
- | **Qwen 3.8 Max (0902)** | DashScope | **~$0.0341** | **46.9** | ~$1.60 | ✅ | 1M |
127
- | **Grok 4.5** | xAI | **~$0.0352** | **45.5** | ~$1.60 | ✅ | 500K |
128
- | **Claude Sonnet 5** | Anthropic | **~$0.0443** | **45.1** | ~$2.00 | ✅ | 1M |
129
- | **GPT-5.6 Terra** | OpenAI | **~$0.0470** | **46.8** | ~$2.20 | ✅ | 1M |
130
- | **Kimi K3** | Moonshot | **~$0.0598** | **50.2** | ~$3.00 | ✅ | 1M |
131
- | **Gemini 3.1 Pro** | Google | **~$0.0599** | **36.7** | ~$2.20 | ✅ | 1M |
132
- | **GPT-5.6 Sol** | OpenAI | **~$0.0780** | **51.3** | ~$4.00 | ✅ | 1M |
133
- | **Claude Opus 5** | Anthropic | **~$0.0924** | **54.1** | ~$5.00 | ✅ | 1M |
134
- | **Claude Fable 5.1** | Anthropic | **~$0.1761** | **56.8** | ~$10.00 | ✅ | 1M |
135
- | **GPT-6 Astra** | OpenAI | **~$0.1828** | **54.7** | ~$10.00 | ✅ | 1M |
136
- | **Claude Fable 5** | Anthropic | **~$0.1880** | **53.2** | ~$10.00 | ✅ | 1M |
137
- | **MiMo V2.5** | Xiaomi | — | — | ~$0.10 | ✅ | 1M |
138
- | **Qwen 3.7 Plus** | DashScope | — | — | ~$0.36 | ✅ | 1M |
139
- | **Qwen 3.6 Plus** | DashScope | — | — | ~$0.55 | ✅ | 1M |
140
- | **GPT-5.4 mini** | OpenAI | — | — | ~$0.83 | ❌ | 400K |
141
- | **Kimi K2.6** | Moonshot | — | — | ~$0.88 | ✅ | 256K |
142
- | **Kimi K2.7 Code** | Moonshot | — | — | ~$0.88 | ✅ | 262K |
143
- | **GLM 5V Turbo** | Z.ai | — | — | ~$1.00 | ✅ | 200K |
144
- | **GLM 5.1** | Z.ai | — | — | ~$1.14 | ❌ | 200K |
145
- | **GLM 5.2** | Z.ai | — | — | ~$1.14 | ❌ | 1M |
146
- | **Gemini 3.5 Flash** | Google | — | — | ~$1.65 | ✅ | 1M |
147
- | **Qwen 3.7 Max** | DashScope | — | — | ~$2.00 | ❌ | 1M |
148
- | **GPT-5.4** | OpenAI | — | — | ~$2.75 | ✅ | 1M |
149
- | **Claude Sonnet 4.6** | Anthropic | — | — | ~$3.00 | ✅ | 1M |
150
- | **Claude Opus 4.8** | Anthropic | — | — | ~$5.00 | ✅ | 1M |
151
- | **Claude Opus 4.7** | Anthropic | — | — | ~$5.00 | ✅ | 1M |
152
- | **GPT-5.5** | OpenAI | — | — | ~$5.50 | ✅ | 1M |
153
- | **Gemini 3.8 Flash Cyber** | Google | — | — | — | — | — |
111
+ All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To convert to AI credits, multiply by 100 (e.g., $5.00/1M = 500 credits/1M). Session cost assumes ~10K input + ~2K output tokens per turn, 50 turns. DeepSeek V4 estimates use peak rates; official off-peak rates are half. The current AA values come from OpenRouter's live model pages; **every pricing cell comes from first-party provider pricing or GitHub Copilot's official billing table, never OpenRouter.** OpenRouter lists Qwen 3.8 Max as two snapshots: unversioned **0803** at **53.4** and **0902** at **46.9**. Current corrections include OpenAI GPT-5.6 Sol at **$4 / $0.40 / $20**, Anthropic Sonnet 5 at **$2 / $0.20 / $10**, xAI Grok 4.5 cache reads at **$0.30**, and Alibaba's Qwen 3.7 list rates at **$2.50 / $0.25 / $7.50** (Max) and **$0.40 / $0.04 / $1.60** (Plus).
112
+
113
+ | Model | Provider | Cost per intelligence | Intelligence Score | Est. session | Vision | Context window |
114
+ | -------------------------- | --------- | --------------------- | ------------------ | ------------ | ------ | -------------- |
115
+ | **GLM 5.3 Flash** | Z.ai | **~$0.0028** | **46.2** | ~$0.13 | ✅ | 1M |
116
+ | **GPT-5.6 Luna** | OpenAI | **~$0.0051** | **43.4** | ~$0.22 | ✅ | 1M |
117
+ | **MiniMax M3** | MiniMax | **~$0.0076** | **35.7** | ~$0.27 | ✅ | 1M |
118
+ | **DeepSeek V4 Flash 0731** | DeepSeek | **~$0.0086** | **40.8** | ~$0.35 | ❌ | 1M |
119
+ | **MiMo V2.5 Pro** | Xiaomi | **~$0.0092** | **32.6** | ~$0.30 | ❌ | 1M |
120
+ | **MiniMax M3 Priority** | MiniMax | **~$0.0115** | **35.7** | ~$0.41 | ✅ | 1M |
121
+ | **Gemini 3.8 Flash** | Google | **~$0.0159** | **47.1** | ~$0.75 | ✅ | 1M |
122
+ | **Gemini 3.7 Flash** | Google | **~$0.0166** | **45.2** | ~$0.75 | ✅ | 1M |
123
+ | **Gemini 3.6 Flash** | Google | **~$0.0186** | **40.3** | ~$0.75 | ✅ | 1M |
124
+ | **GLM 5.3** | Z.ai | **~$0.0235** | **48.6** | ~$1.14 | ❌ | 1M |
125
+ | **DeepSeek V4 Pro 0813** | DeepSeek | **~$0.0252** | **42.1** | ~$1.06 | ❌ | 1M |
126
+ | **Qwen 3.8 Max (0803)** | DashScope | **~$0.0300** | **53.4** | ~$1.60 | ✅ | 1M |
127
+ | **Grok 4.6** | xAI | **~$0.0316** | **50.6** | ~$1.60 | ✅ | 500K |
128
+ | **Qwen 3.8 Max (0902)** | DashScope | **~$0.0341** | **46.9** | ~$1.60 | ✅ | 1M |
129
+ | **Grok 4.5** | xAI | **~$0.0352** | **45.5** | ~$1.60 | ✅ | 500K |
130
+ | **Claude Sonnet 5** | Anthropic | **~$0.0443** | **45.1** | ~$2.00 | ✅ | 1M |
131
+ | **GPT-5.6 Terra** | OpenAI | **~$0.0470** | **46.8** | ~$2.20 | ✅ | 1M |
132
+ | **Kimi K3** | Moonshot | **~$0.0598** | **50.2** | ~$3.00 | ✅ | 1M |
133
+ | **Gemini 3.1 Pro** | Google | **~$0.0599** | **36.7** | ~$2.20 | ✅ | 1M |
134
+ | **GPT-5.6 Sol** | OpenAI | **~$0.0780** | **51.3** | ~$4.00 | ✅ | 1M |
135
+ | **Claude Opus 5** | Anthropic | **~$0.0924** | **54.1** | ~$5.00 | ✅ | 1M |
136
+ | **Claude Fable 5.1** | Anthropic | **~$0.1761** | **56.8** | ~$10.00 | ✅ | 1M |
137
+ | **GPT-6 Astra** | OpenAI | **~$0.1828** | **54.7** | ~$10.00 | ✅ | 1M |
138
+ | **Claude Fable 5** | Anthropic | **~$0.1880** | **53.2** | ~$10.00 | ✅ | 1M |
139
+ | **MiMo V2.5** | Xiaomi | — | — | ~$0.10 | ✅ | 1M |
140
+ | **Qwen 3.7 Plus** | DashScope | — | — | ~$0.36 | ✅ | 1M |
141
+ | **Qwen 3.6 Plus** | DashScope | — | — | ~$0.55 | ✅ | 1M |
142
+ | **GPT-5.4 mini** | OpenAI | — | — | ~$0.83 | ❌ | 400K |
143
+ | **Kimi K2.6** | Moonshot | — | — | ~$0.88 | ✅ | 256K |
144
+ | **Kimi K2.7 Code** | Moonshot | — | — | ~$0.88 | ✅ | 262K |
145
+ | **GLM 5V Turbo** | Z.ai | — | — | ~$1.00 | ✅ | 200K |
146
+ | **GLM 5.1** | Z.ai | — | — | ~$1.14 | ❌ | 200K |
147
+ | **GLM 5.2** | Z.ai | — | — | ~$1.14 | ❌ | 1M |
148
+ | **Gemini 3.5 Flash** | Google | — | — | ~$1.65 | ✅ | 1M |
149
+ | **Qwen 3.7 Max** | DashScope | — | — | ~$2.00 | ❌ | 1M |
150
+ | **GPT-5.4** | OpenAI | — | — | ~$2.75 | ✅ | 1M |
151
+ | **Claude Sonnet 4.6** | Anthropic | — | — | ~$3.00 | ✅ | 1M |
152
+ | **Claude Opus 4.8** | Anthropic | — | — | ~$5.00 | ✅ | 1M |
153
+ | **Claude Opus 4.7** | Anthropic | — | — | ~$5.00 | ✅ | 1M |
154
+ | **GPT-5.5** | OpenAI | — | — | ~$5.50 | ✅ | 1M |
155
+ | **Gemini 3.8 Flash Cyber** | Google | — | — | — | — | — |
154
156
 
155
157
  > **Historical footnotes:** The numbered notes below preserve release and pricing context from the prior September 5 snapshot. They are not the current AA ranking source; use the table above and its OpenRouter refresh note for current scores.
156
158
 
@@ -170,7 +172,7 @@ All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To conve
170
172
 
171
173
  ⁹ **Claude Opus 5** launched July 24, 2026. AA Intelligence Index score of **63.1** (#1 overall) confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/claude-opus-5). Priced at $5.00 / $25.00 per MTok input/output (same as Opus 4.8). 1M context, text + image input, adaptive reasoning. Also available in Fast mode ($10/$50 per MTok input/output). Uses the newer Claude tokenizer (~30% more tokens than pre-4.7 models). See [Anthropic's Opus 5 announcement](https://www.anthropic.com/news/claude-opus-5).
172
174
 
173
- ¹⁰ **Qwen 3.8 Max** (`qwen3.8-max`) has a confirmed Artificial Analysis Intelligence Index of **58.1** (Coding **71.8**, Agentic **58.4**) — see [AA](https://artificialanalysis.ai/models/qwen3-8-max) and [OpenRouter](https://openrouter.ai/qwen/qwen3.8-max). Arena snapshots place it **#5 in Text**, **#2 in Vision**, and **#4 in Code/WebDev**; it is not listed in Agent Arena. See [Arena](https://arena.ai/leaderboard).
175
+ ¹⁰ **Historical Qwen 3.8 Max AA record:** an earlier run reported **58.1** for the launch-era unversioned entry. Current OpenRouter rankings distinguish **Qwen 3.8 Max (0803)** at **53.4** from **Qwen 3.8 Max (0902)** at **46.9**; see the [benchmark table](docs/benchmarks.md) and [Qwen setup guide](docs/models/qwen.md#openrouter-snapshot-records).
174
176
 
175
177
  ¹¹ **Grok 4.5** (xAI, released July 8, 2026) is now a **GitHub Copilot native** model (GA, Versatile). AA Intelligence Index **55.8** (high), Coding **72.4**, Agentic **48.9**. 500K context, text + image input. Priced at $2.00 / $0.50 / $6.00 per 1M input/cached/output (75% cache discount; Copilot long-context >200K tier $4.00 / $1.00 / $12.00). See the [GitHub Copilot models & pricing page](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing).
176
178
 
@@ -196,6 +198,10 @@ All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To conve
196
198
 
197
199
  ²² **GPT-6 Astra** (released September 3, 2026) — OpenAI's frontier model, available as `gpt-6-astra` through the API and as a GitHub Copilot native model (GA, Powerful). AA Intelligence Index **61.2** (launch comparison, methodology v4.1.1); 1M context, text + image input, text output, and reasoning. Standard pricing is $10.00 / $1.00 / $50.00 per 1M input/cached/output tokens, for a modeled ~$10.00 session and ~$0.163 CPI. It is too new for Arena rankings. See the [GPT-6 Astra announcement](https://openai.com/index/gpt-6-astra/), [OpenAI API pricing](https://developers.openai.com/api/docs/pricing), and [OpenAI model documentation](https://developers.openai.com/api/docs/models/gpt-6-astra).
198
200
 
201
+ ²³ **Qwen 3.8 Max (0803)** is the August 3, 2026 checkpoint behind OpenRouter's unversioned [`qwen/qwen3.8-max`](https://openrouter.ai/qwen/qwen3.8-max) row. It scores **53.4** in the September 7 snapshot and is retained as a comparison-only record because OpenRouter labels it superseded by 0902. The [Qwen setup guide](docs/models/qwen.md) explains why this frozen snapshot is not a second DashScope picker entry.
202
+
203
+ ²⁴ **Qwen 3.8 Max (0902)** is the separate [`qwen/qwen3.8-max-0902`](https://openrouter.ai/qwen/qwen3.8-max-0902) snapshot, released September 4, 2026, with a current OpenRouter AA score of **46.9**. It shares Qwen Cloud's $2.00 / $0.25 / $6.00 rates, 1M context, and vision capability with 0803. The validated DashScope/proxy setup uses `qwen3.8-max`; the OpenRouter slug is not automatically interchangeable with that provider ID.
204
+
199
205
  For footnotes, sources, and detailed notes (cache behavior, tiered pricing, free quotas) see [docs/pricing.md](docs/pricing.md). For a copy-paste config containing **all providers at once**, see [docs/example-config.md](docs/example-config.md).
200
206
 
201
207
  > **👤 Personal picks** —
@@ -206,7 +212,7 @@ For footnotes, sources, and detailed notes (cache behavior, tiered pricing, free
206
212
  > - **GPT-5.6 Luna** — current AA **43.4**, ~$0.22/session, vision-capable, and the cheapest current OpenAI scored row.
207
213
  > - **DeepSeek V4 Flash 0731** — current AA **40.8**, ~$0.35/session at peak direct rates, text-only and inexpensive for coding-heavy work.
208
214
  > - **GPT-6 Astra** — current OpenRouter AA **54.7**, ~$10.00/session, while OpenAI reports leading results on Terminal-Bench 4.0, ARC-AGI-3, FrontierMath Tier 4, and AutomationBench. Use it for the hardest planning and research tasks.
209
- > - **Qwen 3.8 Max (0902)** — current AA **46.9**, ~$1.60/session, 1M context, and vision-capable; a practical multimodal planning choice.
215
+ > - **Qwen 3.8 Max (0902)** — current AA **46.9**, ~$1.60/session, 1M context, and vision-capable; a practical multimodal planning choice. The 0803 OpenRouter snapshot remains separately documented at **53.4**.
210
216
  >
211
217
  > **MiniMax M3** (current AA **35.7**, ~$0.27/session) remains the simplest direct custom-endpoint option: no proxy or extension, vision, 1M context, and tool calling.
212
218
 
@@ -6,7 +6,7 @@ Here's a complete, real-world `chatLanguageModels.json` that combines **the `cus
6
6
  >
7
7
  > **Note:** The `apiKey` fields are left as empty strings — set them via the **Chat: Manage Language Models** UI (Command Palette → right-click provider group → **Update API Key**). After you set a key via the UI, VS Code replaces the empty string with a `${input:chat.lm.secret.<id>}` secret reference.
8
8
  >
9
- > The live config points Qwen at the local proxy (`:3458`) and MiMo at the local proxy (`:3459`). When using a proxy, align the model `requestBody` overrides with the proxy's behavior: Qwen sends no `requestBody` (the proxy manages `enable_thinking` dynamically); MiMo sends only `temperature` and `top_p` (the proxy injects `thinking: {"type": "disabled"}` on tool turns and leaves it absent on plain chat).
9
+ > The live config points Qwen at the local proxy (`:3458`) and MiMo at the local proxy (`:3459`). When using a proxy, align the model `requestBody` overrides with the proxy's behavior: Qwen sends no `requestBody` (the proxy manages `enable_thinking` dynamically); MiMo sends only `temperature` and `top_p` (the proxy injects `thinking: {"type": "disabled"}` on tool turns and leaves it absent on plain chat). OpenRouter lists Qwen 3.8 Max as two frozen snapshots (`qwen/qwen3.8-max` = 0803 and `qwen/qwen3.8-max-0902` = 0902); this DashScope config intentionally uses the provider ID `qwen3.8-max` and does not pretend the OpenRouter slugs are interchangeable.
10
10
 
11
11
  ```json
12
12
  [
@@ -1,6 +1,6 @@
1
1
  # Qwen (DashScope) — VS Code Custom Endpoint Setup Guide
2
2
 
3
- > **TL;DR:** `qwen3.8-max` (vision), `qwen3.7-plus` (vision), and `qwen3.7-max` (text) work both direct and via the local proxy. The proxy gives you dynamic thinking suppression: reasoning stays ON in plain chat but turns OFF automatically when tools are invoked. The direct path is simpler if you don't need reasoning in chat.
3
+ > **TL;DR:** `qwen3.8-max` (vision), `qwen3.7-plus` (vision), and `qwen3.7-max` (text) work both direct and via the local proxy. OpenRouter currently lists two frozen Qwen 3.8 Max snapshots: the unversioned `qwen/qwen3.8-max` (0803) and `qwen/qwen3.8-max-0902`. The proxy forwards the upstream `model` value unchanged, so use the exact model ID supported by the endpoint you choose. The proxy gives you dynamic thinking suppression: reasoning stays ON in plain chat but turns OFF automatically when tools are invoked. The direct path is simpler if you don't need reasoning in chat.
4
4
 
5
5
  ## At a Glance
6
6
 
@@ -28,6 +28,68 @@
28
28
 
29
29
  > The live `chatLanguageModels.json` points Qwen at the local proxy by default; the direct DashScope URL is shown below for users who prefer a static `enable_thinking: false` setup.
30
30
 
31
+ ### OpenRouter snapshot records
32
+
33
+ These are separate OpenRouter catalog entries, not two picker labels for one model:
34
+
35
+ | OpenRouter slug | Snapshot | AA Intelligence Index | Notes |
36
+ | ----------------------- | -------- | --------------------- | --------------------------------------------------------------- |
37
+ | `qwen/qwen3.8-max` | 0803 | **53.4** | August 3 launch checkpoint; OpenRouter now labels it superseded |
38
+ | `qwen/qwen3.8-max-0902` | 0902 | **46.9** | September snapshot; released September 4 and listed separately |
39
+
40
+ The DashScope custom-endpoint snippets below use the provider model ID `qwen3.8-max`. Do not replace it with the OpenRouter `qwen/qwen3.8-max-0902` slug unless you also change the upstream URL to OpenRouter and have verified that path independently.
41
+
42
+ ### Optional OpenRouter snapshot proxy
43
+
44
+ The proxy forwards the `model` field without mapping it, so it can also be pointed at OpenRouter for the two catalog snapshots. This is an **optional, unvalidated OpenRouter path**; it is separate from the validated DashScope setup above and requires an OpenRouter API key.
45
+
46
+ 1. Add this to the repo-root `.env` file:
47
+
48
+ ```dotenv
49
+ QWEN_UPSTREAM_URL=https://openrouter.ai/api/v1/chat/completions
50
+ ```
51
+
52
+ 2. Start the existing Qwen proxy:
53
+
54
+ ```bash
55
+ npm run proxy:qwen
56
+ ```
57
+
58
+ 3. Add a separate provider group using the OpenRouter key and these model entries:
59
+
60
+ ```json
61
+ {
62
+ "name": "Qwen (OpenRouter snapshots)",
63
+ "vendor": "customendpoint",
64
+ "apiKey": "",
65
+ "apiType": "chat-completions",
66
+ "models": [
67
+ {
68
+ "id": "qwen/qwen3.8-max",
69
+ "name": "Qwen 3.8 Max (0803)",
70
+ "url": "http://127.0.0.1:3458/v1/chat/completions",
71
+ "toolCalling": true,
72
+ "vision": true,
73
+ "streaming": true,
74
+ "maxInputTokens": 991000,
75
+ "maxOutputTokens": 131072
76
+ },
77
+ {
78
+ "id": "qwen/qwen3.8-max-0902",
79
+ "name": "Qwen 3.8 Max (0902)",
80
+ "url": "http://127.0.0.1:3458/v1/chat/completions",
81
+ "toolCalling": true,
82
+ "vision": true,
83
+ "streaming": true,
84
+ "maxInputTokens": 991000,
85
+ "maxOutputTokens": 131072
86
+ }
87
+ ]
88
+ }
89
+ ```
90
+
91
+ Set the API key through **Chat: Manage Language Models**, then verify the proxy with `curl http://127.0.0.1:3458/healthz`. Do not run this route at the same time as the default DashScope route unless each process uses a different `QWEN_PROXY_PORT` and log path.
92
+
31
93
  ## Quick Start
32
94
 
33
95
  ### With Proxy (recommended)
@@ -218,7 +280,7 @@ The proxy detects active tool use by examining the conversation state (a `"tool"
218
280
  ## Notes
219
281
 
220
282
  - **Vision (`qwen3.8-max`, `qwen3.7-plus`)** uses OpenAI-compatible `content` array format. Base64 data URIs work reliably; external image URLs may fail if DashScope can't reach them. If a drag-and-drop image fails to load, providing the absolute file path (e.g. `c:\path\to\image.png`) in the prompt is a reliable workaround.
221
- - **Qwen 3.8 reasoning:** `qwen3.8-max` enables reasoning by default and supports `reasoning_effort` values `low`, `medium`, and `xhigh` (default). The direct snippet disables reasoning for stable VS Code tool loops; the proxy leaves it on for plain chat and suppresses it when tool activity is detected.
283
+ - **Qwen 3.8 reasoning:** `qwen3.8-max` enables reasoning by default and supports `reasoning_effort` values `low`, `medium`, and `xhigh` (default). The direct snippet disables reasoning for stable VS Code tool loops; the proxy leaves it on for plain chat and suppresses it when tool activity is detected. The two OpenRouter snapshot slugs are catalog records; the benchmark difference does not mean the DashScope config should silently switch IDs.
222
284
  - **Thinking trade-off:** Direct = thinking always off (loops stable, no reasoning visible). Proxy = thinking on in plain chat, off in tool turns.
223
285
  - **`tool_choice` only supports `auto`** — don't override it (VS Code's default is `auto`).
224
286
 
package/docs/pricing.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Pricing
2
2
 
3
- > **Historical release timeline:** The long release log below is retained for provenance. The current table and the September 6 refresh note below are authoritative for present scores and estimates.
3
+ > **Historical release timeline:** The long release log below is retained for provenance. The current table and the September 7 refresh note below are authoritative for present scores and estimates.
4
4
 
5
- > **Updated:** September 5, 2026 — **GPT-6 Astra** added (footnote ²⁴): OpenAI's frontier model (released September 3, 2026), AA Intelligence Index **61.2**, standard pricing **$10 / $1 / $50** (input / cached / output), 1M context, and text + image input; it follows Claude Fable 5 in the CPI sort (~$0.163 vs ~$0.161). **Claude Fable 5.1** added (footnote ²³): Anthropic's new flagship (released September 1, 2026), AA Intelligence Index **65.7** — now the **top intelligence score** in the benchmarks table. Same $10 / $50 rates as Fable 5, but cached input cut to $0.25 (97.5% cache discount); it lands just above Fable 5 in the CPI sort (~$0.15 vs ~$0.161), still the second-most expensive scored row. **Gemini 3.8 Flash** added (footnote ²¹): Google's most intelligent Flash model (released September 2, 2026), AA Intelligence Index **58.7**, at the same promotional rates as 3.7 Flash ($0.75 / $0.075 / $3.75 through December 31) — it is **not yet GitHub Copilot native**, so it is priced from the Gemini API. **Gemini 3.8 Flash Cyber** added (footnote ²²): the cybersecurity-specialized sibling, restricted to Google's Fairwind Program — no public API pricing and no Artificial Analysis Intelligence Index run, so its row shows `—` at the bottom of the table. August 28: **GLM 5.3 Flash** added (footnote ²⁰): Z.ai's first native multimodal GLM-5 model (August 26, 2026), AA Intelligence Index **57.5**, launch pricing **$0.15 / $0.03 / $0.50** (50% off through September 9). It is now the **cheapest cost-per-intelligence row** in the table (~$0.0022). August 20: **DeepSeek V4 Flash 0731** and **DeepSeek V4 Pro 0813** refreshed (footnote ¹⁹): current builds, AA Intelligence Index **51.8** / **53.2**, and peak/off-peak API pricing effective August 16. Pro's official GA agent benchmark update is documented in [docs/models/deepseek.md](models/deepseek.md). August 19: **GLM 5.3** added (footnote ¹⁸): Z.ai's new flagship (August 18, 2026), AA Intelligence Index **59.5**, priced identically to GLM 5.2 ($1.40 / $0.26 / $4.40). August 17: **GLM 5.2** OpenRouter promo refreshed (footnote ⁴): NovitaAI cut to 48% off; Open Sail Research now cheapest at $0.50 / $3.15. August 15: **Claude Fable 5** and **Qwen 3.6 Plus** added (footnotes ¹⁶–¹⁷); **Grok 4.5 / 4.6** and **Claude Fable 5** are now **GitHub Copilot native** (footnotes ¹², ¹⁴, ¹⁶). **Grok 4.6** and **Gemini 3.7 Flash** added August 14 (footnotes ¹⁴–¹⁵). **Gemini 3.6 Flash promotional price cut** to $0.75 / $3.75 (footnote ⁹). **Qwen 3.7 Max / 3.7 Plus price cuts** (see footnote ¹³). OpenRouter is running limited-time promos on GPT-5.6 Terra/Luna (⁸), GLM 5.2 (⁴), GLM 5.1, MiMo V2.5/V2.5 Pro, and MiniMax M3.
5
+ > **Updated:** September 7, 2026 — **Qwen 3.8 Max (0803)** and **Qwen 3.8 Max (0902)** are now separate rows (footnotes ²⁵–²⁶) because OpenRouter exposes them as distinct snapshots with AA scores **53.4** and **46.9**. Their Qwen Cloud rates and modeled session cost are unchanged. **GPT-6 Astra** added (footnote ²⁴): OpenAI's frontier model (released September 3, 2026), AA Intelligence Index **61.2**, standard pricing **$10 / $1 / $50** (input / cached / output), 1M context, and text + image input; it follows Claude Fable 5 in the CPI sort (~$0.163 vs ~$0.161). **Claude Fable 5.1** added (footnote ²³): Anthropic's new flagship (released September 1, 2026), AA Intelligence Index **65.7** — now the **top intelligence score** in the benchmarks table. Same $10 / $50 rates as Fable 5, but cached input cut to $0.25 (97.5% cache discount); it lands just above Fable 5 in the CPI sort (~$0.15 vs ~$0.161), still the second-most expensive scored row. **Gemini 3.8 Flash** added (footnote ²¹): Google's most intelligent Flash model (released September 2, 2026), AA Intelligence Index **58.7**, at the same promotional rates as 3.7 Flash ($0.75 / $0.075 / $3.75 through December 31) — it is **not yet GitHub Copilot native**, so it is priced from the Gemini API. **Gemini 3.8 Flash Cyber** added (footnote ²²): the cybersecurity-specialized sibling, restricted to Google's Fairwind Program — no public API pricing and no Artificial Analysis Intelligence Index run, so its row shows `—` at the bottom of the table. August 28: **GLM 5.3 Flash** added (footnote ²⁰): Z.ai's first native multimodal GLM-5 model (August 26, 2026), AA Intelligence Index **57.5**, launch pricing **$0.15 / $0.03 / $0.50** (50% off through September 9). It is now the **cheapest cost-per-intelligence row** in the table (~$0.0022). August 20: **DeepSeek V4 Flash 0731** and **DeepSeek V4 Pro 0813** refreshed (footnote ¹⁹): current builds, AA Intelligence Index **51.8** / **53.2**, and peak/off-peak API pricing effective August 16. Pro's official GA agent benchmark update is documented in [docs/models/deepseek.md](models/deepseek.md). August 19: **GLM 5.3** added (footnote ¹⁸): Z.ai's new flagship (August 18, 2026), AA Intelligence Index **59.5**, priced identically to GLM 5.2 ($1.40 / $0.26 / $4.40). August 17: **GLM 5.2** OpenRouter promo refreshed (footnote ⁴): NovitaAI cut to 48% off; Open Sail Research now cheapest at $0.50 / $3.15. August 15: **Claude Fable 5** and **Qwen 3.6 Plus** added (footnotes ¹⁶–¹⁷); **Grok 4.5 / 4.6** and **Claude Fable 5** are now **GitHub Copilot native** (footnotes ¹², ¹⁴, ¹⁶). **Grok 4.6** and **Gemini 3.7 Flash** added August 14 (footnotes ¹⁴–¹⁵). **Gemini 3.6 Flash promotional price cut** to $0.75 / $3.75 (footnote ⁹). **Qwen 3.7 Max / 3.7 Plus price cuts** (see footnote ¹³). OpenRouter is running limited-time promos on GPT-5.6 Terra/Luna (⁸), GLM 5.2 (⁴), GLM 5.1, MiMo V2.5/V2.5 Pro, and MiniMax M3.
6
6
 
7
- > **Current refresh (September 6, 2026):** AA Intelligence Index values below use the current OpenRouter model pages. **Every pricing cell is checked against first-party provider pricing or GitHub Copilot's official billing table; OpenRouter is never used as a pricing source.** Qwen 3.8 Max is now represented by the current **0902** snapshot. Several models no longer expose a current OpenRouter AA composite and are shown as `—` rather than retaining stale scores. Current corrections include OpenAI GPT-5.6 Sol at **$4 / $0.40 / $20**, Anthropic Sonnet 5 at **$2 / $0.20 / $10**, xAI Grok 4.5 cache reads at **$0.30**, and Alibaba's Qwen 3.7 list rates at **$2.50 / $0.25 / $7.50** (Max) and **$0.40 / $0.04 / $1.60** (Plus).
7
+ > **Current refresh (September 7, 2026):** AA Intelligence Index values below use the current OpenRouter model pages. **Every pricing cell is checked against first-party provider pricing or GitHub Copilot's official billing table; OpenRouter is never used as a pricing source.** OpenRouter's unversioned `qwen/qwen3.8-max` is the **0803** checkpoint (**53.4**), while `qwen/qwen3.8-max-0902` is a separate **0902** snapshot (**46.9**); both use the same Qwen Cloud rates in this comparison. Several models no longer expose a current OpenRouter AA composite and are shown as `—` rather than retaining stale scores. Current corrections include OpenAI GPT-5.6 Sol at **$4 / $0.40 / $20**, Anthropic Sonnet 5 at **$2 / $0.20 / $10**, xAI Grok 4.5 cache reads at **$0.30**, and Alibaba's Qwen 3.7 list rates at **$2.50 / $0.25 / $7.50** (Max) and **$0.40 / $0.04 / $1.60** (Plus).
8
8
 
9
9
  > **⏰ June 1, 2026 — GitHub Copilot switched to usage-based billing (AI Credits) today.**
10
10
  >
@@ -26,48 +26,49 @@ All prices below are in **USD per 1M tokens** (non-cached). To convert to AI cre
26
26
 
27
27
  All models are listed together below, sorted by Cost per intelligence ascending (lower is better). Models without a Cost per intelligence are ordered by estimated session cost ascending. Session cost assumes ~10K input + ~2K output tokens per turn, 50 turns.
28
28
 
29
- | Model | Provider | Cost per intelligence | Intelligence Score | Input (per 1M) | Cached input | Output (per 1M) | Est. session | Context window |
30
- | ----------------------------- | --------- | --------------------- | ------------------ | ----------------------------- | ----------------------------- | ----------------------------- | ------------ | -------------- |
31
- | **GLM 5.3 Flash** | Z.ai | **~$0.0028** | **46.2** | $0.15 | $0.03 | $0.50 | ~$0.13 | 1M |
32
- | **GPT-5.6 Luna** | OpenAI | **~$0.0051** | **43.4** | $0.20 | $0.02 | $1.20 | ~$0.22 | 1M |
33
- | **MiniMax M3** | MiniMax | **~$0.0076** | **35.7** | $0.60 (≤512K) / $1.20 (>512K) | $0.12 (≤512K) / $0.24 (>512K) | $2.40 (≤512K) / $4.80 (>512K) | ~$0.27 | 1M |
34
- | **DeepSeek V4 Flash 0731** | DeepSeek | **~$0.0086** | **40.8** | $0.44 | $0.014 | $1.32 | ~$0.35 | 1M |
35
- | **MiMo V2.5 Pro** | Xiaomi | **~$0.0092** | **32.6** | $0.435 | $0.0036 | $0.87 | ~$0.30 | 1M |
36
- | **MiniMax M3 Priority** | MiniMax | **~$0.0115** | **35.7** | $0.90 (≤512K) / $1.80 (>512K) | $0.18 (≤512K) / $0.36 (>512K) | $3.60 (≤512K) / $7.20 (>512K) | ~$0.41 | 1M |
37
- | **Gemini 3.8 Flash** | Google | **~$0.0159** | **47.1** | $0.75 | $0.075 | $3.75 | ~$0.75 | 1M |
38
- | **Gemini 3.7 Flash** | Google | **~$0.0166** | **45.2** | $0.75 | $0.075 | $3.75 | ~$0.75 | 1M |
39
- | **Gemini 3.6 Flash** | Google | **~$0.0186** | **40.3** | $0.75 | $0.075 | $3.75 | ~$0.75 | 1M |
40
- | **GLM 5.3** | Z.ai | **~$0.0235** | **48.6** | $1.40 | $0.26 | $4.40 | ~$1.14 | 1M |
41
- | **DeepSeek V4 Pro 0813** | DeepSeek | **~$0.0252** | **42.1** | $1.32 | $0.044 | $3.96 | ~$1.06 | 1M |
42
- | **Grok 4.6** | xAI | **~$0.0316** | **50.6** | $2.00 | $0.50 | $6.00 | ~$1.60 | 500K |
43
- | **Qwen 3.8 Max (0902)** | DashScope | **~$0.0341** | **46.9** | $2.00 | $0.25 | $6.00 | ~$1.60 | 1M |
44
- | **Grok 4.5** | xAI | **~$0.0352** | **45.5** | $2.00 | $0.30 | $6.00 | ~$1.60 | 500K |
45
- | **Claude Sonnet 5** | Anthropic | **~$0.0443** | **45.1** | $2.00 | $0.20 | $10.00 | ~$2.00 | 1M |
46
- | **GPT-5.6 Terra** | OpenAI | **~$0.0470** | **46.8** | $2.00 | $0.20 | $12.00 | ~$2.20 | 1M |
47
- | **Kimi K3** | Moonshot | **~$0.0598** | **50.2** | $3.00 | $0.30 | $15.00 | ~$3.00 | 1M |
48
- | **Gemini 3.1 Pro** | Google | **~$0.0599** | **36.7** | $2.00¹ | $0.20 | $12.00¹ | ~$2.20 | 1M |
49
- | **GPT-5.6 Sol** | OpenAI | **~$0.0780** | **51.3** | $4.00 | $0.40 | $20.00 | ~$4.00 | 1M |
50
- | **Claude Opus 5** | Anthropic | **~$0.0924** | **54.1** | $5.00 | $0.50 | $25.00 | ~$5.00 | 1M |
51
- | **Claude Fable 5.1** | Anthropic | **~$0.1761** | **56.8** | $10.00 | $0.25 | $50.00 | ~$10.00 | 1M |
52
- | **GPT-6 Astra** | OpenAI | **~$0.1828** | **54.7** | $10.00 | $1.00 | $50.00 | ~$10.00 | 1M |
53
- | **Claude Fable 5** | Anthropic | **~$0.1880** | **53.2** | $10.00 | $1.00 | $50.00 | ~$10.00 | 1M |
54
- | **MiMo V2.5** | Xiaomi | — | — | $0.14 | $0.0028 | $0.28 | ~$0.10 | 1M |
55
- | **Qwen 3.7 Plus** | DashScope | — | — | $0.40 (≤256K) / $1.20 (>256K) | $0.04 | $1.60 (≤256K) / $4.80 (>256K) | ~$0.36 | 1M |
56
- | **Qwen 3.6 Plus** | DashScope | — | — | $0.50 | $0.05 | $3.00 | ~$0.55 | 1M |
57
- | **GPT-5.4 mini** | OpenAI | — | — | $0.75 | $0.075 | $4.50 | ~$0.83 | 400K |
58
- | **Kimi K2.6** | Moonshot | — | — | $0.95 | $0.16 | $4.00 | ~$0.88 | 256K |
59
- | **Kimi K2.7 Code** | Moonshot | — | — | $0.95 | $0.19 | $4.00 | ~$0.88 | 262K |
60
- | **GLM 5V Turbo** | Z.ai | — | — | $1.20 | $0.24 | $4.00 | ~$1.00 | 200K |
61
- | **GLM 5.1** | Z.ai | — | — | $1.40 | $0.26 | $4.40 | ~$1.14 | 200K |
62
- | **GLM 5.2** | Z.ai | — | — | $1.40 | $0.26 | $4.40 | ~$1.14 | 1M |
63
- | **Gemini 3.5 Flash** | Google | — | — | $1.50 | $0.15 | $9.00 | ~$1.65 | 1M |
64
- | **Qwen 3.7 Max** | DashScope | — | — | $2.50 (≤1M) | $0.25 | $7.50 (≤1M) | ~$2.00 | 1M |
65
- | **GPT-5.4** | OpenAI | — | — | $2.50 | $0.25 | $15.00 | ~$2.75 | 1M |
66
- | **Claude Sonnet 4.6** | Anthropic | — | — | $3.00 | $0.30 | $15.00 | ~$3.00 | 1M |
67
- | **Claude Opus 4.8** | Anthropic | — | — | $5.00 | $0.50 | $25.00 | ~$5.00 | 1M |
68
- | **Claude Opus 4.7** | Anthropic | — | — | $5.00 | $0.50 | $25.00 | ~$5.00 | 1M |
69
- | **GPT-5.5** | OpenAI | — | — | $5.00 | $0.50 | $30.00 | ~$5.50 | 1M |
70
- | **Gemini 3.8 Flash Cyber** | Google | — | — | — | — | — | — | — |
29
+ | Model | Provider | Cost per intelligence | Intelligence Score | Input (per 1M) | Cached input | Output (per 1M) | Est. session | Context window |
30
+ | -------------------------- | --------- | --------------------- | ------------------ | ----------------------------- | ----------------------------- | ----------------------------- | ------------ | -------------- |
31
+ | **GLM 5.3 Flash** | Z.ai | **~$0.0028** | **46.2** | $0.15 | $0.03 | $0.50 | ~$0.13 | 1M |
32
+ | **GPT-5.6 Luna** | OpenAI | **~$0.0051** | **43.4** | $0.20 | $0.02 | $1.20 | ~$0.22 | 1M |
33
+ | **MiniMax M3** | MiniMax | **~$0.0076** | **35.7** | $0.60 (≤512K) / $1.20 (>512K) | $0.12 (≤512K) / $0.24 (>512K) | $2.40 (≤512K) / $4.80 (>512K) | ~$0.27 | 1M |
34
+ | **DeepSeek V4 Flash 0731** | DeepSeek | **~$0.0086** | **40.8** | $0.44 | $0.014 | $1.32 | ~$0.35 | 1M |
35
+ | **MiMo V2.5 Pro** | Xiaomi | **~$0.0092** | **32.6** | $0.435 | $0.0036 | $0.87 | ~$0.30 | 1M |
36
+ | **MiniMax M3 Priority** | MiniMax | **~$0.0115** | **35.7** | $0.90 (≤512K) / $1.80 (>512K) | $0.18 (≤512K) / $0.36 (>512K) | $3.60 (≤512K) / $7.20 (>512K) | ~$0.41 | 1M |
37
+ | **Gemini 3.8 Flash** | Google | **~$0.0159** | **47.1** | $0.75 | $0.075 | $3.75 | ~$0.75 | 1M |
38
+ | **Gemini 3.7 Flash** | Google | **~$0.0166** | **45.2** | $0.75 | $0.075 | $3.75 | ~$0.75 | 1M |
39
+ | **Gemini 3.6 Flash** | Google | **~$0.0186** | **40.3** | $0.75 | $0.075 | $3.75 | ~$0.75 | 1M |
40
+ | **GLM 5.3** | Z.ai | **~$0.0235** | **48.6** | $1.40 | $0.26 | $4.40 | ~$1.14 | 1M |
41
+ | **DeepSeek V4 Pro 0813** | DeepSeek | **~$0.0252** | **42.1** | $1.32 | $0.044 | $3.96 | ~$1.06 | 1M |
42
+ | **Qwen 3.8 Max (0803)²⁵** | DashScope | **~$0.0300** | **53.4** | $2.00 | $0.25 | $6.00 | ~$1.60 | 1M |
43
+ | **Grok 4.6** | xAI | **~$0.0316** | **50.6** | $2.00 | $0.50 | $6.00 | ~$1.60 | 500K |
44
+ | **Qwen 3.8 Max (0902)²⁶** | DashScope | **~$0.0341** | **46.9** | $2.00 | $0.25 | $6.00 | ~$1.60 | 1M |
45
+ | **Grok 4.5** | xAI | **~$0.0352** | **45.5** | $2.00 | $0.30 | $6.00 | ~$1.60 | 500K |
46
+ | **Claude Sonnet 5** | Anthropic | **~$0.0443** | **45.1** | $2.00 | $0.20 | $10.00 | ~$2.00 | 1M |
47
+ | **GPT-5.6 Terra** | OpenAI | **~$0.0470** | **46.8** | $2.00 | $0.20 | $12.00 | ~$2.20 | 1M |
48
+ | **Kimi K3** | Moonshot | **~$0.0598** | **50.2** | $3.00 | $0.30 | $15.00 | ~$3.00 | 1M |
49
+ | **Gemini 3.1 Pro** | Google | **~$0.0599** | **36.7** | $2.00¹ | $0.20 | $12.00¹ | ~$2.20 | 1M |
50
+ | **GPT-5.6 Sol** | OpenAI | **~$0.0780** | **51.3** | $4.00 | $0.40 | $20.00 | ~$4.00 | 1M |
51
+ | **Claude Opus 5** | Anthropic | **~$0.0924** | **54.1** | $5.00 | $0.50 | $25.00 | ~$5.00 | 1M |
52
+ | **Claude Fable 5.1** | Anthropic | **~$0.1761** | **56.8** | $10.00 | $0.25 | $50.00 | ~$10.00 | 1M |
53
+ | **GPT-6 Astra** | OpenAI | **~$0.1828** | **54.7** | $10.00 | $1.00 | $50.00 | ~$10.00 | 1M |
54
+ | **Claude Fable 5** | Anthropic | **~$0.1880** | **53.2** | $10.00 | $1.00 | $50.00 | ~$10.00 | 1M |
55
+ | **MiMo V2.5** | Xiaomi | — | — | $0.14 | $0.0028 | $0.28 | ~$0.10 | 1M |
56
+ | **Qwen 3.7 Plus** | DashScope | — | — | $0.40 (≤256K) / $1.20 (>256K) | $0.04 | $1.60 (≤256K) / $4.80 (>256K) | ~$0.36 | 1M |
57
+ | **Qwen 3.6 Plus** | DashScope | — | — | $0.50 | $0.05 | $3.00 | ~$0.55 | 1M |
58
+ | **GPT-5.4 mini** | OpenAI | — | — | $0.75 | $0.075 | $4.50 | ~$0.83 | 400K |
59
+ | **Kimi K2.6** | Moonshot | — | — | $0.95 | $0.16 | $4.00 | ~$0.88 | 256K |
60
+ | **Kimi K2.7 Code** | Moonshot | — | — | $0.95 | $0.19 | $4.00 | ~$0.88 | 262K |
61
+ | **GLM 5V Turbo** | Z.ai | — | — | $1.20 | $0.24 | $4.00 | ~$1.00 | 200K |
62
+ | **GLM 5.1** | Z.ai | — | — | $1.40 | $0.26 | $4.40 | ~$1.14 | 200K |
63
+ | **GLM 5.2** | Z.ai | — | — | $1.40 | $0.26 | $4.40 | ~$1.14 | 1M |
64
+ | **Gemini 3.5 Flash** | Google | — | — | $1.50 | $0.15 | $9.00 | ~$1.65 | 1M |
65
+ | **Qwen 3.7 Max** | DashScope | — | — | $2.50 (≤1M) | $0.25 | $7.50 (≤1M) | ~$2.00 | 1M |
66
+ | **GPT-5.4** | OpenAI | — | — | $2.50 | $0.25 | $15.00 | ~$2.75 | 1M |
67
+ | **Claude Sonnet 4.6** | Anthropic | — | — | $3.00 | $0.30 | $15.00 | ~$3.00 | 1M |
68
+ | **Claude Opus 4.8** | Anthropic | — | — | $5.00 | $0.50 | $25.00 | ~$5.00 | 1M |
69
+ | **Claude Opus 4.7** | Anthropic | — | — | $5.00 | $0.50 | $25.00 | ~$5.00 | 1M |
70
+ | **GPT-5.5** | OpenAI | — | — | $5.00 | $0.50 | $30.00 | ~$5.50 | 1M |
71
+ | **Gemini 3.8 Flash Cyber** | Google | — | — | — | — | — | — | — |
71
72
 
72
73
  > **Historical footnotes:** The numbered notes below preserve release and pricing context from the prior September 5 snapshot. They are not the current AA ranking source; use the table above and the September 6 OpenRouter refresh note for current scores.
73
74
 
@@ -89,7 +90,7 @@ All models are listed together below, sorted by Cost per intelligence ascending
89
90
 
90
91
  ¹⁰ **Claude Opus 5** was released on **July 24, 2026**. AA Intelligence Index score (**63.1**) confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/claude-opus-5). Pricing is $5.00 / $0.50 / $25.00 per MTok input/cached/output (same as Opus 4.8). 1M context window, text + image input, adaptive reasoning. Also available in Fast mode ($10/$50 per MTok input/output) and Batch ($2.50/$12.50 per MTok input/output). Uses the newer Claude tokenizer (~30% more tokens than pre-4.7 models). See [Anthropic's Opus 5 announcement](https://www.anthropic.com/news/claude-opus-5).
91
92
 
92
- ¹¹ **Qwen 3.8 Max** (`qwen3.8-max`) launched on **August 3, 2026**. Qwen Cloud lists $2.00 input / $6.00 output per 1M tokens, $0.25 implicit-cache input, $2.50 explicit-cache creation, and $0.17 explicit-cache reads. The modeled session cost is ~$1.60 using 10K input + 2K output tokens per turn across 50 turns. It has a 1M context window, 131K maximum output, and text/image/video input. Artificial Analysis has published an Intelligence Index of **58.1** for this model (**#9/185**; listed as a rounded **58** on its [model page](https://artificialanalysis.ai/models/qwen3-8-max)); OpenRouter metadata also reports Coding **71.8** and Agentic **58.4**. Pricing is unchanged as of August 7, 2026. See the [Qwen Cloud model page](https://www.qwencloud.com/models/qwen3.8-max), [AA model page](https://artificialanalysis.ai/models/qwen3-8-max), and [OpenRouter model page](https://openrouter.ai/qwen/qwen3.8-max).
93
+ ¹¹ **Historical Qwen 3.8 Max launch record:** the August 3, 2026 launch package used the unversioned `qwen3.8-max` name. An earlier Artificial Analysis snapshot reported **58.1**; the current OpenRouter ranking now distinguishes the unversioned **0803** row (**53.4**) from the separate **0902** row (**46.9**). Use the current rows and footnotes ²⁵–²⁶ for comparisons rather than carrying the earlier score forward. See the [Qwen Cloud model page](https://www.qwencloud.com/models/qwen3.8-max), [AA model page](https://artificialanalysis.ai/models/qwen3-8-max), and [OpenRouter model page](https://openrouter.ai/qwen/qwen3.8-max).
93
94
 
94
95
  ¹² **Grok 4.5** (xAI, released **July 8, 2026**) is now a **GitHub Copilot native** model (GA, Versatile). AA Intelligence Index **55.8** (high), Coding **72.4**, Agentic **48.9**. 500K context window, text + image input. Priced at $2.00 / $0.50 / $6.00 per 1M input/cached/output (75% cache discount; Copilot long-context >200K tier $4.00 / $1.00 / $12.00). See the [GitHub Copilot models & pricing page](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing).
95
96
 
@@ -117,6 +118,10 @@ All models are listed together below, sorted by Cost per intelligence ascending
117
118
 
118
119
  ²⁴ **GPT-6 Astra** was released on **September 3, 2026** as `gpt-6-astra`, an OpenAI API model and **GitHub Copilot native** model (GA, Powerful). It supports reasoning, text + image input, text output, and a 1M-token context window. Standard pricing is **$10.00 / $1.00 / $50.00** per 1M input/cached/output tokens; cache writes are $12.50/M, and prompts above 272K input tokens use long-context rates. The modeled session cost is ~$10.00 and CPI is ~$0.163. See the [GPT-6 Astra announcement](https://openai.com/index/gpt-6-astra/), [OpenAI API pricing](https://developers.openai.com/api/docs/pricing), and [GitHub Copilot models & pricing](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing).
119
120
 
121
+ ²⁵ **Qwen 3.8 Max (0803)** is the August 3, 2026 launch checkpoint exposed by OpenRouter under the unversioned slug [`qwen/qwen3.8-max`](https://openrouter.ai/qwen/qwen3.8-max). The September 7 ranking snapshot gives it an AA Intelligence Index of **53.4**. It shares Qwen Cloud's **$2.00 / $0.25 / $6.00** input/cached/output rates, 1M context, 131K maximum output, and text/image/video input with the 0902 snapshot. OpenRouter describes it as superseded by 0902; the validated DashScope setup continues to use provider ID `qwen3.8-max` and the proxy forwards that ID unchanged.
122
+
123
+ ²⁶ **Qwen 3.8 Max (0902)** is a separate OpenRouter snapshot, [`qwen/qwen3.8-max-0902`](https://openrouter.ai/qwen/qwen3.8-max-0902), released September 4, 2026. The September 7 ranking snapshot gives it an AA Intelligence Index of **46.9**. It has the same published **$2.00 / $0.25 / $6.00** input/cached/output rates, 1M context, 131K maximum output, and text/image/video input. The OpenRouter slug is not automatically a valid DashScope model ID; see [the Qwen setup guide](models/qwen.md) before changing the upstream URL.
124
+
120
125
  Cost per intelligence = estimated session cost ÷ Intelligence Index score. Session cost assumes ~10K input + ~2K output tokens per turn, 50 turns.
121
126
 
122
127
  > **Notes:**
@@ -137,7 +142,7 @@ Cost per intelligence = estimated session cost ÷ Intelligence Index score. Sess
137
142
 
138
143
  > **How long does 7,000 credits last?** A Pro+ subscriber running 50-turn sessions could afford roughly **13 GPT-5.5 sessions** or **23 Opus sessions** per month — or mix and match. (Multiply session cost by 100 to convert to AI credits.)
139
144
 
140
- > Prices last verified: September 6, 2026. Always check the official pages for the latest rates:
145
+ > Prices last verified: September 7, 2026. Always check the official pages for the latest rates:
141
146
  >
142
147
  > - [GitHub Copilot models & pricing](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing)
143
148
  > - [OpenAI pricing](https://openai.com/api/pricing/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copilot-custom-endpoint",
3
- "version": "2.2.0",
3
+ "version": "3.0.0",
4
4
  "description": "Local proxies for VS Code Copilot custom endpoints — Kimi K2, Qwen 3.x & MiMo V2.5",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -57,4 +57,4 @@
57
57
  "dependencies": {
58
58
  "dotenv": "^17.4.2"
59
59
  }
60
- }
60
+ }
@@ -6,6 +6,9 @@ import { createProxy } from '../lib/create-proxy.mjs'
6
6
  /**
7
7
  * Supported model scope for this proxy:
8
8
  * - Validated with `qwen3.8-max`, `qwen3.7-plus`, and `qwen3.7-max`.
9
+ * - The rewrite can also be used with OpenRouter model IDs such as
10
+ * `qwen/qwen3.8-max-0902`; the proxy forwards model IDs unchanged. That route
11
+ * is not part of the validated DashScope setup.
9
12
  * - Expected to work for any Qwen3 hybrid-thinking model (qwen3-* series)
10
13
  * that supports the `enable_thinking` top-level field on DashScope's
11
14
  * OpenAI-compatible surface.
@@ -33,9 +36,13 @@ Starts a local HTTP proxy that conditionally injects enable_thinking: false
33
36
  when the request includes a tools array, letting Qwen hybrid-thinking models
34
37
  show reasoning in plain chat while keeping tool loops stable.
35
38
 
39
+ The proxy forwards the requested model ID unchanged, including the DashScope
40
+ ID qwen3.8-max and OpenRouter ID qwen/qwen3.8-max-0902.
41
+
36
42
  Environment variables:
37
43
  QWEN_PROXY_PORT Local listen port. Default: 3458 (falls back to PORT)
38
- QWEN_UPSTREAM_URL Upstream DashScope chat-completions URL.
44
+ QWEN_UPSTREAM_URL Upstream chat-completions URL (DashScope by default;
45
+ OpenRouter can be selected for snapshot IDs).
39
46
  Default: https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions
40
47
  QWEN_PROXY_DISABLE_THINKING_WITH_TOOLS
41
48
  Inject enable_thinking: false when tools are present.