VS Code Continue

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

export INGRESS_GW_ADDRESS=$(kubectl get svc -n agentgateway-system agentgateway-proxy \
  -o jsonpath='{.status.loadBalancer.ingress[0].ip}')

echo "Gateway address: $INGRESS_GW_ADDRESS"
export INGRESS_GW_ADDRESS=$(kubectl get svc -n agentgateway-system agentgateway-proxy \
  -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')

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 Continue

  1. Edit the ~/.continue/config.json file to add your agentgateway endpoint.
  2. Replace <INGRESS_GW_ADDRESS> and <route-path> with your gateway address and the path from your HTTPRoute configuration.
{
  "models": [
    {
      "title": "agentgateway (Kubernetes)",
      "provider": "openai",
      "model": "gpt-4o-mini",
      "apiBase": "http://<INGRESS_GW_ADDRESS>/<route-path>",
      "apiKey": "anything"
    }
  ]
}

Review the following table to understand this configuration.

FieldDescription
titleDisplay name shown in the Continue model selector.
providerSet to openai for any OpenAI-compatible endpoint.
modelThe model name from your agentgateway backend configuration.
apiBaseYour gateway address and the route path from your HTTPRoute.
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 + M on macOS, Ctrl + M on Windows/Linux).
  2. Select agentgateway (Kubernetes) from the model dropdown.
  3. Send a test message to confirm the connection.
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/.