copilot-custom-endpoint 1.2.2 → 1.2.4
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 +80 -816
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,871 +1,135 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GitHub Copilot Custom Endpoints
|
|
2
2
|
|
|
3
|
-
> **TL;DR** —
|
|
3
|
+
> **TL;DR** — GitHub Copilot switched to usage-based billing on **June 1, 2026**. Every chat and agent session now burns AI credits — fast. This repo shows you how to plug **cheaper non-GitHub models** (DeepSeek, Kimi, Qwen, MiMo, MiniMax) into VS Code's Copilot chat — often **5–55× cheaper** than the built-ins — while keeping agent mode, tools, streaming, and vision.
|
|
4
4
|
|
|
5
5
|
## What is this?
|
|
6
6
|
|
|
7
|
-
VS Code lets you add your own language-model endpoint
|
|
8
|
-
|
|
9
|
-
Each provider/model gets one durable record under `docs/models/` plus any local proxy code it needs under `proxy/`.
|
|
10
|
-
|
|
11
|
-
### Why custom endpoints instead of OpenRouter?
|
|
12
|
-
|
|
13
|
-
[OpenRouter](https://openrouter.ai) is a popular unified gateway, but it is **not always an option**:
|
|
14
|
-
|
|
15
|
-
- **Corporate firewalls often block OpenRouter** (and many other cloud AI gateways) by default. If your employer's network blocks OpenRouter, you cannot use it — full stop. A custom endpoint lets you talk directly to a provider that _is_ allowed, or run a small local proxy on `localhost` that forwards through an approved egress path.
|
|
16
|
-
- **Provider-specific features** (Kimi's thinking mode, vision quirks, etc.) often need request rewriting that a generic aggregator does not support.
|
|
17
|
-
- **Cost or contract reasons** may mean your organisation already has a direct relationship with a specific provider and does not want traffic routed through a third party.
|
|
18
|
-
|
|
19
|
-
This repo is for those situations: validated, copy-paste-ready configs when OpenRouter is blocked, too expensive, or simply the wrong tool for the job.
|
|
20
|
-
|
|
21
|
-
## Quick start
|
|
22
|
-
|
|
23
|
-
| Provider | Model | Needs proxy? | Plain chat | Streaming | Tool calling | Vision |
|
|
24
|
-
| ----------------------------- | --------------- | ---------------------------------- | ---------- | --------- | ------------ | ------ |
|
|
25
|
-
| **Moonshot (Kimi)** | `kimi-k2.6` | Yes — `proxy/kimi-proxy.mjs` | ✅ | ✅ | ✅ | ✅ |
|
|
26
|
-
| **Alibaba Cloud (DashScope)** | `qwen3.6-plus` | Optional — `proxy/qwen-proxy.mjs`¹ | ✅² | ✅ | ✅ | ✅ |
|
|
27
|
-
| **Alibaba Cloud (DashScope)** | `qwen3.7-max` | Optional — `proxy/qwen-proxy.mjs`¹ | ✅² | ✅ | ✅ | ❌ |
|
|
28
|
-
| **DeepSeek** | `deepseek-v4` | No — uses a VS Code extension | ✅ | ✅ | ✅ | ✅³ |
|
|
29
|
-
| **Xiaomi MiMo** | `mimo-v2.5` | No | ✅ | ✅ | ✅ | ✅⁴ |
|
|
30
|
-
| **Xiaomi MiMo** | `mimo-v2.5-pro` | No | ✅ | ✅ | ✅ | ❌ |
|
|
31
|
-
| **Xiaomi MiMo** | `mimo-v2-flash` | No | ✅ | ✅ | ✅ | ❌ |
|
|
32
|
-
| **MiniMax** | `MiniMax-M3` | No | ✅ | ✅ | ✅ | ✅ |
|
|
33
|
-
|
|
34
|
-
¹ Proxy is optional: direct path works with static `enable_thinking: false`. Proxy adds dynamic thinking suppression (thinking ON in plain chat, OFF in tool loops).
|
|
35
|
-
² With proxy: reasoning visible in plain chat. Without proxy: always suppressed.
|
|
36
|
-
³ Vision is supported through a proxy model (Claude, GPT-4o) that describes the image before sending to DeepSeek.
|
|
37
|
-
⁴ Native vision via dedicated ViT encoder. Tested via VS Code image attachment in agent mode.
|
|
38
|
-
|
|
39
|
-
Pick the model you want and follow the corresponding section below.
|
|
40
|
-
|
|
41
|
-
### Config setup: two-step workflow
|
|
42
|
-
|
|
43
|
-
VS Code separates **model configuration** from **API key storage** for security. You set up each provider in two steps:
|
|
44
|
-
|
|
45
|
-
1. **Create/update `chatLanguageModels.json`** — this file defines the models, URLs, and settings. API keys are **not** stored here (leave `apiKey` out entirely, or use an empty string).
|
|
46
|
-
|
|
47
|
-
| OS | Path |
|
|
48
|
-
| ------- | ----------------------------------------------------------------- |
|
|
49
|
-
| Windows | `%APPDATA%\Code\User\chatLanguageModels.json` |
|
|
50
|
-
| macOS | `~/Library/Application Support/Code/User/chatLanguageModels.json` |
|
|
51
|
-
| Linux | `~/.config/Code/User/chatLanguageModels.json` |
|
|
52
|
-
|
|
53
|
-
2. **Set each API key through the Language Models UI:**
|
|
54
|
-
- Open the Command Palette (`Ctrl+Shift+P`).
|
|
55
|
-
- Run **Chat: Manage Language Models**.
|
|
56
|
-
- Find your provider group in the list.
|
|
57
|
-
- Right-click the group name → **Update API Key**.
|
|
58
|
-
- Paste your key. It is stored securely (not in the JSON file).
|
|
59
|
-
|
|
60
|
-
> **Why this way?** The JSON config file is often tracked in dotfile repos or shared across machines. API keys don't belong there. The VS Code UI stores them in your OS keychain instead.
|
|
61
|
-
|
|
62
|
-
### Full example config
|
|
63
|
-
|
|
64
|
-
Here's a complete, real-world example of `chatLanguageModels.json` combining all the providers documented in this repo. Note the `apiKey` fields are left as empty strings — you'll set them via the Language Models UI instead. After you set a key via the UI, VS Code replaces the empty string with a `${input:chat.lm.secret.<id>}` secret reference.
|
|
65
|
-
|
|
66
|
-
```json
|
|
67
|
-
[
|
|
68
|
-
{
|
|
69
|
-
"name": "Qwen",
|
|
70
|
-
"vendor": "customendpoint",
|
|
71
|
-
"apiKey": "",
|
|
72
|
-
"apiType": "chat-completions",
|
|
73
|
-
"models": [
|
|
74
|
-
{
|
|
75
|
-
"id": "qwen3.7-max",
|
|
76
|
-
"name": "Qwen 3.7 Max",
|
|
77
|
-
"url": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
78
|
-
"toolCalling": true,
|
|
79
|
-
"vision": false,
|
|
80
|
-
"streaming": true,
|
|
81
|
-
"requestBody": {
|
|
82
|
-
"enable_thinking": false
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"id": "qwen3.6-plus",
|
|
87
|
-
"name": "Qwen 3.6 Plus",
|
|
88
|
-
"url": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
89
|
-
"toolCalling": true,
|
|
90
|
-
"vision": true,
|
|
91
|
-
"streaming": true,
|
|
92
|
-
"requestBody": {
|
|
93
|
-
"enable_thinking": false
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "Kimi",
|
|
100
|
-
"vendor": "customendpoint",
|
|
101
|
-
"apiKey": "",
|
|
102
|
-
"apiType": "chat-completions",
|
|
103
|
-
"models": [
|
|
104
|
-
{
|
|
105
|
-
"id": "kimi-k2.6",
|
|
106
|
-
"name": "Kimi K2.6",
|
|
107
|
-
"url": "http://127.0.0.1:3457/v1/chat/completions",
|
|
108
|
-
"requestBody": {
|
|
109
|
-
"temperature": 1
|
|
110
|
-
},
|
|
111
|
-
"toolCalling": true,
|
|
112
|
-
"vision": true,
|
|
113
|
-
"streaming": true,
|
|
114
|
-
"maxInputTokens": 262144,
|
|
115
|
-
"maxOutputTokens": 32768
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "MiMo",
|
|
121
|
-
"vendor": "customendpoint",
|
|
122
|
-
"apiKey": "",
|
|
123
|
-
"apiType": "chat-completions",
|
|
124
|
-
"models": [
|
|
125
|
-
{
|
|
126
|
-
"id": "mimo-v2.5-pro",
|
|
127
|
-
"name": "MiMo V2.5 Pro",
|
|
128
|
-
"url": "https://api.xiaomimimo.com/v1/chat/completions",
|
|
129
|
-
"toolCalling": true,
|
|
130
|
-
"vision": false,
|
|
131
|
-
"streaming": true,
|
|
132
|
-
"maxInputTokens": 1048576,
|
|
133
|
-
"maxOutputTokens": 131072,
|
|
134
|
-
"requestBody": {
|
|
135
|
-
"thinking": { "type": "disabled" },
|
|
136
|
-
"temperature": 1,
|
|
137
|
-
"top_p": 0.95
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"id": "mimo-v2.5",
|
|
142
|
-
"name": "MiMo V2.5",
|
|
143
|
-
"url": "https://api.xiaomimimo.com/v1/chat/completions",
|
|
144
|
-
"toolCalling": true,
|
|
145
|
-
"vision": true,
|
|
146
|
-
"streaming": true,
|
|
147
|
-
"maxInputTokens": 1048576,
|
|
148
|
-
"maxOutputTokens": 32768,
|
|
149
|
-
"requestBody": {
|
|
150
|
-
"thinking": { "type": "disabled" },
|
|
151
|
-
"temperature": 1,
|
|
152
|
-
"top_p": 0.95
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"id": "mimo-v2-flash",
|
|
157
|
-
"name": "MiMo V2 Flash",
|
|
158
|
-
"url": "https://api.xiaomimimo.com/v1/chat/completions",
|
|
159
|
-
"toolCalling": true,
|
|
160
|
-
"vision": false,
|
|
161
|
-
"streaming": true,
|
|
162
|
-
"maxInputTokens": 262144,
|
|
163
|
-
"maxOutputTokens": 65536,
|
|
164
|
-
"requestBody": {
|
|
165
|
-
"thinking": { "type": "disabled" },
|
|
166
|
-
"temperature": 0.3,
|
|
167
|
-
"top_p": 0.95
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"name": "MiniMax",
|
|
174
|
-
"vendor": "customendpoint",
|
|
175
|
-
"apiKey": "",
|
|
176
|
-
"apiType": "chat-completions",
|
|
177
|
-
"models": [
|
|
178
|
-
{
|
|
179
|
-
"id": "MiniMax-M3",
|
|
180
|
-
"name": "MiniMax M3",
|
|
181
|
-
"url": "https://api.minimax.io/v1/chat/completions",
|
|
182
|
-
"toolCalling": true,
|
|
183
|
-
"vision": true,
|
|
184
|
-
"streaming": true,
|
|
185
|
-
"maxInputTokens": 1048576,
|
|
186
|
-
"maxOutputTokens": 131072,
|
|
187
|
-
"requestBody": {
|
|
188
|
-
"thinking": { "type": "adaptive" },
|
|
189
|
-
"reasoning_split": true,
|
|
190
|
-
"temperature": 1,
|
|
191
|
-
"top_p": 0.95
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
]
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
<details>
|
|
200
|
-
<summary>Kimi K2.6 (Moonshot)</summary>
|
|
201
|
-
|
|
202
|
-
### Kimi K2.6 (Moonshot)
|
|
203
|
-
|
|
204
|
-
#### 1. Grab a Moonshot API key
|
|
205
|
-
|
|
206
|
-
Sign up at [platform.moonshot.ai](https://platform.moonshot.ai) and create an API key.
|
|
207
|
-
|
|
208
|
-
#### 2. Start the local proxy
|
|
209
|
-
|
|
210
|
-
The proxy rewrites VS Code's requests into shapes Kimi actually accepts (fixed `temperature`, `top_p`, and disabling "thinking" during tool calls).
|
|
211
|
-
|
|
212
|
-
Run Kimi proxy
|
|
213
|
-
|
|
214
|
-
```bash
|
|
215
|
-
npm run proxy:kimi
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
Run all proxies
|
|
219
|
-
|
|
220
|
-
```bash
|
|
221
|
-
npm run proxy
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
Run globally (from any directory)
|
|
225
|
-
|
|
226
|
-
```bash
|
|
227
|
-
# Kimi only
|
|
228
|
-
npx copilot-custom-endpoint kimi
|
|
229
|
-
# All proxies
|
|
230
|
-
npx copilot-custom-endpoint
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
Clean up debug logs
|
|
234
|
-
|
|
235
|
-
```bash
|
|
236
|
-
npm run clean:logs
|
|
237
|
-
# or with npx
|
|
238
|
-
npx copilot-custom-endpoint clean
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
You should see:
|
|
7
|
+
VS Code lets you add your own language-model endpoint via a small JSON config file. Many providers advertise "OpenAI-compatible" APIs but reject the exact request shapes VS Code sends. This repo collects **real, tested setups** — one per provider — plus a tiny local proxy that smooths over the rough edges when needed.
|
|
242
8
|
|
|
243
|
-
|
|
244
|
-
[kimi-proxy] listening on http://127.0.0.1:3457/v1/chat/completions
|
|
245
|
-
[kimi-proxy] forwarding to https://api.moonshot.ai/v1/chat/completions
|
|
246
|
-
[kimi-proxy] forcing temperature=1, non-thinking temperature=0.6, and top_p=0.95
|
|
247
|
-
[kimi-proxy] disable thinking with tools=true
|
|
248
|
-
[kimi-proxy] writing redacted request summaries to debug_log/kimi-proxy.ndjson
|
|
249
|
-
```
|
|
9
|
+
If [OpenRouter](https://openrouter.ai) is blocked by your network, too expensive, or too generic for your model's quirks, this is the workaround.
|
|
250
10
|
|
|
251
|
-
|
|
11
|
+
## How it works (4 steps)
|
|
252
12
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
13
|
+
1. **Pick a model** from the table below.
|
|
14
|
+
2. **Add it to your VS Code config** — copy the snippet from the model's doc.
|
|
15
|
+
3. **Set the API key** through VS Code's UI (it goes to your OS keychain, not the file).
|
|
16
|
+
4. **Open chat** and pick the model from the model picker.
|
|
256
17
|
|
|
257
|
-
|
|
18
|
+
That's it. No code, no servers to manage (unless the model specifically needs the local proxy — the table tells you).
|
|
258
19
|
|
|
259
|
-
|
|
260
|
-
{
|
|
261
|
-
"ok": true,
|
|
262
|
-
"upstreamUrl": "https://api.moonshot.ai/v1/chat/completions",
|
|
263
|
-
"port": 3457,
|
|
264
|
-
"forcedTemperature": 1,
|
|
265
|
-
"forcedTopP": 0.95
|
|
266
|
-
}
|
|
267
|
-
```
|
|
20
|
+
## Pick a model
|
|
268
21
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
"apiKey": "",
|
|
280
|
-
"apiType": "chat-completions",
|
|
281
|
-
"models": [
|
|
282
|
-
{
|
|
283
|
-
"id": "kimi-k2.6",
|
|
284
|
-
"name": "Kimi K2.6",
|
|
285
|
-
"url": "http://127.0.0.1:3457/v1/chat/completions",
|
|
286
|
-
"requestBody": {
|
|
287
|
-
"temperature": 1
|
|
288
|
-
},
|
|
289
|
-
"toolCalling": true,
|
|
290
|
-
"vision": true,
|
|
291
|
-
"streaming": true,
|
|
292
|
-
"maxInputTokens": 262144,
|
|
293
|
-
"maxOutputTokens": 32768
|
|
294
|
-
}
|
|
295
|
-
]
|
|
296
|
-
}
|
|
297
|
-
```
|
|
22
|
+
| Model | Provider | Needs proxy? | Vision | Setup guide |
|
|
23
|
+
| --------------------------- | --------- | ---------------------- | ------------ | -------------------------------------------------------------------------------------------------- |
|
|
24
|
+
| **MiMo V2 Flash** | Xiaomi | No | ❌ | [Setup](docs/models/mimo.md) |
|
|
25
|
+
| **MiMo V2.5** | Xiaomi | No | ✅ | [Setup](docs/models/mimo.md) |
|
|
26
|
+
| **MiMo V2.5 Pro** | Xiaomi | No | ❌ | [Setup](docs/models/mimo.md) |
|
|
27
|
+
| **Kimi K2.6** | Moonshot | **Yes** | ✅ | [Setup](docs/models/kimi-k2.6.md) |
|
|
28
|
+
| **Qwen 3.6 Plus** | DashScope | Optional | ✅ | [Setup](docs/models/qwen.md) |
|
|
29
|
+
| **Qwen 3.7 Max** | DashScope | Optional | ❌ | [Setup](docs/models/qwen.md) |
|
|
30
|
+
| **MiniMax M3** | MiniMax | No | ✅ | [Setup](docs/models/minimax.md) |
|
|
31
|
+
| **DeepSeek V4 Pro / Flash** | DeepSeek | No (uses an extension) | ✅ via proxy | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot) |
|
|
298
32
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
Then set your Moonshot API key via the Language Models UI:
|
|
302
|
-
|
|
303
|
-
- Open the Command Palette (`Ctrl+Shift+P`).
|
|
304
|
-
- Run **Chat: Manage Language Models**.
|
|
305
|
-
- Find the **Kimi** group, right-click it → **Update API Key**.
|
|
306
|
-
- Paste your Moonshot API key.
|
|
307
|
-
|
|
308
|
-
#### 4. Chat!
|
|
309
|
-
|
|
310
|
-
- Open the Copilot chat panel (`Ctrl+Alt+I` / `Cmd+Ctrl+I`).
|
|
311
|
-
- Click the model picker (top-right of the chat input).
|
|
312
|
-
- Choose **Kimi K2.6**.
|
|
313
|
-
- Ask something. Streaming, tool use, and vision all work.
|
|
314
|
-
|
|
315
|
-
#### Troubleshooting (Kimi)
|
|
316
|
-
|
|
317
|
-
| Symptom | Fix |
|
|
318
|
-
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
319
|
-
| "Connection refused" or no response | Make sure `node proxy/kimi-proxy.mjs` is still running. |
|
|
320
|
-
| `invalid temperature` / `invalid top_p` | You're talking directly to Moonshot instead of through the proxy. Double-check the `url` in `chatLanguageModels.json`. |
|
|
321
|
-
| Tool calls fail after first turn | This happens if "thinking" stays enabled during tool loops. The proxy normally disables it automatically; ensure you're on the latest `proxy/kimi-proxy.mjs`. |
|
|
322
|
-
|
|
323
|
-
</details>
|
|
324
|
-
|
|
325
|
-
---
|
|
326
|
-
|
|
327
|
-
<details>
|
|
328
|
-
<summary>Qwen 3.6 Plus / Qwen 3.7 Max (DashScope)</summary>
|
|
329
|
-
|
|
330
|
-
### Qwen 3.6 Plus or Qwen 3.7 Max (DashScope)
|
|
331
|
-
|
|
332
|
-
Qwen models work **directly** with DashScope — no proxy needed. Just add `enable_thinking: false` to `requestBody` for tool-calling stability. An optional `proxy/qwen-proxy.mjs` is also available for dynamic thinking suppression (see [below](#optional-local-proxy-for-dynamic-thinking)).
|
|
333
|
-
|
|
334
|
-
#### 1. Grab a DashScope API key
|
|
335
|
-
|
|
336
|
-
Create an API key [here](https://modelstudio.console.alibabacloud.com/ap-southeast-1?tab=dashboard#/api-key).
|
|
337
|
-
|
|
338
|
-
> **Regional endpoints:** DashScope offers endpoints for several regions. API keys are region-specific.
|
|
339
|
-
>
|
|
340
|
-
> - **China (Beijing):** `https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions`
|
|
341
|
-
> - **US (Virginia):** `https://dashscope-us.aliyuncs.com/compatible-mode/v1/chat/completions`
|
|
342
|
-
> - **Singapore (default):** `https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions`
|
|
343
|
-
|
|
344
|
-
#### 2. Register the models in VS Code
|
|
345
|
-
|
|
346
|
-
First, open (or create) your user config file (see [Config file location](#config-file-location) above) and paste this entry (leave `apiKey` as empty string — you'll set it via the UI):
|
|
347
|
-
|
|
348
|
-
```json
|
|
349
|
-
{
|
|
350
|
-
"name": "Qwen",
|
|
351
|
-
"vendor": "customendpoint",
|
|
352
|
-
"apiKey": "",
|
|
353
|
-
"apiType": "chat-completions",
|
|
354
|
-
"models": [
|
|
355
|
-
{
|
|
356
|
-
"id": "qwen3.7-max",
|
|
357
|
-
"name": "Qwen 3.7 Max",
|
|
358
|
-
"url": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
359
|
-
"toolCalling": true,
|
|
360
|
-
"vision": false,
|
|
361
|
-
"streaming": true,
|
|
362
|
-
"requestBody": {
|
|
363
|
-
"enable_thinking": false
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"id": "qwen3.6-plus",
|
|
368
|
-
"name": "Qwen 3.6 Plus",
|
|
369
|
-
"url": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
370
|
-
"toolCalling": true,
|
|
371
|
-
"vision": true,
|
|
372
|
-
"streaming": true,
|
|
373
|
-
"requestBody": {
|
|
374
|
-
"enable_thinking": false
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
]
|
|
378
|
-
}
|
|
379
|
-
```
|
|
33
|
+
## Setup
|
|
380
34
|
|
|
381
|
-
|
|
35
|
+
### 1. Find (or create) your config file
|
|
382
36
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
37
|
+
| OS | Path |
|
|
38
|
+
| ------- | ----------------------------------------------------------------- |
|
|
39
|
+
| Windows | `%APPDATA%\Code\User\chatLanguageModels.json` |
|
|
40
|
+
| macOS | `~/Library/Application Support/Code/User/chatLanguageModels.json` |
|
|
41
|
+
| Linux | `~/.config/Code/User/chatLanguageModels.json` |
|
|
387
42
|
|
|
388
|
-
|
|
43
|
+
If the file doesn't exist yet, create it with `[]` inside.
|
|
389
44
|
|
|
390
|
-
|
|
45
|
+
### 2. Add a model entry
|
|
391
46
|
|
|
392
|
-
|
|
393
|
-
- Click the model picker (top-right of the chat input).
|
|
394
|
-
- Choose **Qwen 3.6 Plus** (with vision) or **Qwen 3.7 Max** (text only).
|
|
395
|
-
- Ask something. Streaming, tool use, and vision (3.6 Plus) all work.
|
|
47
|
+
Open the setup guide for the model you picked (links in the table above) and copy its JSON snippet into the file. Each snippet is a single provider object inside the array.
|
|
396
48
|
|
|
397
|
-
|
|
49
|
+
> **⚠️ Leave `apiKey` as `""`** — never paste the key into the JSON file.
|
|
398
50
|
|
|
399
|
-
|
|
51
|
+
### 3. Set the API key
|
|
400
52
|
|
|
401
|
-
|
|
53
|
+
1. Open the Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P`).
|
|
54
|
+
2. Run **Chat: Manage Language Models**.
|
|
55
|
+
3. Find your provider in the list, right-click the group name → **Update API Key**.
|
|
56
|
+
4. Paste your key. It's stored in your OS keychain.
|
|
402
57
|
|
|
403
|
-
|
|
58
|
+
### 4. Chat
|
|
404
59
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
60
|
+
- Open Copilot chat (`Ctrl+Alt+I` / `Cmd+Ctrl+I`).
|
|
61
|
+
- Click the model picker (top-right).
|
|
62
|
+
- Pick your model and ask something.
|
|
408
63
|
|
|
409
|
-
|
|
64
|
+
If a model needs a proxy, the setup guide will tell you to run a command first. Keep that terminal open while you chat.
|
|
410
65
|
|
|
411
|
-
|
|
412
|
-
npm run proxy
|
|
413
|
-
```
|
|
66
|
+
## Common commands
|
|
414
67
|
|
|
415
|
-
|
|
68
|
+
Run from the repo root:
|
|
416
69
|
|
|
417
70
|
```bash
|
|
418
|
-
# Qwen
|
|
419
|
-
|
|
420
|
-
#
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
You should see:
|
|
425
|
-
|
|
426
|
-
```
|
|
427
|
-
[qwen-proxy] listening on http://127.0.0.1:3458/v1/chat/completions
|
|
71
|
+
npm run proxy # Start both proxies (Kimi + Qwen)
|
|
72
|
+
npm run proxy:kimi # Start only the Kimi proxy
|
|
73
|
+
npm run proxy:qwen # Start only the Qwen proxy
|
|
74
|
+
npm run clean:logs # Remove debug_log/
|
|
75
|
+
npm test # Run the test suite
|
|
428
76
|
```
|
|
429
77
|
|
|
430
|
-
|
|
78
|
+
Or globally via npx (no clone needed):
|
|
431
79
|
|
|
432
80
|
```bash
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
```json
|
|
439
|
-
{
|
|
440
|
-
"ok": true,
|
|
441
|
-
"upstreamUrl": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
442
|
-
"port": 3458,
|
|
443
|
-
"disableThinkingWithTools": true
|
|
444
|
-
}
|
|
445
|
-
```
|
|
446
|
-
|
|
447
|
-
Then update your VS Code config to point URLs at the proxy and remove `requestBody` — the proxy handles thinking dynamically (remember, `apiKey` stays empty — set it via the UI):
|
|
448
|
-
|
|
449
|
-
```json
|
|
450
|
-
{
|
|
451
|
-
"name": "Qwen",
|
|
452
|
-
"vendor": "customendpoint",
|
|
453
|
-
"apiKey": "",
|
|
454
|
-
"apiType": "chat-completions",
|
|
455
|
-
"models": [
|
|
456
|
-
{
|
|
457
|
-
"id": "qwen3.7-max",
|
|
458
|
-
"name": "Qwen 3.7 Max",
|
|
459
|
-
"url": "http://127.0.0.1:3458/v1/chat/completions",
|
|
460
|
-
"toolCalling": true,
|
|
461
|
-
"vision": false,
|
|
462
|
-
"streaming": true
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
"id": "qwen3.6-plus",
|
|
466
|
-
"name": "Qwen 3.6 Plus",
|
|
467
|
-
"url": "http://127.0.0.1:3458/v1/chat/completions",
|
|
468
|
-
"toolCalling": true,
|
|
469
|
-
"vision": true,
|
|
470
|
-
"streaming": true
|
|
471
|
-
}
|
|
472
|
-
]
|
|
473
|
-
}
|
|
474
|
-
```
|
|
475
|
-
|
|
476
|
-
> **Keep the proxy terminal open** while using these models.
|
|
477
|
-
|
|
478
|
-
The proxy URL is configurable via the `QWEN_UPSTREAM_URL` environment variable (defaults to the Singapore endpoint shown in [step 1](#1-grab-a-dashscope-api-key)).
|
|
479
|
-
|
|
480
|
-
#### Troubleshooting (Qwen)
|
|
481
|
-
|
|
482
|
-
| Symptom | Fix |
|
|
483
|
-
| -------------------------------------------- | --------------------------------------------------------------------------------------- |
|
|
484
|
-
| `reasoning_content` errors during tool loops | Ensure `enable_thinking: false` is present in `requestBody` for every Qwen model. |
|
|
485
|
-
| Vision images fail to upload | Use base64-encoded images; external image URLs may fail if DashScope cannot reach them. |
|
|
486
|
-
|
|
487
|
-
</details>
|
|
488
|
-
|
|
489
|
-
---
|
|
490
|
-
|
|
491
|
-
<details>
|
|
492
|
-
<summary>DeepSeek V4 (VS Code Extension)</summary>
|
|
493
|
-
|
|
494
|
-
### DeepSeek V4 (VS Code Extension)
|
|
495
|
-
|
|
496
|
-
DeepSeek V4 Pro & Flash are available via a **dedicated VS Code extension** rather than a raw custom endpoint. The extension plugs DeepSeek directly into Copilot Chat's model picker while preserving agent mode, tool calling, skills, and MCP support.
|
|
497
|
-
|
|
498
|
-
> **How this differs:** Unlike Kimi and Qwen (which use VS Code's built-in `chatLanguageModels.json` custom endpoint mechanism), DeepSeek uses a VS Code extension that registers itself with Copilot. The experience is the same — pick the model in chat — but the setup path goes through the extension.
|
|
499
|
-
|
|
500
|
-
#### 1. Install the Extension
|
|
501
|
-
|
|
502
|
-
- VS Code 1.116 or later.
|
|
503
|
-
- A [GitHub Copilot subscription](https://github.com/features/copilot) (Free / Pro / Enterprise all work).
|
|
504
|
-
- Install **[DeepSeek V4 for Copilot Chat](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot)** from the VS Code Marketplace ([source](https://github.com/Vizards/deepseek-v4-for-copilot)).
|
|
505
|
-
|
|
506
|
-
#### 2. Get a DeepSeek API Key
|
|
507
|
-
|
|
508
|
-
Go to [platform.deepseek.com/api_keys](https://platform.deepseek.com/api_keys) and create an API key (starts with `sk-`).
|
|
509
|
-
|
|
510
|
-
#### 3. Configure the API Key
|
|
511
|
-
|
|
512
|
-
Open the Command Palette (`Ctrl+Shift+P`) and run **DeepSeek: Set API Key**, then paste your key. The key is stored in your OS keychain.
|
|
513
|
-
|
|
514
|
-
#### 4. Select the Model and Start Chatting
|
|
515
|
-
|
|
516
|
-
- Open Copilot Chat (`Ctrl+Shift+I`).
|
|
517
|
-
- Click the model picker (top-right of the chat panel).
|
|
518
|
-
- Choose **DeepSeek V4 Pro** or **DeepSeek V4 Flash**.
|
|
519
|
-
- Agent mode, tool calling, skills, and MCP all work out of the box.
|
|
520
|
-
|
|
521
|
-
#### Optional: Configure Thinking Effort
|
|
522
|
-
|
|
523
|
-
In the model picker, click the gear icon next to a DeepSeek model to choose:
|
|
524
|
-
|
|
525
|
-
- **None** — fastest, no reasoning.
|
|
526
|
-
- **High** — balanced (default).
|
|
527
|
-
- **Max** — deep reasoning for complex tasks.
|
|
528
|
-
|
|
529
|
-
#### Optional: Vision Support
|
|
530
|
-
|
|
531
|
-
DeepSeek V4 is text-only, but the extension handles images automatically — drop a screenshot into chat and it proxies through another installed Copilot model (Claude, GPT-4o) to describe the image first. Run **DeepSeek: Set Vision Proxy Model** to pick which model handles image descriptions.
|
|
532
|
-
|
|
533
|
-
> For the full official guide, see: [github.com/deepseek-ai/awesome-deepseek-agent/blob/main/docs/github_copilot.md](https://github.com/deepseek-ai/awesome-deepseek-agent/blob/main/docs/github_copilot.md)
|
|
534
|
-
|
|
535
|
-
</details>
|
|
536
|
-
|
|
537
|
-
---
|
|
538
|
-
|
|
539
|
-
<details>
|
|
540
|
-
<summary>Xiaomi MiMo</summary>
|
|
541
|
-
|
|
542
|
-
### Xiaomi MiMo
|
|
543
|
-
|
|
544
|
-
MiMo works **directly** — no proxy needed. Just add the provider entry to your VS Code config and select the model in the chat picker.
|
|
545
|
-
|
|
546
|
-
No proxy means lower latency, fewer moving parts, and nothing extra to keep running.
|
|
547
|
-
|
|
548
|
-
#### 1. Get a MiMo API key
|
|
549
|
-
|
|
550
|
-
Sign up at [platform.xiaomimimo.com](https://platform.xiaomimimo.com) and create an API key from the [Console](https://platform.xiaomimimo.com/console/api-keys).
|
|
551
|
-
|
|
552
|
-
#### 2. Register the models in VS Code
|
|
553
|
-
|
|
554
|
-
First, open your user config file (see [Config file location](#config-file-location) above) and paste this entry (leave `apiKey` as empty string — you'll set it via the UI):
|
|
555
|
-
|
|
556
|
-
```json
|
|
557
|
-
{
|
|
558
|
-
"name": "MiMo",
|
|
559
|
-
"vendor": "customendpoint",
|
|
560
|
-
"apiKey": "",
|
|
561
|
-
"apiType": "chat-completions",
|
|
562
|
-
"models": [
|
|
563
|
-
{
|
|
564
|
-
"id": "mimo-v2.5-pro",
|
|
565
|
-
"name": "MiMo V2.5 Pro",
|
|
566
|
-
"url": "https://api.xiaomimimo.com/v1/chat/completions",
|
|
567
|
-
"toolCalling": true,
|
|
568
|
-
"vision": false,
|
|
569
|
-
"streaming": true,
|
|
570
|
-
"maxInputTokens": 1048576,
|
|
571
|
-
"maxOutputTokens": 131072,
|
|
572
|
-
"requestBody": {
|
|
573
|
-
"thinking": { "type": "disabled" },
|
|
574
|
-
"temperature": 1,
|
|
575
|
-
"top_p": 0.95
|
|
576
|
-
}
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
"id": "mimo-v2.5",
|
|
580
|
-
"name": "MiMo V2.5",
|
|
581
|
-
"url": "https://api.xiaomimimo.com/v1/chat/completions",
|
|
582
|
-
"toolCalling": true,
|
|
583
|
-
"vision": true,
|
|
584
|
-
"streaming": true,
|
|
585
|
-
"maxInputTokens": 1048576,
|
|
586
|
-
"maxOutputTokens": 32768,
|
|
587
|
-
"requestBody": {
|
|
588
|
-
"thinking": { "type": "disabled" },
|
|
589
|
-
"temperature": 1,
|
|
590
|
-
"top_p": 0.95
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"id": "mimo-v2-flash",
|
|
595
|
-
"name": "MiMo V2 Flash",
|
|
596
|
-
"url": "https://api.xiaomimimo.com/v1/chat/completions",
|
|
597
|
-
"toolCalling": true,
|
|
598
|
-
"vision": false,
|
|
599
|
-
"streaming": true,
|
|
600
|
-
"maxInputTokens": 262144,
|
|
601
|
-
"maxOutputTokens": 65536,
|
|
602
|
-
"requestBody": {
|
|
603
|
-
"thinking": { "type": "disabled" },
|
|
604
|
-
"temperature": 0.3,
|
|
605
|
-
"top_p": 0.95
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
]
|
|
609
|
-
}
|
|
81
|
+
npx copilot-custom-endpoint # Start both proxies
|
|
82
|
+
npx copilot-custom-endpoint kimi # Kimi only
|
|
83
|
+
npx copilot-custom-endpoint qwen # Qwen only
|
|
84
|
+
npx copilot-custom-endpoint clean # Remove debug_log/
|
|
610
85
|
```
|
|
611
86
|
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
- Open the Command Palette (`Ctrl+Shift+P`).
|
|
615
|
-
- Run **Chat: Manage Language Models**.
|
|
616
|
-
- Find the **MiMo** group, right-click it → **Update API Key**.
|
|
617
|
-
- Paste your MiMo API key.
|
|
618
|
-
|
|
619
|
-
> **Note:** `thinking: { "type": "disabled" }` is required for tool-calling stability. Without it, MiMo returns a 400 error when conversation history contains tool calls with missing `reasoning_content`.
|
|
620
|
-
|
|
621
|
-
#### 3. Chat!
|
|
622
|
-
|
|
623
|
-
- Open the Copilot chat panel (`Ctrl+Alt+I` / `Cmd+Ctrl+I`).
|
|
624
|
-
- Click the model picker (top-right of the chat input).
|
|
625
|
-
- Choose **MiMo V2 Flash** (fastest/cheapest), **MiMo V2.5** (omnimodal with vision), or **MiMo V2.5 Pro** (most capable for agentic work).
|
|
626
|
-
- Ask something. Streaming, tool use, and vision (V2.5) all work.
|
|
87
|
+
## Pricing snapshot
|
|
627
88
|
|
|
628
|
-
|
|
89
|
+
All prices are **USD per 1M tokens** (cache miss). 1 AI credit = $0.01.
|
|
629
90
|
|
|
630
|
-
|
|
|
631
|
-
|
|
|
632
|
-
|
|
|
633
|
-
|
|
|
91
|
+
| Model | Input | Output | Context |
|
|
92
|
+
| ---------------------------- | ----- | ------ | ------- |
|
|
93
|
+
| **MiMo V2 Flash** 🏆 | $0.10 | $0.30 | 256K |
|
|
94
|
+
| **DeepSeek V4 Flash** 🏆 | $0.14 | $0.28 | 1M |
|
|
95
|
+
| **Kimi K2.6** (non-thinking) | $0.16 | $0.95 | 256K |
|
|
96
|
+
| **MiMo V2.5** | $0.40 | $2.00 | 1M |
|
|
97
|
+
| **Qwen 3.6 Plus** | $0.50 | $3.00 | 1M |
|
|
98
|
+
| **MiniMax M3** | $0.60 | $2.40 | 1M |
|
|
99
|
+
| **MiMo V2.5 Pro** | $1.00 | $3.00 | 1M |
|
|
100
|
+
| **Qwen 3.7 Max** | $2.50 | $7.50 | 1M |
|
|
634
101
|
|
|
635
|
-
|
|
102
|
+
For the full pricing comparison (cached rates, full Copilot roster, footnotes, sources) 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).
|
|
636
103
|
|
|
637
|
-
|
|
104
|
+
## Need help?
|
|
638
105
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
### MiniMax M3 (MiniMax)
|
|
643
|
-
|
|
644
|
-
MiniMax works **directly** with the OpenAI-compatible Chat Completions endpoint — no proxy needed. The recommended config enables MiniMax's native reasoning via `thinking: { "type": "adaptive" }` + `reasoning_split: true`.
|
|
645
|
-
|
|
646
|
-
#### 1. Grab a MiniMax API key
|
|
647
|
-
|
|
648
|
-
Create an API key at the [MiniMax Developer Platform](https://platform.minimax.io/user-center/basic-information/interface-key).
|
|
649
|
-
|
|
650
|
-
> **Regional endpoints:** MiniMax offers endpoints for different regions. API keys are region-specific.
|
|
651
|
-
>
|
|
652
|
-
> - **International (default):** `https://api.minimax.io/v1/chat/completions`
|
|
653
|
-
> - **China:** `https://api.minimaxi.com/v1/chat/completions`
|
|
654
|
-
|
|
655
|
-
#### 2. Register the model in VS Code
|
|
656
|
-
|
|
657
|
-
First, open (or create) your user config file (see [Config file location](#config-file-location) above) and paste this entry (leave `apiKey` as empty string — you'll set it via the UI):
|
|
658
|
-
|
|
659
|
-
```json
|
|
660
|
-
{
|
|
661
|
-
"name": "MiniMax",
|
|
662
|
-
"vendor": "customendpoint",
|
|
663
|
-
"apiKey": "",
|
|
664
|
-
"apiType": "chat-completions",
|
|
665
|
-
"models": [
|
|
666
|
-
{
|
|
667
|
-
"id": "MiniMax-M3",
|
|
668
|
-
"name": "MiniMax M3",
|
|
669
|
-
"url": "https://api.minimax.io/v1/chat/completions",
|
|
670
|
-
"toolCalling": true,
|
|
671
|
-
"vision": true,
|
|
672
|
-
"streaming": true,
|
|
673
|
-
"maxInputTokens": 1048576,
|
|
674
|
-
"maxOutputTokens": 131072,
|
|
675
|
-
"requestBody": {
|
|
676
|
-
"thinking": { "type": "adaptive" },
|
|
677
|
-
"reasoning_split": true,
|
|
678
|
-
"temperature": 1,
|
|
679
|
-
"top_p": 0.95
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
]
|
|
683
|
-
}
|
|
684
|
-
```
|
|
685
|
-
|
|
686
|
-
Then set your MiniMax API key via the Language Models UI:
|
|
687
|
-
|
|
688
|
-
- Open the Command Palette (`Ctrl+Shift+P`).
|
|
689
|
-
- Run **Chat: Manage Language Models**.
|
|
690
|
-
- Find the **MiniMax** group, right-click it → **Update API Key**.
|
|
691
|
-
- Paste your MiniMax API key.
|
|
692
|
-
|
|
693
|
-
**Why this config?**
|
|
694
|
-
|
|
695
|
-
- `thinking: { "type": "adaptive" }` — MiniMax's documented default. The model decides when to reason.
|
|
696
|
-
- `reasoning_split: true` — the server returns reasoning in a structured `reasoning_details` field instead of mixing `<think>` tags into `content`. VS Code sees a clean OpenAI-format message.
|
|
697
|
-
|
|
698
|
-
> **Note:** `thinking: { "type": "disabled" }` is **not** a hard override — Phase 1 testing confirmed MiniMax-M3 still reasons internally regardless of this setting, and emits `<think>` tags in `content` either way. Setting it to `disabled` only changes the response field layout, not actual model behavior. We recommend `adaptive` for clarity.
|
|
699
|
-
|
|
700
|
-
#### 3. Chat!
|
|
701
|
-
|
|
702
|
-
- Open the Copilot chat panel (`Ctrl+Alt+I` / `Cmd+Ctrl+I`).
|
|
703
|
-
- Click the model picker and select **MiniMax M3**.
|
|
704
|
-
- Ask something. Plain chat, streaming, tool use, and vision all work.
|
|
705
|
-
|
|
706
|
-
#### Troubleshooting (MiniMax)
|
|
707
|
-
|
|
708
|
-
| Symptom | Fix |
|
|
709
|
-
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
710
|
-
| Model not appearing in picker | Check your `chatLanguageModels.json` syntax. Reload the VS Code window. |
|
|
711
|
-
| 400 on tool calls | Confirm the model ID is `MiniMax-M3` (capital M's, lowercase i, hyphen). Check the API key region. |
|
|
712
|
-
| Responses show leaked `<think>` tags | Make sure `"reasoning_split": true` is set in `requestBody` so reasoning goes to `reasoning_details` instead. |
|
|
713
|
-
|
|
714
|
-
</details>
|
|
715
|
-
|
|
716
|
-
---
|
|
717
|
-
|
|
718
|
-
For the full research notes, tested values, and known limitations, see:
|
|
719
|
-
|
|
720
|
-
- [`docs/models/kimi-k2.6.md`](docs/models/kimi-k2.6.md)
|
|
721
|
-
- [`docs/models/qwen.md`](docs/models/qwen.md)
|
|
722
|
-
- [`docs/models/mimo.md`](docs/models/mimo.md)
|
|
723
|
-
- [`docs/models/minimax.md`](docs/models/minimax.md)
|
|
724
|
-
|
|
725
|
-
## Pricing comparison
|
|
726
|
-
|
|
727
|
-
> **⏰ June 1, 2026 — GitHub Copilot switched to usage-based billing (AI Credits) today.**
|
|
728
|
-
>
|
|
729
|
-
> Before this change, Copilot used **premium request-based billing** — each model had its own multiplier (e.g., GPT-5.5 = 7.5×, Claude Sonnet 4.6 = 1×, Haiku 4.5 = 0.33×), and every request consumed `multiplier × 1` from your monthly premium-request allowance. Now **every interaction burns AI credits** based on actual token consumption. Agent mode and complex multi-file tasks consume significantly more tokens than simple Q&A, which means your 7,000 Pro+ credits can disappear fast if you're using frontier models.
|
|
730
|
-
>
|
|
731
|
-
> **The practical workaround:** use cheaper alternative models (DeepSeek V4 Flash, Kimi K2.6, Qwen) that are still powerful enough for coding — often at **5–55× less cost** than the Copilot defaults. The tables below show the exact comparison.
|
|
732
|
-
>
|
|
733
|
-
> 1 AI credit = $0.01 USD. All paid plans include a monthly credit allowance:
|
|
734
|
-
>
|
|
735
|
-
> | Plan | Price/mo | Base credits | Flex allotment | Total monthly |
|
|
736
|
-
> | ---- | -------- | ------------ | -------------- | ------------- |
|
|
737
|
-
> | Pro | $10 | 1,000 | 500 | **1,500** |
|
|
738
|
-
> | Pro+ | $39 | 3,900 | 3,100 | **7,000** |
|
|
739
|
-
> | Max | $100 | 10,000 | 10,000 | **20,000** |
|
|
740
|
-
>
|
|
741
|
-
> Code completions remain unlimited and **not** billed. Auto model selection gets a 10% discount.
|
|
742
|
-
|
|
743
|
-
All prices below are in **USD per 1M tokens** (non-cached). To convert to AI credits, multiply by 100 (e.g., $5.00/1M = 500 credits/1M).
|
|
744
|
-
|
|
745
|
-
### Default GitHub Copilot models
|
|
746
|
-
|
|
747
|
-
These are the models available through GitHub Copilot's model roster as of June 1, 2026.
|
|
748
|
-
|
|
749
|
-
| Model | Provider | Tier | Input (per 1M) | Cached input | Output (per 1M) | Context |
|
|
750
|
-
| --------------------- | --------- | ----------- | -------------- | ------------ | --------------- | ------- |
|
|
751
|
-
| **GPT-5.5** | OpenAI | Powerful | $5.00 | $0.50 | $30.00 | — |
|
|
752
|
-
| **Claude Opus 4.8** | Anthropic | Powerful | $5.00 | $0.50 | $25.00 | 1M |
|
|
753
|
-
| **Claude Opus 4.7** | Anthropic | Powerful | $5.00 | $0.50 | $25.00 | 1M |
|
|
754
|
-
| **GPT-5.4** | OpenAI | Versatile | $2.50 | $0.25 | $15.00 | — |
|
|
755
|
-
| **GPT-5.3-Codex** | OpenAI | Powerful | $1.75 | $0.175 | $14.00 | — |
|
|
756
|
-
| **Claude Sonnet 4.6** | Anthropic | Versatile | $3.00 | $0.30 | $15.00 | 1M |
|
|
757
|
-
| **Gemini 3.1 Pro** | Google | Powerful | $2.00¹ | $0.20 | $12.00¹ | 1M |
|
|
758
|
-
| **Claude Haiku 4.5** | Anthropic | Versatile | $1.00 | $0.10 | $5.00 | 1M |
|
|
759
|
-
| **Gemini 3.5 Flash** | Google | Lightweight | $1.50 | $0.15 | $9.00 | 1M |
|
|
760
|
-
| **Gemini 2.5 Pro** | Google | Powerful | $1.25¹ | $0.125 | $10.00¹ | 1M |
|
|
761
|
-
| **GPT-5.4 mini** | OpenAI | Lightweight | $0.75 | $0.075 | $4.50 | — |
|
|
762
|
-
| **Gemini 3 Flash** | Google | Lightweight | $0.50 | $0.05 | $3.00 | 1M |
|
|
763
|
-
| **Raptor mini** | GitHub | Versatile | $0.25 | $0.025 | $2.00 | — |
|
|
764
|
-
|
|
765
|
-
¹ Gemini 3.1 Pro and 2.5 Pro pricing applies to prompts ≤200K tokens.
|
|
766
|
-
|
|
767
|
-
### Custom-endpoint alternatives
|
|
768
|
-
|
|
769
|
-
| Model | Provider | Input (per 1M) | Output (per 1M) | Context window |
|
|
770
|
-
| --------------------- | --------- | ----------------------------- | --------------------------------------- | -------------- |
|
|
771
|
-
| **DeepSeek V4 Flash** | DeepSeek | $0.14 | $0.28 | 1M |
|
|
772
|
-
| **MiMo V2 Flash** 🏆 | Xiaomi | $0.10 | $0.30 | 256K |
|
|
773
|
-
| **Kimi K2.6** | Moonshot | $0.16 | $0.95 (non-thinking) / $4.00 (thinking) | 256K |
|
|
774
|
-
| **DeepSeek V4 Pro** | DeepSeek | $1.74 | $3.48 | 1M |
|
|
775
|
-
| **MiMo V2.5** | Xiaomi | $0.40 | $2.00 | 1M |
|
|
776
|
-
| **MiMo V2.5 Pro** | Xiaomi | $1.00 | $3.00 | 1M |
|
|
777
|
-
| **Qwen 3.6 Plus** | DashScope | $0.50 (≤256K) / $2.00 (>256K) | $3.00 (≤256K) / $6.00 (>256K) | 1M |
|
|
778
|
-
| **Qwen 3.7 Max** | DashScope | $2.50 (≤1M) | $7.50 (≤1M) | 1M |
|
|
779
|
-
| **MiniMax M3** | MiniMax | $0.60 (≤512K) / $1.20 (>512K) | $2.40 (≤512K) / $4.80 (>512K) | 1M |
|
|
780
|
-
|
|
781
|
-
> **Notes:**
|
|
782
|
-
>
|
|
783
|
-
> - **DeepSeek V4** input pricing shown is the **cache miss** price. Cache hits are significantly cheaper ($0.0028/M for Flash, $0.0145/M for Pro).
|
|
784
|
-
> - **MiMo** input pricing shown is the **cache miss** price. Cache hits are 5× cheaper for V2.5 Pro ($0.20/M) and V2.5 ($0.08/M), and 10× cheaper for V2 Flash ($0.01/M).
|
|
785
|
-
> - **Gemini 3 Flash** is priced at $0.50/MTok input (text/image/video) and $1.00/MTok input for audio.
|
|
786
|
-
> - **Anthropic (Claude)** models also have a cache write cost ($6.25/MTok for Opus, $3.75/MTok for Sonnet, $1.25/MTok for Haiku). Opus 4.7+ use a new tokenizer that may use up to 35% more tokens for the same text.
|
|
787
|
-
> - **OpenAI** models support cached input at 0.1× base input rate.
|
|
788
|
-
> - **Qwen** models use **tiered pricing** — determined by total input tokens per request. Prices above are for non-thinking mode.
|
|
789
|
-
> - **Kimi K2.6** pricing is from the **Moonshot platform** (direct). Via DashScope: $0.89 input / $3.71 output.
|
|
790
|
-
> - **DashScope** offers a **free quota** of 1M input + 1M output tokens per model, valid for 90 days.
|
|
791
|
-
> - **MiniMax M3** uses **tiered pricing** — input price doubles above 512K input tokens. A 7-day 50% off promotion is available for new accounts.
|
|
792
|
-
> - **MiMo** offers a **Token Plan** subscription model with discounted rates and a free cache-writing promotion.
|
|
793
|
-
> - For typical Copilot chat usage (short-to-medium prompts), you'll almost always fall in the lowest pricing tier.
|
|
794
|
-
|
|
795
|
-
**Quick cost comparison for a typical coding session** (~10K input + ~2K output tokens per turn, 50 turns):
|
|
796
|
-
|
|
797
|
-
| Model | Estimated session cost | Copilot Pro+ credits |
|
|
798
|
-
| ------------------------ | ---------------------- | -------------------- |
|
|
799
|
-
| MiMo V2 Flash 🏆 | ~$0.08 | — |
|
|
800
|
-
| DeepSeek V4 Flash 🏆 | ~$0.10 | — |
|
|
801
|
-
| Kimi K2.6 (non-thinking) | ~$0.18 | — |
|
|
802
|
-
| MiMo V2.5 | ~$0.40 | — |
|
|
803
|
-
| Kimi K2.6 (thinking) | ~$0.48 | — |
|
|
804
|
-
| Gemini 3 Flash | ~$0.55 | ~55 |
|
|
805
|
-
| Qwen 3.6 Plus | ~$0.55 | — |
|
|
806
|
-
| MiniMax M3 | ~$0.54 | — |
|
|
807
|
-
| MiMo V2.5 Pro | ~$0.80 | — |
|
|
808
|
-
| GPT-5.4 mini | ~$0.83 | ~83 |
|
|
809
|
-
| Claude Haiku 4.5 | ~$1.00 | ~100 |
|
|
810
|
-
| DeepSeek V4 Pro | ~$1.22 | — |
|
|
811
|
-
| Qwen 3.7 Max | ~$1.33 | — |
|
|
812
|
-
| Gemini 2.5 Pro | ~$1.63 | ~163 |
|
|
813
|
-
| Gemini 3.5 Flash | ~$1.65 | ~165 |
|
|
814
|
-
| Gemini 3.1 Pro | ~$2.20 | ~220 |
|
|
815
|
-
| GPT-5.3-Codex | ~$2.28 | ~228 |
|
|
816
|
-
| GPT-5.4 | ~$2.75 | ~275 |
|
|
817
|
-
| Claude Sonnet 4.6 | ~$3.00 | ~300 |
|
|
818
|
-
| Claude Opus 4.8 / 4.7 | ~$5.00 | ~500 |
|
|
819
|
-
| GPT-5.5 | ~$5.50 | ~550 |
|
|
820
|
-
|
|
821
|
-
> **How long does 7,000 credits last?** A Pro+ subscriber running 50-turn sessions could afford roughly **13 GPT-5.5 sessions**, **23 Opus sessions**, or **212 Raptor mini sessions** per month — or mix and match.
|
|
822
|
-
|
|
823
|
-
> Prices last verified: June 1, 2026. Always check the official pages for the latest rates:
|
|
824
|
-
>
|
|
825
|
-
> - [GitHub Copilot models & pricing](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing)
|
|
826
|
-
> - [OpenAI pricing](https://openai.com/api/pricing/)
|
|
827
|
-
> - [Anthropic (Claude) pricing](https://platform.claude.com/docs/en/about-claude/pricing)
|
|
828
|
-
> - [Google Gemini pricing](https://ai.google.dev/pricing)
|
|
829
|
-
> - [DashScope pricing](https://www.alibabacloud.com/help/en/model-studio/billing-for-model-studio)
|
|
830
|
-
> - [DeepSeek pricing](https://api-docs.deepseek.com/quick_start/pricing)
|
|
831
|
-
> - [MiMo pricing](https://platform.xiaomimimo.com/docs/en-US/pricing)
|
|
832
|
-
> - [MiniMax pricing](https://platform.minimax.io/docs/pricing/overview)
|
|
106
|
+
- **Per-model issues:** check the troubleshooting section at the bottom of each model's doc.
|
|
107
|
+
- **Repo questions / bugs:** open an issue on GitHub.
|
|
833
108
|
|
|
834
109
|
## Repo layout
|
|
835
110
|
|
|
836
111
|
```
|
|
837
112
|
.
|
|
838
|
-
├── docs/models/<provider>-<model>.md #
|
|
839
|
-
├── proxy/ # Local compatibility shims
|
|
840
|
-
├── tests/ # Test assets
|
|
113
|
+
├── docs/models/<provider>-<model>.md # Per-model setup guides (the real docs)
|
|
114
|
+
├── proxy/ # Local compatibility shims
|
|
115
|
+
├── tests/ # Test assets
|
|
841
116
|
└── debug_log/ # Runtime logs (git-ignored)
|
|
842
117
|
```
|
|
843
118
|
|
|
844
|
-
##
|
|
845
|
-
|
|
846
|
-
Want to validate Qwen, GLM, Mimo, or something else?
|
|
119
|
+
## Want to add a new model?
|
|
847
120
|
|
|
848
|
-
1. Create `docs/models/<provider>-<model>.md
|
|
849
|
-
2. If the provider needs request rewriting, add a proxy
|
|
850
|
-
3.
|
|
851
|
-
1. Summary
|
|
852
|
-
2. Compatibility assessment
|
|
853
|
-
3. Final working configuration
|
|
854
|
-
4. Validation summary
|
|
855
|
-
5. Known limitations
|
|
856
|
-
6. Final verdict
|
|
857
|
-
7. Sources
|
|
121
|
+
1. Create `docs/models/<provider>-<model>.md` with a clear walkthrough.
|
|
122
|
+
2. If the provider needs request rewriting, add a proxy under `proxy/`.
|
|
123
|
+
3. Submit a PR.
|
|
858
124
|
|
|
859
125
|
## Limitations
|
|
860
126
|
|
|
861
|
-
-
|
|
862
|
-
- Each proxy is tuned for a specific provider family. Don't point the Kimi proxy at an arbitrary OpenAI-compatible endpoint
|
|
863
|
-
|
|
864
|
-
---
|
|
127
|
+
- **Chat only.** Inline completions, semantic search, and next-edit suggestions still need a GitHub-hosted model.
|
|
128
|
+
- Each proxy is tuned for a specific provider family. Don't point the Kimi proxy at an arbitrary OpenAI-compatible endpoint.
|
|
865
129
|
|
|
866
130
|
## Support
|
|
867
131
|
|
|
868
|
-
If
|
|
132
|
+
If this helped, consider sponsoring or donating:
|
|
869
133
|
|
|
870
134
|
[](https://github.com/sponsors/tugudush)
|
|
871
135
|
|