About Claude in GitHub Copilot Chat
注意
Claude Opus 4 and Claude Sonnet 4 in Copilot Chat are currently in 公共预览版 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:
- Amazon Bedrock: Amazon makes the following data commitments: Amazon Bedrock doesn't store or log your prompts and completions. Amazon Bedrock doesn't use your prompts and completions to train any AWS models and doesn't distribute them to third parties.
- Anthropic PBC: GitHub maintains a zero data retention agreement with Anthropic.
- Google Cloud: Google commits to not training on GitHub data as part of their service terms. GitHub is additionally not subject to prompt logging for abuse monitoring.
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
注意
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 管理组织中的 Copilot 策略 and 管理企业中 Copilot 的策略和功能.
Using Claude
For details on how to change the model that Copilot Chat uses, see 正在更改 Copilot Chat 的 AI 模型.
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.