Skip to content
Latest (currently 2026.10.2) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentgateway.

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 : Automated tests passed for: End-to-end run: Every step ran in a fresh test environment and the results were checked.
Page as Markdown

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

  1. Set up an agentgateway proxy.
  2. Set up access to the OpenAI LLM provider.
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"

After port-forwarding, the gateway is accessible at http://localhost:8080. Use localhost:8080 wherever the instructions reference $INGRESS_GW_ADDRESS.

kubectl port-forward -n agentgateway-system svc/agentgateway-proxy 8080:80

Configure GitHub Copilot

  1. Open VS Code Settings (Cmd + , on macOS, Ctrl + , on Windows/Linux).

  2. Search for github.copilot in the settings search bar.

  3. 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.

  4. Save the file and reload VS Code (Cmd + Shift + P > Developer: Reload Window).

Verify the connection

  1. Open a code file in VS Code.
  2. Start typing and wait for Copilot suggestions to appear.
  3. Open the Copilot chat panel and send a test message.