GitHub Copilot
GitHub Copilot is an AI coding assistant that doesn't support custom base URLs but does respect proxy configurations. This makes it compatible with AI Bridge Proxy, which integrates with AI Bridge for full access to auditing and governance features. To use Copilot with AI Bridge, make sure AI Bridge Proxy is properly configured, see AI Bridge Proxy Setup for instructions.
Copilot uses per-user tokens tied to GitHub accounts rather than a shared API key. Users must still authenticate with GitHub to use Copilot.
For general information about GitHub Copilot, see the GitHub Copilot documentation.
For general client configuration requirements, see AI Bridge Proxy Client Configuration. The sections below cover Copilot-specific setup for each client.
Copilot CLI
For installation instructions, see GitHub Copilot CLI documentation.
Proxy configuration
Set the HTTP_PROXY and HTTPS_PROXY environment variables:
export HTTP_PROXY="http://coder:${CODER_SESSION_TOKEN}@<proxy-host>:8888"
export HTTPS_PROXY="http://coder:${CODER_SESSION_TOKEN}@<proxy-host>:8888"
Replace <proxy-host> with your AI Bridge Proxy hostname.
CA certificate trust
Copilot CLI is built on Node.js and uses the NODE_EXTRA_CA_CERTS environment variable for custom certificates:
export NODE_EXTRA_CA_CERTS="/path/to/coder-aibridge-proxy-ca.pem"
See Client Configuration CA certificate trust for details on how to obtain the certificate file.
VS Code Copilot Extension
For installation instructions, see Installing the GitHub Copilot extension in VS Code.
Proxy configuration
You can configure the proxy using environment variables or VS Code settings. For environment variables, see AI Bridge Proxy client configuration.
Alternatively, you can configure the proxy directly in VS Code settings:
- Open Settings (
Ctrl+,for Windows orCmd+,for macOS) - Search for
HTTP: Proxy - Set the proxy URL using the format
http://coder:<CODER_SESSION_TOKEN>@<proxy-host>:8888
Or add directly to your settings.json:
{
"http.proxy": "http://coder:<CODER_SESSION_TOKEN>@<proxy-host>:8888"
}
The http.proxy setting is used for both HTTP and HTTPS requests.
Replace <proxy-host> with your AI Bridge Proxy hostname and <CODER_SESSION_TOKEN> with your coder session token.
Restart VS Code for changes to take effect.
For more details, see Configuring proxy settings for Copilot in the GitHub documentation.
CA certificate trust
Add the AI Bridge Proxy CA certificate to your operating system's trust store.
By default, VS Code loads system certificates, controlled by the http.systemCertificates setting.
See Client Configuration CA certificate trust for details on how to obtain the certificate file.
Using Coder Remote extension
When connecting to a Coder workspace with the Coder extension, the Copilot extension runs inside the Coder workspace and not on your local machine. This means proxy and certificate configuration must be done in the Coder workspace environment.
Proxy configuration
Configure the proxy in VS Code's remote settings:
- Connect to your Coder workspace
- Open Settings (
Ctrl+,for Windows orCmd+,for macOS) - Select the Remote tab
- Search for
HTTP: Proxy - Set the proxy URL using the format
http://coder:<CODER_SESSION_TOKEN>@<proxy-host>:8888
Replace <proxy-host> with your AI Bridge Proxy hostname and <CODER_SESSION_TOKEN> with your coder session token.
CA certificate trust
Since the Copilot extension runs inside the Coder workspace, add the AI Bridge Proxy CA certificate to the Coder workspace's system trust store. See System trust store for instructions on how to do this on Linux.
Restart VS Code for changes to take effect.
JetBrains IDEs
For installation instructions, see Installing the GitHub Copilot extension in JetBrains IDE.
Proxy configuration
Configure the proxy directly in JetBrains IDE settings:
- Open Settings (
Ctrl+Alt+Sfor Windows orCmd+,for macOS) - Navigate to
Appearance & Behavior>System Settings>HTTP Proxy - Select
Manual proxy configurationandHTTP - Enter the proxy hostname and port (default: 8888)
- Select
Proxy authenticationand enter:- Login:
coder(this value is ignored) - Password: Your Coder session token
- Check
Rememberto save the password
- Login:
- Restart the IDE for changes to take effect
For more details, see Configuring proxy settings for Copilot in the GitHub documentation.
CA certificate trust
Add the AI Bridge Proxy CA certificate to your operating system's trust store. If the certificate is in the system trust store, no additional IDE configuration is needed.
Alternatively, you can configure the IDE to accept the certificate:
- Open Settings (
Ctrl+Alt+Sfor Windows orCmd+,for macOS) - Navigate to
Appearance & Behavior>System Settings>Server Certificates - Under
Accepted certificates, click+and select the CA certificate file - Check
Accept non-trusted certificates automatically - Restart the IDE for changes to take effect
For more details, see Trusted root certificates in the JetBrains documentation.
See Client Configuration CA certificate trust for details on how to obtain the certificate file.


