For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
GitHub Copilot
Verified : Code examples on this page have been automatically tested and verified.Configure GitHub Copilot to use agentgateway running in Kubernetes
Configure GitHub Copilot in VS Code to use agentgateway deployed in Kubernetes.
Note
Custom endpoint configuration for GitHub Copilot requires a GitHub Copilot Business or Enterprise plan. Individual Copilot plans do not support custom proxy endpoints.
Before you begin
3. Install the GitHub Copilot extension in VS Code. 4. Have a GitHub Copilot Business or Enterprise subscription.Get the gateway URL
Tip
Kind cluster? Kind does not support LoadBalancer services by default. To use this option with a Kind cluster, install and run cloud-provider-kind.
The following command reads the LoadBalancer IP address or hostname, whichever your cloud provider assigns.
export INGRESS_GW_ADDRESS=$(kubectl get svc -n agentgateway-system agentgateway-proxy \
-o jsonpath="{.status.loadBalancer.ingress[0]['hostname','ip']}")
echo "Gateway address: $INGRESS_GW_ADDRESS"Configure GitHub Copilot
Open VS Code Settings (
Cmd + ,on macOS,Ctrl + ,on Windows/Linux).Search for
github.copilotin the settings search bar.Set the proxy URL to your agentgateway address. Click Edit in settings.json and add:
{ "github.copilot.advanced": { "debug.overrideProxyUrl": "http://<INGRESS_GW_ADDRESS>/v1" } }Replace
<INGRESS_GW_ADDRESS>with your gateway address. This base URL needs the route from the OpenAI v1/chat/completions tab of the OpenAI provider guide, which forwards every path to the backend. The Custom route tab rewrites every request to/v1/chat/completions, so it does not work with clients that add their own path, such as/chat/completions.Save the file and reload VS Code (
Cmd + Shift + P> Developer: Reload Window).
Verify the connection
- Open a code file in VS Code.
- Start typing and wait for Copilot suggestions to appear.
- Open the Copilot chat panel and send a test message.