November 11th, 2026
heartlikecelebrate6 reactions

Bring Your Own Model is now generally available in Visual Studio

Principal Software Engineering Manager

Whether your team hosts its own AI models, you have an API key from a model provider, or you want to experiment with a model running on your machine, Bring Your Own Model (BYOM) lets you use those models without leaving Visual Studio.

BYOM is now generally available in Visual Studio 18.12. Since the August Preview, your feedback has shaped improvements for team deployments, enterprise networks, and personal projects. This release brings multiple configurations for the same provider, a dedicated custom-endpoint experience that includes local models, more control over API compatibility, and improved proxy support.

No GitHub sign-in is required. If you can’t access GitHub, you can still use your chosen models in Visual Studio—including local or internally hosted models in air-gapped environments—provided the model endpoint is reachable and its authentication requirements are met.

More than one connection to the same provider

Your work doesn’t always fit into a single provider configuration. You might use one account for personal projects and another for work, connect to separate Microsoft Foundry resources, or keep an experimental deployment alongside your team’s approved endpoint.

You can now keep multiple configurations for the same provider and give them meaningful names, such as “Work” and “Personal.” Each keeps its own connection details and models, so you can choose the right setup without removing and re-adding a provider.

A clearer path to custom endpoints

Many developers don’t connect directly to a model vendor’s public endpoint. You might use a self-hosted inference server, an AI gateway, or an endpoint provided by your organization.

The new Custom Endpoint provider gives OpenAI-compatible services, including OpenRouter, their own place in provider configuration. Enter your endpoint URL and an API key if required. Where the endpoint provides a compatible model listing, Visual Studio can surface the models it returns.

You can also connect to local models served by LM Studio. Start the local server, then add its OpenAI-compatible URL using Custom Endpoint to use your model in Visual Studio’s Agent Mode.

CustomEndpoint image

Match the API to your model

When adding a custom model, you can now select the API format supported by your provider: OpenAI-compatible Completions or Responses, or Anthropic-compatible Messages. You can also view and change the configured format in Manage models

ModelAPI2 image

You can also configure context size, maximum output, tool calling, and vision support to match your model and deployment.

Better suited to enterprise environments

For organizations, model choice needs to work with existing network settings and policies.

We’ve improved proxy support so provider connections and Agent Mode both use Visual Studio’s resolved proxy configuration.

Administrators can enable or disable BYOM through organizational policy.

Getting Started

Try BYOM in Visual Studio:

  1. Install Visual Studio 18.12 GA.
  2. Open Chat and use the model picker to choose Manage models.
  3. Choose Add model provider, then select Microsoft Foundry, OpenAI, Anthropic, Ollama, or Custom Endpoint.
  4. Configure the connection, give it a meaningful name, and add the models you want to use.
  5. Select your model and start working in Agent Mode.

Note: If you don’t see Add model provider, your organization’s administrator may have disabled bring-your-own-model access.

Keep shaping what comes next

We’re continuing to learn from the models, deployments, and environments you use. Tell us what’s working, where setup still gets in your way, and what would make BYOM more useful through the Developer Community forum or our short survey.

Your feedback is helping shape what comes next. Happy coding!

Author

Praveen Sethuraman
Principal Software Engineering Manager

Praveen Sethuraman is an Engineering Manager at Microsoft working on the Visual Studio Copilot team. He also leads security for Visual Studio.

2 comments

Sort by :
  • Albert Khoroshun 1 hour ago

    Where can I choose effort a.k.a thinking? I can choose it in embedded models from options like “none”, “low”, “medium (default)”, “high”. I can choose it in VS code.

  • Rolf van Kuijen · Edited

    Greet that it is starting to shape, but you have to look into common models out there and the options that can be configured in the ConfiguredBringYourOwnModel_v2.json, or have the schema somewhere, some very basic needed things are not working.

    With BYOM you need to be able to configure following in the ConfiguredBringYourOwnModel_v2.json:
    - apiType
    - contextWindow
    - modelOptions with temperature and top_p
    - requestHeaders
    - statefulResponse

    VSCode also has these because otherwise there are problems with custom models: https://code.visualstudio.com/docs/agent-customization/language-models#_add-a-custom-endpoint-model
    Without these a lot of BYOM will not work or only partially and thus it is very limiting. (especially the modelOptions!)

    Example...

    Read more