Skip to content
Help guide the future of agentgateway — Take the survey

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.
Page as Markdown

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

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

  1. Edit the ~/.continue/config.yaml file to add your agentgateway endpoint. If the file already has a models list, add the model to that list.
  2. Replace <INGRESS_GW_ADDRESS> with your gateway address. Keep the /v1 path. 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: anything

Review the following table to understand this configuration.

FieldDescription
nameAt the top level, a name for the configuration. In the models list, the display name shown in the Continue model selector.
version, schemaRequired by the Continue config.yaml format. Keep schema: v1.
providerSet to openai for any OpenAI-compatible endpoint.
modelThe model name from your agentgateway backend configuration.
apiBaseYour gateway address with the /v1 path. Continue adds /chat/completions to it.
apiKeyA placeholder value if agentgateway has no authentication, or your gateway API key.

Verify the connection

  1. Open the Continue sidebar in VS Code (Cmd + L on macOS, Ctrl + L on Windows/Linux).
  2. Select agentgateway (Kubernetes) from the model dropdown.
  3. Send a test message to confirm the connection.
Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate ↵ select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.