Skip to main content

Using Claude in Copilot Chat

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

About Claude in GitHub Copilot Chat

Remarque

Claude Opus 4 and Claude Sonnet 4 in Copilot Chat are currently in public preview and subject to change.

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

  • Claude Opus 4 is available in:

    • Copilot Chat in Visual Studio Code
    • Immersive mode in Copilot Chat in GitHub
  • Claude Sonnet 4 is available in:

    • Copilot Chat in Visual Studio Code
    • Immersive mode in Copilot Chat in GitHub
  • Claude 3.5 Sonnet and Claude 3.7 Sonnet are available in:

    • Copilot Chat in Visual Studio Code
    • Copilot Chat in Visual Studio 2022
      • 3.5: Version 17.12 or later
      • 3.7: Version 17.13 or later
    • Copilot Chat in Xcode
    • Copilot Chat in Eclipse
    • Copilot Chat in JetBrains
    • Immersive mode in Copilot Chat in GitHub

Claude Opus 4 is hosted by Anthropic PBC. Claude Sonnet 4 is hosted by Anthropic 1P. 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, 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 individually before you can use the model.

Setup for organization and enterprise use

Remarque

Claude Opus 4 is not currently available for Copilot Business.

As an enterprise or organization owner, you can enable or disable Claude 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

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 in 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.