Replies: 3 comments 2 replies
-
|
From what I understand, when using GitHub Copilot in VS Code, the Claude model is accessed through GitHub’s Copilot service rather than connecting directly to Anthropic. Because of that, the network usually needs to allow GitHub related domains instead of Anthropic endpoints. In a restricted environment such as a dedicated line in China, you may need to whitelist domains like github.com, api.github.com, copilot-proxy.githubusercontent.com, and *.githubusercontent.com so that Copilot can work properly. After the network access is allowed, you can sign in to GitHub Copilot in VS Code and select the model from Copilot Chat if the Claude model is available in your Copilot plan or organization settings. |
Beta Was this translation helpful? Give feedback.
-
|
To use Claude in GitHub Copilot within VS Code in China, whitelist these key domains on your dedicated line: *.github.com, *.githubcopilot.com, copilot-proxy.githubusercontent.com, and api.githubcopilot.com over HTTPS port 443. If you use a corporate proxy, ensure it uses http:// (not https://) and install any SSL interception certificates into the OS trust store. After network access is confirmed, an org admin must enable the Claude policy in GitHub → Organization Settings → Copilot → Policies. Then in VS Code, open Copilot Chat → Manage Models → select Claude to start using it. |
Beta Was this translation helpful? Give feedback.
-
|
GitHub Copilot does not connect directly from VS Code to Anthropic’s Claude API. Instead, all requests go through GitHub’s Copilot service, which then routes the request to the appropriate model provider internally. Because of this architecture, whitelisting Anthropic endpoints alone will not enable Claude in Copilot. To allow Copilot (including Claude-based models) in a restricted network or dedicated line environment, you should whitelist the GitHub Copilot service domains rather than Claude-specific endpoints. Common domains that typically need to be accessible include: If your organization uses strict firewall rules or a dedicated outbound line, ensure HTTPS (port 443) access to those domains. A few additional notes:
For the most accurate and up-to-date list of required domains, refer to GitHub’s Copilot network documentation: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I want to use the Claude model in GitHub Copilot within VS Code in a Chinese environment. How should we whitelist and allow this through our dedicated line?
Beta Was this translation helpful? Give feedback.
All reactions