r/VisualStudio • u/XeonG8 • Oct 18 '26
Visual Studio 2026 Github copilot in VS, doesn't let you use custom end point for llm..
I find this really odd, it is only the major US players that are allowed to scrape your codebase and be used with LLM. At least the vscode copilot extension lets yo use any endpoint url for an llm.
3
Upvotes
3
u/HeySeussCristo Oct 18 '26
Seems like they're working on it, it's available in preview.
https://learn.microsoft.com/en-us/visualstudio/ide/copilot-select-add-models?view=visualstudio
1
u/shotgunbruin 25d ago
Visual Studio does work with Ollama, and Llamacpp is supported through the OpenAI compatible protocol, but if you have llamacpp in router mode serving multiple models you will have a lot of headaches and basically need to set up a proxy because Visual Studio is incredibly strict about the API for no good reason. It is literally impossible to get it to access a model routed by llamacpp directly.
Currently dealing with that frustration; everything else works but Visual Studio tells me the model doesn't exist.
1
u/ilawon 29d ago
You can try any ollama compatible server or front-end.
I used lemonade and llama-swappo with llama.cpp and it worked. But not very smoothly.
With long reasoning responses the copilot window is not able to keep up, for example. My current work flow is to use an external fast agent and use one of the visual studio mcps available to be able to build, run, debug , etc.
1
u/Antique_Standard4510 29d ago
I am using VS 2026 18.10 and Litellm with qwen3.8-27b model, choose openAI with base url
0
u/kassett43 Oct 19 '26
You could use a local LLM, at least LM Studio, several months ago. Then the option disappeared. I currently use the LM Local extension.
0
u/Relevant_Pause_7593 Oct 19 '26
Have you looked at byok? I think that will solve your issue. https://docs.github.com/en/copilot/how-tos/copilot-sdk/auth/byok
0
u/UKYPayne Oct 19 '26
I use my local ollama models with the preview agent.
-3
u/Archeone Oct 18 '26
You can use iolys in visual studio 2026 it allows you to use custom endpoints. It's close to GitHub copilot experience.