August 20th, 2025
celebrateheart3 reactions

Bring Your Own Model to Chat in Visual Studio

We’re excited to announce that you can now bring your own language model into Visual Studio Chat.

You can connect API keys from providers (OpenAI, Anthropic, and Google) to access a wider range of models. This makes it easy to test the latest releases, customize workflows, or run on infrastructure you control.

What it unlocks

  • Choice – Access more than just the built-in defaults, and try new models the moment they drop.
  • Customization – Pick models that align with your security, infra, or performance needs.
  • Control – Manage usage, quotas, and billing directly with your provider.
  • Flexibility – Switch seamlessly between Copilot’s built-in models and your own.

Getting started

If you already have an API key from OpenAI, Anthropic, or Google, setup takes just a minute:

  1. Open the Chat Window in Visual Studio.
  2. Select Manage Models from the model picker.
  3. Choose your provider and paste your API key.
  4. Pick from the preset list, or enter a model name.
  5. That’s it—your model will now show up in the picker.

This feature is not currently available for Copilot Business or Copilot Enterprise users.

A few important considerations:

  • This feature currently applies only to Chat in Visual Studio (not completions, commit messages, or other AI features).
  • Model capabilities vary—some may not support advanced features like tool use or vision inputs.
  • Certain services (embeddings, repo indexing, intent detection) will still run through Copilot’s API.
  • Output from third-party models comes directly from the provider and may not pass through Copilot’s responsible AI filters.

This is just the beginning. We’re expanding support for additional model providers soon, and we look forward to seeing how you use this feature and which models you choose.

Author

Rhea Patel
Product Manager
Samruddhi Khandale
Software Engineer II

9 comments

Sort by :
  • James Tsai 2 weeks ago · Edited

    When will this feature support Azure OpenAI / Azure AI Foundry?

  • 治臻 李

    Hello,
    I am using VS2022 too.And can I use the API Key from DeepSeek?I need to use it,and I’m a Chinese

    • James Tsai 6 days ago

      So far, this feature only supports the following providers: Anthropic, Google, and OpenAI.

    • 治臻 李

      I haven’t bought Copilot,can I use it?

  • Jaweed Saleem

    Hi,

    I’m using Microsoft Visual Studio Community 2022 (64-bit) – Current and updated to the latest Version 17.14.13 (August 2025) and there’s not a “Manage Models” options in Chat with “ask”. Just a small list of models.

    • Jaweed Saleem

      FYI everyone, I wasn’t using CoPilot Business or Copilot Enterprise, just the VS Community and GitHub CoPilot free version and wanted to bring my paid Claude model.

      Anyway, it works. I had to restart VS twice after updating to the latest version and “Manage Models” is there now.

    • Yannick Hanegreefs

      Ye same here, pretty odd.
      I tried checking the preview version but nothing there either.

      Maybe it requires a copilot subscription of something?

      • Yannick Hanegreefs

        I don’t have a copilot subscription.
        That’s why I wanted to try it, because you can load your own models supposedly (as in locally run models?).

      • Samruddhi KhandaleMicrosoft employee

        Hey! What Copilot subscription are you using?

        Note: This feature is not currently available for Copilot Business or Copilot Enterprise users.