Skip to main content

Using Claude Sonnet in Copilot Chat

Learn how to enable Claude Sonnet in GitHub Copilot Chat for your organization or enterprise.

About Claude Sonnet in GitHub Copilot Chat

Claude Sonnet is a family of large language models that you can use as an alternative to the default model used by Copilot Chat. Claude Sonnet excels at coding tasks across the entire software development lifecycle, from initial design to bug fixes, maintenance to optimizations. Learn more about Sonnet's capabilities.

Claude 3.7 Sonnet is currently available in:

  • Copilot Chat in Visual Studio Code
  • Copilot Chat in Visual Studio 2022 version 17.13 or later
  • Immersive mode in Copilot Chat in GitHub

Claude 3.5 Sonnet is currently available in:

  • Copilot Chat in Visual Studio Code
  • Copilot Chat in Visual Studio 2022 version 17.12 or later
  • Immersive mode in Copilot Chat in GitHub

Claude 3.7 Sonnet is hosted by Amazon Web Services, Anthropic PBC, and Google Cloud Platform when used in GitHub Copilot. Claude 3.5 Sonnet is hosted exclusively by Amazon Web Services. GitHub has provider agreements in place to ensure data is not used for training. Additional details for each provider are included below:

In order to provide better service quality and reduce latency, GitHub uses prompt caching. You can read more about prompt caching on Anthropic PBC, Amazon Bedrock, and Google Cloud.

When using Claude Sonnet, input prompts and output completions continue to run through GitHub Copilot's content filters for public code matching, when applied, along with those for harmful, offensive, or off-topic content.

Configuring access

You must enable access to each Claude Sonnet individually before you can use the model.

Setup for organization and enterprise use

As an enterprise or organization owner, you can enable or disable Claude Sonnet models for everyone who has been assigned a Copilot Enterprise or Copilot Business seat through your enterprise or organization. See Managing policies for Copilot in your organization and Managing policies and features for Copilot in your enterprise.

Using Claude Sonnet

For details on how to change the model that Copilot Chat uses, see Changing the AI model for Copilot Chat.

Leaving feedback

To leave feedback about Claude Sonnet in GitHub Copilot, or to ask a question, see the GitHub Community discussion Claude 3.5 Sonnet is now available to all Copilot users in Public Preview.