copilot-custom-endpoint 1.7.5 → 1.8.1
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 +23 -3
- package/docs/example-config.md +2 -0
- package/docs/models/glm.md +2 -1
- package/docs/models/kimi.md +2 -1
- package/docs/models/mimo.md +2 -1
- package/docs/models/minimax.md +2 -1
- package/docs/models/qwen.md +4 -2
- package/docs/pricing.md +9 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,12 +8,13 @@ VS Code lets you add your own language-model endpoint via a small JSON config fi
|
|
|
8
8
|
|
|
9
9
|
If [OpenRouter](https://openrouter.ai) is blocked by your network or too generic for your model's quirks, this is the workaround.
|
|
10
10
|
|
|
11
|
-
## How it works (
|
|
11
|
+
## How it works (5 steps)
|
|
12
12
|
|
|
13
13
|
1. **Pick a model** from the table below.
|
|
14
14
|
2. **Add it to your VS Code config** — copy the snippet from the model's doc.
|
|
15
15
|
3. **Set the API key** through VS Code's UI (it goes to your OS keychain, not the file).
|
|
16
|
-
4. **Open
|
|
16
|
+
4. **Configure the Utility Small Model** — VS Code now requires a fast fallback model for built-in utility flows. Open Settings → search **"Chat: Utility Small Model"** → pick your fastest custom-endpoint model (or "Default" if you have native Copilot models available). Without this, chat may not function correctly.
|
|
17
|
+
5. **Open chat** and pick the model from the model picker.
|
|
17
18
|
|
|
18
19
|
That's it. No code, no servers to manage (unless the model specifically needs the local proxy — the table tells you).
|
|
19
20
|
|
|
@@ -58,7 +59,21 @@ Open the setup guide for the model you picked (links in the table above) and cop
|
|
|
58
59
|
3. Find your provider in the list, right-click the group name → **Update API Key**.
|
|
59
60
|
4. Paste your key. It's stored in your OS keychain.
|
|
60
61
|
|
|
61
|
-
### 4.
|
|
62
|
+
### 4. Configure the Utility Small Model
|
|
63
|
+
|
|
64
|
+
> **⚠️ Required for BYOK/custom-endpoint users.** VS Code's latest update mandates that you explicitly set which model handles built-in small/fast utility flows. Without this, custom-endpoint models may not function correctly in chat or agent mode.
|
|
65
|
+
|
|
66
|
+
1. Open VS Code Settings (`Ctrl+,` / `Cmd+,`).
|
|
67
|
+
2. Search for **"Chat: Utility Small Model"** (setting ID: `chat.lm.utilitySmallModel`).
|
|
68
|
+
3. Pick the **fastest, cheapest model** available to you from the dropdown. Good choices:
|
|
69
|
+
- **DeepSeek V4 Flash** — if you have the [DeepSeek V4 for Copilot Chat](https://marketplace.visualstudio.com/items?itemName=Vizards.deepseek-v4-for-copilot) extension installed (fastest, ~$0.10/session).
|
|
70
|
+
- **MiMo V2.5** — if you already have Xiaomi MiMo configured (cheapest custom-endpoint option, ~$0.10/session).
|
|
71
|
+
- **Default** — if you still have native Copilot model access, this lets VS Code use its built-in fast model.
|
|
72
|
+
4. The setting takes effect immediately — no restart needed.
|
|
73
|
+
|
|
74
|
+
> **Why this matters:** VS Code uses a small utility model for quick background tasks (token counting, prompt truncation, lightweight completions). When you switch to custom-endpoint models, the framework still needs a fast model for these utility flows. If left unset, some features may silently degrade or fail.
|
|
75
|
+
|
|
76
|
+
### 5. Chat
|
|
62
77
|
|
|
63
78
|
- Open Copilot chat (`Ctrl+Alt+I` / `Cmd+Ctrl+I`).
|
|
64
79
|
- Click the model picker (top-right).
|
|
@@ -106,17 +121,20 @@ All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To conve
|
|
|
106
121
|
| **Kimi K2.6** | Moonshot | **~$0.021** | **42.8** | ~$0.88 | ✅ | 262K |
|
|
107
122
|
| **Kimi K2.7 Code** | Moonshot | **~$0.021** | **42.0** | ~$0.88 | ✅ | 262K |
|
|
108
123
|
| **GPT-5.4 mini** | OpenAI | **~$0.021** | **40.0** | ~$0.83 | ❌ | 400K |
|
|
124
|
+
| **GPT-5.6 Luna** | OpenAI | **~$0.021** | **51.2** | ~$1.10 | ✅ | 1M |
|
|
109
125
|
| **GLM 5.2** | Z.ai | **~$0.022** | **51.0** | ~$1.14 | ❌ | 1M |
|
|
110
126
|
| **GLM 5.1** | Z.ai | **~$0.028** | **40.2** | ~$1.14 | ❌ | 200K |
|
|
111
127
|
| **GLM 5V Turbo** | Z.ai | **~$0.029** | **34.0** ³ | ~$1.00 | ✅ | 200K |
|
|
112
128
|
| **Gemini 3.5 Flash** | Google | **~$0.033** | **50.2** | ~$1.65 | ✅ | 1M |
|
|
113
129
|
| **Qwen 3.7 Max** | DashScope | **~$0.043** | **46.0** | ~$2.00 | ❌ | 1M |
|
|
114
130
|
| **Gemini 3.1 Pro** | Google | **~$0.047** | **46.5** | ~$2.20 | ✅ | 1M |
|
|
131
|
+
| **GPT-5.6 Terra** | OpenAI | **~$0.050** | **55.0** | ~$2.75 | ✅ | 1M |
|
|
115
132
|
| **GPT-5.4** | OpenAI | **~$0.054** | **51.4** | ~$2.75 | ✅ | 1M |
|
|
116
133
|
| **Claude Sonnet 5** ⁵ | Anthropic | **~$0.057** | **53.0** | ~$3.00 | ✅ | 1M |
|
|
117
134
|
| **Claude Sonnet 4.6** | Anthropic | **~$0.064** | **47.2** | ~$3.00 | ✅ | 1M |
|
|
118
135
|
| **Claude Opus 4.8** | Anthropic | **~$0.090** | **55.7** | ~$5.00 | ✅ | 1M |
|
|
119
136
|
| **Claude Opus 4.7** | Anthropic | **~$0.093** | **53.5** | ~$5.00 | ✅ | 1M |
|
|
137
|
+
| **GPT-5.6 Sol** | OpenAI | **~$0.093** | **58.9** | ~$5.50 | ✅ | 1M |
|
|
120
138
|
| **GPT-5.5** | OpenAI | **~$0.10** | **54.8** | ~$5.50 | ✅ | 1M |
|
|
121
139
|
| **Raptor mini** | GitHub | — | — | ~$0.33 | ❌ | 264K |
|
|
122
140
|
| **MAI-Code-1-Flash** ² | Microsoft | — | — | ~$0.83 | ❌ | — |
|
|
@@ -133,6 +151,8 @@ All prices are **USD per 1M tokens** (non-cached). 1 AI credit = $0.01. To conve
|
|
|
133
151
|
|
|
134
152
|
⁵ **Claude Sonnet 5** has introductory pricing of **$2.00 / $10.00** per MTok (input/output) through **August 31, 2026**. Standard pricing of $3.00 / $15.00 shown above takes effect September 1, 2026. Released June 30, 2026 — Arena rankings pending. AA Intelligence Index score of **53.0** confirmed by [Artificial Analysis](https://artificialanalysis.ai/models/claude-sonnet-5).
|
|
135
153
|
|
|
154
|
+
⁶ **GPT-5.6** launched July 9, 2026. Sol, Terra, and Luna cost $5/$30, $2.50/$15, and $1/$6 per 1M input/output tokens respectively; all support image input and 1M context. Benchmark details and cache-write pricing are maintained in [docs/pricing.md](docs/pricing.md).
|
|
155
|
+
|
|
136
156
|
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).
|
|
137
157
|
|
|
138
158
|
> **👤 Personal picks** —
|
package/docs/example-config.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Here's a complete, real-world `chatLanguageModels.json` that combines **the `customendpoint` providers from the live `chatLanguageModels.json`**, plus the additional GLM models (`glm-5.2`, `glm-5.1`) that are validated in [docs/models/glm.md](models/glm.md) but not present in every live config. Copy what you need, leave the rest out.
|
|
4
4
|
|
|
5
|
+
> **⚠️ Reminder:** After adding models, you must also configure the **Utility Small Model** setting in VS Code. Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). Without this, custom-endpoint models may not function correctly. See the [main README](../README.md#4-configure-the-utility-small-model) for details.
|
|
6
|
+
>
|
|
5
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.
|
|
6
8
|
>
|
|
7
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).
|
package/docs/models/glm.md
CHANGED
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
2. **Generate an API key** on the API Keys page of the platform.
|
|
44
44
|
3. **Edit `chatLanguageModels.json`** — add the GLM block below.
|
|
45
45
|
4. **Set the API key** via Command Palette → **Chat: Manage Language Models** → right-click **GLM** → **Update API Key**.
|
|
46
|
-
5. **
|
|
46
|
+
5. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
47
|
+
6. **Restart VS Code** and select a GLM model from the picker.
|
|
47
48
|
|
|
48
49
|
## Setup
|
|
49
50
|
|
package/docs/models/kimi.md
CHANGED
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
1. **Start the proxy** — `npm run proxy:kimi` (or `npx copilot-custom-endpoint kimi` standalone).
|
|
33
33
|
2. **Edit `chatLanguageModels.json`** — add the Kimi block below.
|
|
34
34
|
3. **Set your Moonshot API key** via Command Palette → **Chat: Manage Language Models**.
|
|
35
|
-
4. **
|
|
35
|
+
4. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
36
|
+
5. **Restart VS Code** and pick "Kimi K2.6" or "Kimi K2.7 Code".
|
|
36
37
|
|
|
37
38
|
## Setup
|
|
38
39
|
|
package/docs/models/mimo.md
CHANGED
|
@@ -57,7 +57,8 @@ Simplest no-proxy approach — but thinking is always off, so you never see mode
|
|
|
57
57
|
|
|
58
58
|
1. **Edit `chatLanguageModels.json`** — add the MiMo block(s) below.
|
|
59
59
|
2. **Set your `MIMO_API_KEY`** via Command Palette → **Chat: Manage Language Models**.
|
|
60
|
-
3. **
|
|
60
|
+
3. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
61
|
+
4. **Restart VS Code** and pick "MiMo V2.5 Pro" or "MiMo V2.5".
|
|
61
62
|
|
|
62
63
|
### Alternative: With optional proxy (dynamic thinking)
|
|
63
64
|
|
package/docs/models/minimax.md
CHANGED
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
|
|
39
39
|
1. **Edit `chatLanguageModels.json`** — add the MiniMax block below.
|
|
40
40
|
2. **Set your `MINIMAX_API_KEY`** via Command Palette → **Chat: Manage Language Models**.
|
|
41
|
-
3. **
|
|
41
|
+
3. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
42
|
+
4. **Restart VS Code** and pick "MiniMax M3" in the chat picker.
|
|
42
43
|
|
|
43
44
|
## Setup
|
|
44
45
|
|
package/docs/models/qwen.md
CHANGED
|
@@ -34,13 +34,15 @@
|
|
|
34
34
|
1. **Start the proxy:** `npm run proxy:qwen` (or `npx copilot-custom-endpoint qwen`).
|
|
35
35
|
2. **Use the proxy-path JSON snippet** below.
|
|
36
36
|
3. **Set your DashScope API key** via Command Palette → **Chat: Manage Language Models**.
|
|
37
|
-
4. **
|
|
37
|
+
4. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
38
|
+
5. **Restart VS Code.** Reasoning will be visible in plain chat and suppressed on tool turns.
|
|
38
39
|
|
|
39
40
|
### Direct (no proxy)
|
|
40
41
|
|
|
41
42
|
1. **Use the direct-path JSON snippet** below.
|
|
42
43
|
2. **Set your `DASHSCOPE_API_KEY`** via Command Palette → **Chat: Manage Language Models**.
|
|
43
|
-
3. **
|
|
44
|
+
3. **Configure the Utility Small Model** — Open Settings → search **"Chat: Utility Small Model"** → pick your fastest model (e.g., DeepSeek V4 Flash or MiMo V2.5). [Why?](../../README.md#4-configure-the-utility-small-model)
|
|
45
|
+
4. **Restart VS Code** and pick "Qwen 3.7 Plus" or "Qwen 3.7 Max".
|
|
44
46
|
|
|
45
47
|
## Setup
|
|
46
48
|
|
package/docs/pricing.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Pricing
|
|
2
2
|
|
|
3
|
+
> **Updated:** July 12, 2026 — GPT-5.6 Sol, Terra, and Luna pricing and benchmark scores added from OpenAI's July 9 release announcement and Artificial Analysis model pages.
|
|
4
|
+
|
|
3
5
|
> **⏰ June 1, 2026 — GitHub Copilot switched to usage-based billing (AI Credits) today.**
|
|
4
6
|
>
|
|
5
7
|
> 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.
|
|
@@ -33,6 +35,7 @@ All models are listed together below, sorted by Cost per intelligence ascending
|
|
|
33
35
|
| **Kimi K2.6** | Moonshot | **~$0.021** | **42.8** | $0.95 | $0.16 | $4.00 | ~$0.88 | 256K |
|
|
34
36
|
| **Kimi K2.7 Code** | Moonshot | **~$0.021** | **42.0** | $0.95 | $0.19 | $4.00 | ~$0.88 | 262K |
|
|
35
37
|
| **GPT-5.4 mini** | OpenAI | **~$0.021** | **40.0** | $0.75 | $0.075 | $4.50 | ~$0.83 | 400K |
|
|
38
|
+
| **GPT-5.6 Luna** | OpenAI | **~$0.021** | **51.2** | $1.00 | $0.10 | $6.00 | ~$1.10 | 1M |
|
|
36
39
|
| **GLM 5.2** ⁴ | Z.ai | **~$0.022** | **51.0** | $1.40 | $0.26 | $4.40 | ~$1.14 | 1M |
|
|
37
40
|
| **GLM 5.1** | Z.ai | **~$0.028** | **40.2** | $1.40 | $0.26 | $4.40 | ~$1.14 | 200K |
|
|
38
41
|
| **GLM 5V Turbo** | Z.ai | **~$0.029** | **34.0** ³ | $1.20 | $0.24 | $4.00 | ~$1.00 | 200K |
|
|
@@ -40,11 +43,13 @@ All models are listed together below, sorted by Cost per intelligence ascending
|
|
|
40
43
|
| **Qwen 3.7 Max** | DashScope | **~$0.043** | **46.0** | $2.50 (≤1M) | — | $7.50 (≤1M) | ~$2.00 | 1M |
|
|
41
44
|
| **Gemini 3.1 Pro** | Google | **~$0.047** | **46.5** | $2.00¹ | $0.20 | $12.00¹ | ~$2.20 | 1M |
|
|
42
45
|
| **GPT-5.3-Codex** | OpenAI | **~$0.052** | **44.0** ³ | $1.75 | $0.175 | $14.00 | ~$2.28 | 400K |
|
|
46
|
+
| **GPT-5.6 Terra** | OpenAI | **~$0.050** | **55.0** | $2.50 | $0.25 | $15.00 | ~$2.75 | 1M |
|
|
43
47
|
| **GPT-5.4** | OpenAI | **~$0.054** | **51.4** | $2.50 | $0.25 | $15.00 | ~$2.75 | 1M |
|
|
44
48
|
| **Claude Sonnet 5** ⁶ | Anthropic | **~$0.057** | **53.0** | $3.00 | $0.30 | $15.00 | ~$3.00 | 1M |
|
|
45
49
|
| **Claude Sonnet 4.6** | Anthropic | **~$0.064** | **47.2** | $3.00 | $0.30 | $15.00 | ~$3.00 | 1M |
|
|
46
50
|
| **Claude Opus 4.8** | Anthropic | **~$0.090** | **55.7** | $5.00 | $0.50 | $25.00 | ~$5.00 | 1M |
|
|
47
51
|
| **Claude Opus 4.7** | Anthropic | **~$0.093** | **53.5** | $5.00 | $0.50 | $25.00 | ~$5.00 | 1M |
|
|
52
|
+
| **GPT-5.6 Sol** | OpenAI | **~$0.093** | **58.9** | $5.00 | $0.50 | $30.00 | ~$5.50 | 1M |
|
|
48
53
|
| **GPT-5.5** | OpenAI | **~$0.10** | **54.8** | $5.00 | $0.50 | $30.00 | ~$5.50 | 1M |
|
|
49
54
|
| **Raptor mini** | GitHub | — | — | $0.25 | $0.025 | $2.00 | ~$0.33 | 264K |
|
|
50
55
|
| **MAI-Code-1-Flash** ² | Microsoft | — | — | $0.75 | $0.075 | $4.50 | ~$0.83 | — |
|
|
@@ -62,6 +67,8 @@ All models are listed together below, sorted by Cost per intelligence ascending
|
|
|
62
67
|
|
|
63
68
|
⁶ **Claude Sonnet 5** has introductory pricing of **$2.00 / $0.20 / $10.00** (input / cached / output) through **August 31, 2026**, after which the standard pricing of $3.00 / $0.30 / $15.00 shown above takes effect. See [Anthropic's pricing page](https://claude.com/pricing) for the latest.
|
|
64
69
|
|
|
70
|
+
⁷ **GPT-5.6** pricing is **$1.00 / $0.10 / $6.00** for Luna, **$2.50 / $0.25 / $15.00** for Terra, and **$5.00 / $0.50 / $30.00** for Sol (input / cached input / output per 1M tokens). OpenAI bills cache writes at 1.25x the uncached input rate for GPT-5.6 and later. All three tiers have a 1M-token context window and support text + image input. See [OpenAI's GPT-5.6 announcement](https://openai.com/index/gpt-5-6/) and the [Artificial Analysis model pages](https://artificialanalysis.ai/models/gpt-5-6-sol).
|
|
71
|
+
|
|
65
72
|
Cost per intelligence = estimated session cost ÷ Intelligence Index score. Session cost assumes ~10K input + ~2K output tokens per turn, 50 turns.
|
|
66
73
|
|
|
67
74
|
> **Notes:**
|
|
@@ -84,11 +91,12 @@ Cost per intelligence = estimated session cost ÷ Intelligence Index score. Sess
|
|
|
84
91
|
|
|
85
92
|
> **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. (Multiply session cost by 100 to convert to AI credits.)
|
|
86
93
|
|
|
87
|
-
> Prices last verified: July
|
|
94
|
+
> Prices last verified: July 12, 2026. Always check the official pages for the latest rates:
|
|
88
95
|
>
|
|
89
96
|
> - [GitHub Copilot models & pricing](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing)
|
|
90
97
|
> - [Microsoft MAI-Code-1-Flash model card](https://docs.github.com/en/copilot/reference/ai-models/model-comparison#task-general-purpose-coding-and-writing)
|
|
91
98
|
> - [OpenAI pricing](https://openai.com/api/pricing/)
|
|
99
|
+
> - [OpenAI GPT-5.6 announcement](https://openai.com/index/gpt-5-6/)
|
|
92
100
|
> - [Anthropic (Claude) pricing](https://platform.claude.com/docs/en/about-claude/pricing)
|
|
93
101
|
> - [Google Gemini pricing](https://ai.google.dev/pricing)
|
|
94
102
|
> - [DashScope pricing](https://www.alibabacloud.com/help/en/model-studio/billing-for-model-studio)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilot-custom-endpoint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
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
|
+
}
|