Note
GitHub Copilot is not currently available for use with Visual Studio for Mac.
You can connect to Copilot through an HTTP proxy and use custom certificates. This is useful if you're working on a corporate network that requires a proxy server or if you need to inspect the contents of Copilot's secure connection. See Network settings for GitHub Copilot.
Configuring proxy settings for Copilot
You can configure an HTTP proxy for Copilot in your chosen editor. To view instructions for your editor, use the tabs at the top of this article.
Copilot for Visual Studio reads the proxy settings from Windows. For information about configuring proxy settings on Windows, see the instructions under "To set up a proxy server connection manually" in Use a proxy server in Windows in the Microsoft documentation.
If you have configured a proxy but are still encountering connection errors, see Troubleshooting network errors for GitHub Copilot.
Basic authentication
Copilot for Visual Studio does not retrieve authentication credentials from the Windows settings. If you need to authenticate to a proxy, you can include your credentials in the proxy URL (for example: http://USERNAME:PASSWORD@10.203.0.1:5187/
), then set this URL as one of the supported environment variables listed in Proxy settings for Copilot.
Installing custom certificates
Generally, if you're using company equipment, your company's IT department should have already installed any required certificates on your machine. If you need to install a certificate, see the following instructions.
Warning
Installing a custom certificate is an instruction for your computer to trust the creator of the certificate, potentially allowing the creator to intercept all Internet traffic from your machine. You should be very careful to verify that you are installing the correct certificate.
- For Windows, see Installing the trusted root certificate in the Microsoft documentation.
- For macOS, see Add certificates to a keychain using Keychain Access on Mac in the Keychain Access User Guide.
- For Linux, see Installing a root CA certificate in the trust store in the Ubuntu documentation. Similar instructions should apply to most Linux distributions.
If you have installed a certificate but Copilot isn't detecting it, see Troubleshooting network errors for GitHub Copilot.