Coder powers secure, scalable development across key industries — automotive, finance, government, and technology — enabling faster builds, tighter compliance, and seamless AI adoption in enterprise-grade cloud environments.
AI Gateway requires the AI Governance Add-On.
As of Coder v2.32, deployments without the add-on will not be able to
access AI Gateway.
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 Gateway Proxy, which integrates with AI Gateway for full access to auditing and governance features.
To use Copilot with AI Gateway, make sure AI Gateway Proxy is properly configured, see AI Gateway 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 client configuration requirements, see AI Gateway Proxy Client Configuration.
The sections below cover Copilot-specific setup for each client.
Copilot CLI may start MCP server processes that use runtimes other than Node.js (e.g. Go).
These processes inherit environment variables like HTTPS_PROXY but may not respect NODE_EXTRA_CA_CERTS.
Adding the TLS certificate to the system trust store ensures all processes trust it.
Note: if TLS is not enabled on the proxy, replace https:// with http:// in the proxy URL.
The http.proxy setting is used for both HTTP and HTTPS requests.
Replace <proxy-host> with your AI Gateway Proxy hostname and <CODER_API_TOKEN> with your Coder API token.
Add the AI Gateway Proxy CA certificate to your operating system's trust store.
By default, VS Code loads system certificates, controlled by the http.systemCertificates setting.
When TLS is enabled on the proxy, add the TLS certificate to the system trust store as well.
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.
When TLS is enabled on the proxy, add the TLS certificate to the workspace's system trust store as well.
Open Settings (Ctrl+, for Windows or Cmd+, for macOS)
Select the Remote tab
Search for HTTP: Proxy
Set the proxy URL using the format https://coder:<CODER_API_TOKEN>@<proxy-host>:8888
Note: if TLS is not enabled on the proxy, replace https:// with http:// in the proxy URL.
Replace <proxy-host> with your AI Gateway Proxy hostname and <CODER_API_TOKEN> with your Coder API token.
CA certificate trust
Since the Copilot extension runs inside the Coder workspace, add the AI Gateway Proxy CA certificate to the Coder workspace's system trust store.
See System trust store for instructions on how to do this on Linux.
Add the AI Gateway 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.
When TLS is enabled on the proxy, add the TLS certificate to the system trust store as well, or add it under Accepted certificates in the IDE settings below.
Alternatively, you can configure the IDE to accept the certificate:
Open Settings (Ctrl+Alt+S for Windows or Cmd+, for macOS)
Navigate to Appearance & Behavior > System Settings > Server Certificates
Under Accepted certificates, click + and select the CA certificate file