For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
VS Code Continue
Verified : Code examples on this page have been automatically tested and verified.Configure VS Code Continue to use agentgateway running in Kubernetes
Configure Continue, the open-source AI code assistant for VS Code, to use agentgateway deployed in Kubernetes.
Before you begin
3. Install the Continue extension in VS Code.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 Continue
- Edit the
~/.continue/config.yamlfile to add your agentgateway endpoint. If the file already has amodelslist, add the model to that list. - Replace
<INGRESS_GW_ADDRESS>with your gateway address. Keep the/v1path. 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.
name: agentgateway
version: 0.0.1
schema: v1
models:
- name: agentgateway (Kubernetes)
provider: openai
model: gpt-4o-mini
apiBase: http://<INGRESS_GW_ADDRESS>/v1
apiKey: anythingReview the following table to understand this configuration.
| Field | Description |
|---|---|
name | At the top level, a name for the configuration. In the models list, the display name shown in the Continue model selector. |
version, schema | Required by the Continue config.yaml format. Keep schema: v1. |
provider | Set to openai for any OpenAI-compatible endpoint. |
model | The model name from your agentgateway backend configuration. |
apiBase | Your gateway address with the /v1 path. Continue adds /chat/completions to it. |
apiKey | A placeholder value if agentgateway has no authentication, or your gateway API key. |
Verify the connection
- Open the Continue sidebar in VS Code (
Cmd + Lon macOS,Ctrl + Lon Windows/Linux). - Select agentgateway (Kubernetes) from the model dropdown.
- Send a test message to confirm the connection.