Windsurf
Configure Windsurf, the AI code editor by Codeium, to route requests to your LLM through your agentgateway proxy.
Before you begin
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:80Configure Windsurf
Configure Windsurf to route LLM requests through agentgateway. For more information, review the Windsurf documentation.
Open Windsurf Settings.
- macOS:
Cmd + ,or Windsurf > Settings - Windows/Linux:
Ctrl + ,or File > Preferences > Settings
- macOS:
Search for Http: Proxy.
Enter your agentgateway URL.
http://<INGRESS_GW_ADDRESS>/<route-path>For example, if your HTTPRoute uses path
/openaion yourai-example.comsecured host, usehttps://ai-example.com/openai.Save the settings.
Verify the connection
- Open the Windsurf chat panel.
- Send a message such as “test”.
- Windsurf responds through your agentgateway backend.