You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use copilot with local models completely offline #246551
Reacted by rmarker, Nico, trymeouteh, okamototk, Hajime Osako, Cpt.Nemo, zznyanth2, Marvin Terme, kohei5558, QooTaRoo and 219 more
Reacted by kotborealis, okamototk, Nicholas Bucher, Roscoe A. Bartlett, mryo0826, accendium., Shauna Gordon, Dmitry Kanarsky, Cemlyn Waters, YuTony and 7 more
Reacted by Morgan Marshall, jijjijj, TheRoboxx, Felix Orosz and Jesus T.G.
Reacted by Morgan Marshall, Jakub Kościelny, Jesus T.G. and Michael Friis
For super confidencial project such as fsi, national defence or goverment project, we often can't allow to access public internet service. Also I heard some automotive projects around Europe have similllar situation.
If vscode support offline with ollama completely, it could be big help for such projects.
Reacted by trymeouteh, Marvin Terme, TW-Ogawa, yuisheaven, Nicholas Bucher, Tim Dawson, alanspires, Roscoe A. Bartlett, Riaje, Kim Yu Ng and 56 more
Reacted by Roscoe A. Bartlett, accendium., mayuneco, muyiyi, Morgan Marshall and Jesus T.G.
Reacted by trymeouteh, TW-Ogawa, Sergio Martinez Hamdoun, Nicholas Bucher, alanspires, Roscoe A. Bartlett, Riaje, accendium., eyalatox, Jozsef Ottucsak and 12 more
Would like to be able to use the ai features in VSCode with ollama or other AI providers without needing a Github account
Reacted by JINGHAN YU, trymeouteh, Marvin Terme, TW-Ogawa, Sergio Martinez Hamdoun, Takanao Watanabe, Nicholas Bucher, alanspires, Roscoe A. Bartlett, c0h1b4 and 18 more
Copilot shouldn't be built into VS Code to begin with. Dev's should have a choice which AI to integrate with through extensions (like with everything else). That would solve all privacy issues as well.
Reacted by Nicholas Bucher, Tim Dawson, alanspires, Riaje, Vince Hehlen, eyalatox, Shauna Gordon, Jozsef Ottucsak, Mikkel Quist Voorma, casurin and 5 more
This looks like it's from the Copilot Free session rate-limit counter sourced from CAPI's x-usage-ratelimit-session header, surfaced because the user is signed into Copilot Free; the BYOK provider isn't the source.
Even when chat completions go through their BYOK provider (GLM-5.1-Coding), other Copilot-backed calls still hit CAPI with their Copilot token — e.g., model/metadata listing, embeddings, the auxiliary "summarization/small" model, etc. Those CAPI responses carry the quota + x-usage-ratelimit-session headers, which feed this notification.
This looks like it's from the Copilot Free session rate-limit counter sourced from CAPI's x-usage-ratelimit-session header, surfaced because the user is signed into Copilot Free; the BYOK provider isn't the source.
Even when chat completions go through their BYOK provider (GLM-5.1-Coding), other Copilot-backed calls still hit CAPI with their Copilot token — e.g., model/metadata listing, embeddings, the auxiliary "summarization/small" model, etc. Those CAPI responses carry the quota + x-usage-ratelimit-session headers, which feed this notification.
Thanks for the prompt reply. I think the user prompt here could be more clear.
Jun Liu (@junliu-mde) You could also override the utility models to point them at the same BYOK using chat.utilityModel and chat.utilityModelSmall settings.
Huge thanks for implementing this feature. I tried to use it with "chat.allowAnonymousAccess": false so that copilot do not perform any request upstream. However I noticed this one irritating issue. When running new chat, it makes 4 calls to provider, as shown in the debugger view:
There one request is the chat message itself, title (meh, but ok) and 2(!) requests for generating buzzword to show to user while response is generating. All these requests are sent in parallel. So I have 2 questions: 1. why there 2 identical requests are sent. 2. How can these utility requests can be disabled, because I can only run single LLM on my ollama and 4 parallel requests are executed sequentially resulting in answer appears far too late - each chat have a 2 minute cooldown to start.
Igor Mahov (@Igorgro) If you are signed out, set chat.allowAnonoymouseAccess to false and keep chat.utilityModel and chat.utilityModelSmall to Default it will not make any utility calls. However, that will turn off a lot more things than title updates.
We are discussing providing more control over individual utility operations, but those 2 settings is what you have right now.
I suggest you open new issue(s) for the concerns above.
Dmitriy Vasyura (@dmitrivMS) Yes, I agree that this is not a good solution. I definitely don't want to lose functionality provided by these models. Being able to just disable buzzword generation will be a good solution. However, I have an idea on how this can be implemented in other way. The base problem here is that to use chat itself I should load ollama model with sufficient context size (40k+). However Copilot Ollama provider does not provide (or I didn't find it in docs) to set num_ctx param for each model separately. So I'm now setting global param via OLLAMA_CONTEXT_LENGTH server env variable. However it will result in the inability to load second small utility model because it will be loaded with same redundantly big context (according to debug view small generations take less than 1000 tokens). So implementing per-model context size param can be a possible solution. I can file this as a separate issue
Just one question, will inline suggestion work with local models?. i.e. there is no quota in anony mode?
Inline suggestions (aka code complete) isn't meant to work as those are custom-trained models and are no longer compatible with chatcompletion-based models.
Inline code completions/autocomplete/code completions are to be routed to the local models
Activity
okamototk commentedon Apr 17, 2025
For super confidencial project such as fsi, national defence or goverment project, we often can't allow to access public internet service. Also I heard some automotive projects around Europe have similllar situation.
If vscode support offline with ollama completely, it could be big help for such projects.
334456777 commentedon May 18, 2025
The same as me
trymeouteh commentedon May 29, 2025
Would like to be able to use the ai features in VSCode with ollama or other AI providers without needing a Github account
ak99372 commentedon Jun 25, 2025
Copilot shouldn't be built into VS Code to begin with. Dev's should have a choice which AI to integrate with through extensions (like with everything else). That would solve all privacy issues as well.
64 remaining items
dmitrivMS commentedon May 22, 2026
Vijay Upadya (@vijayupadya) Could you comment?
vijayupadya commentedon May 22, 2026
This looks like it's from the Copilot Free session rate-limit counter sourced from CAPI's x-usage-ratelimit-session header, surfaced because the user is signed into Copilot Free; the BYOK provider isn't the source.
Even when chat completions go through their BYOK provider (GLM-5.1-Coding), other Copilot-backed calls still hit CAPI with their Copilot token — e.g., model/metadata listing, embeddings, the auxiliary "summarization/small" model, etc. Those CAPI responses carry the quota + x-usage-ratelimit-session headers, which feed this notification.
junliu-mde commentedon May 22, 2026
Thanks for the prompt reply. I think the user prompt here could be more clear.
dmitrivMS commentedon May 22, 2026
Jun Liu (@junliu-mde) You could also override the utility models to point them at the same BYOK using chat.utilityModel and chat.utilityModelSmall settings.
Igorgro commentedon May 22, 2026
Huge thanks for implementing this feature. I tried to use it with
"chat.allowAnonymousAccess": falseso that copilot do not perform any request upstream. However I noticed this one irritating issue. When running new chat, it makes 4 calls to provider, as shown in the debugger view:There one request is the chat message itself, title (meh, but ok) and 2(!) requests for generating buzzword to show to user while response is generating. All these requests are sent in parallel. So I have 2 questions: 1. why there 2 identical requests are sent. 2. How can these utility requests can be disabled, because I can only run single LLM on my ollama and 4 parallel requests are executed sequentially resulting in answer appears far too late - each chat have a 2 minute cooldown to start.
dmitrivMS commentedon May 22, 2026
Igor Mahov (@Igorgro) If you are signed out, set
chat.allowAnonoymouseAccesstofalseand keepchat.utilityModelandchat.utilityModelSmalltoDefaultit will not make any utility calls. However, that will turn off a lot more things than title updates.We are discussing providing more control over individual utility operations, but those 2 settings is what you have right now.
I suggest you open new issue(s) for the concerns above.
Vritant Bhardwaj (@vritant24) FYI
Igorgro commentedon May 22, 2026
Dmitriy Vasyura (@dmitrivMS) Yes, I agree that this is not a good solution. I definitely don't want to lose functionality provided by these models. Being able to just disable buzzword generation will be a good solution. However, I have an idea on how this can be implemented in other way. The base problem here is that to use chat itself I should load ollama model with sufficient context size (40k+). However Copilot Ollama provider does not provide (or I didn't find it in docs) to set num_ctx param for each model separately. So I'm now setting global param via OLLAMA_CONTEXT_LENGTH server env variable. However it will result in the inability to load second small utility model because it will be loaded with same redundantly big context (according to debug view small generations take less than 1000 tokens). So implementing per-model context size param can be a possible solution. I can file this as a separate issue
MorganMarshall commentedon May 23, 2026
Inline code completions/autocomplete/code completions are to be routed to the local models
bartlettroscoe commentedon May 23, 2026
Is it not possible to just call llama-swap/llama-server as the model inference server? That way, you can customize each model any way you want.
MattTheCuber commentedon Jun 10, 2026
Is there an issue tracking adding a feature for supporting inline suggestions (code completion) with BYOK (local models)?
dmitrivMS commentedon Jun 10, 2026
Matthew Vine (@MattTheCuber) #318545
MattTheCuber commentedon Jun 10, 2026
Thank you!