Developer workstation connected to local, hosted, and cloud AI model servers.

Visual Studio 18.12 can connect developers to models from several endpoint types.

Microsoft made Bring Your Own Model, or BYOM, generally available in Visual Studio 18.12 on November 11, 2026. The feature lets developers connect selected cloud, company-hosted, or local AI models to Visual Studio Chat and Agent Mode without leaving the IDE, and it does not require a GitHub sign-in. Microsoft announced the release in a Visual Studio Blog post by Praveen Sethuraman, a principal software engineering manager on the Visual Studio Copilot team.

Key takeaways

  • BYOM is generally available in Visual Studio 18.12, after appearing in preview in August 2026.

  • Developers can configure Microsoft Foundry, OpenAI, Anthropic, Ollama, or a Custom Endpoint from the Chat model picker.

  • The new Custom Endpoint option supports OpenAI-compatible services and locally served models from LM Studio.

  • You can save multiple connections for one provider, such as separate work and personal accounts.

  • Administrators can enable or disable BYOM through organizational policy.

What Visual Studio BYOM means for beginners

BYOM means you choose which AI model endpoint Visual Studio uses for supported chat and agent tasks. An endpoint is simply the network address where an AI service is available. It could be a public service you access with an API key, a model deployment approved by your company, or a model server running on your own computer.

This does not mean Visual Studio includes every model or makes external models free. You still need access to the model you choose, including any account, API key, model download, hardware, or provider billing that model requires. Microsoft’s announcement does not list a separate price for BYOM itself.

For a new developer, the practical benefit is choice. A personal project might use an API key from a model provider. A company project might use a Microsoft Foundry deployment or an internal gateway. A developer testing local AI can point Visual Studio to a model server on the same machine.

What changed in Visual Studio 18.12

The general availability release adds setup options that were not part of the original BYOM preview. Microsoft says the changes came from feedback about personal projects, team deployments, and enterprise network environments.

Capability

What it does

Why it matters

Multiple provider connections

Saves more than one configuration for the same provider and lets you name each one.

You can keep separate work, personal, test, or production connections.

Custom Endpoint

Adds a dedicated setup path for compatible external, self-hosted, and local services.

You can connect an organization’s AI gateway or a local model server.

API format selection

Lets you choose OpenAI-compatible Completions, OpenAI-compatible Responses, or Anthropic-compatible Messages.

The request format can match the service your model endpoint supports.

Model capability settings

Lets you set context size, maximum output, tool calling, and vision support.

Agent Mode can be configured around the capabilities of the selected model.

Proxy and policy support

Uses Visual Studio’s resolved proxy settings and supports administrator controls.

The feature can fit more corporate network and governance setups.

Visual Studio 2026 release notes also describe the updated model-management experience, including API-format choices and multiple provider connections. The release notes place these controls in Copilot Chat model management, where developers manage the models they bring to the IDE. Microsoft’s Visual Studio 2026 release notes list the related 18.12 changes.

How to set up your first model in Visual Studio

Microsoft’s setup path starts in the Chat window. First, install Visual Studio 18.12 GA. Then open Chat, open the model picker, and select Manage models.

  1. Select Add model provider.

  2. Choose Microsoft Foundry, OpenAI, Anthropic, Ollama, or Custom Endpoint.

  3. Enter the connection details required by that provider, such as an endpoint URL and API key.

  4. Give the connection a clear name, such as Work, Personal, Test, or Local.

  5. Add the model or models you want to use.

  6. Select one of those models, then use it in Agent Mode.

If the Add model provider command does not appear, Microsoft says an organization administrator may have disabled BYOM. That is expected behavior for developers using a managed work device or company Visual Studio installation.

Using a local model through Custom Endpoint

A Custom Endpoint can connect Visual Studio to a locally served model.

The Custom Endpoint provider is the main new path for developers who do not connect directly to a public model vendor. Microsoft says it supports OpenAI-compatible services, including OpenRouter, self-hosted inference servers, AI gateways, and endpoints supplied by an organization.

For local development, Microsoft specifically calls out LM Studio. A developer starts LM Studio’s local server, then adds its OpenAI-compatible URL through Custom Endpoint in Visual Studio. LM Studio documents that its local server can expose OpenAI-compatible endpoints, including Completions and Responses, which is why it can fit this setup. LM Studio’s OpenAI compatibility documentation describes the available endpoint types.

A local model can be useful when you are learning, testing an internal workflow, or working in an environment where the model endpoint must stay on your machine or local network. But a local setup also depends on your hardware, the model you downloaded, and whether that model supports the agent features you enable.

Choose the API format and capabilities carefully

Visual Studio 18.12 lets you select an API format for a custom model. The available choices are OpenAI-compatible Completions, OpenAI-compatible Responses, and Anthropic-compatible Messages. This setting matters because the endpoint must understand the request format Visual Studio sends.

Developers can also configure context size, maximum output, tool calling, and vision support. Context size is the amount of information the model can consider in a request. Maximum output limits how much text the model can return. Tool calling lets a model request actions through supported tools, while vision support lets a model work with image input where available.

These controls do not add missing capabilities to a model. They describe the model and deployment that you have connected. If a model does not support tool calling or vision, those settings should not be enabled just because Visual Studio shows the option.

What enterprise teams need to know

Microsoft updated proxy handling so both provider connections and Agent Mode use Visual Studio’s resolved proxy configuration. That can help teams that route developer traffic through a company proxy instead of allowing direct internet connections.

The release also supports organizational policy controls. Administrators can enable or disable BYOM, so individual developers should check their team’s AI and source-code policies before entering an API key or adding an endpoint. Microsoft says BYOM can work without GitHub access, including with local or internally hosted models in air-gapped environments, as long as the endpoint is reachable and its authentication requirements are met.

Based on reporting by Visual Studio Blog, Microsoft Learn and LM Studio.