Cursor, Continue & Cline
AI-native editors and IDE extensions connect to GoRoute AI Gateway through its OpenAI-compatible /v1 data plane (POST /v1/chat/completions, GET /v1/models). Centralizing IDE traffic through GoRoute gives engineering teams unified model aliases, per-developer Virtual Keys, spend caps, and zero-leakage log scrubbing.
Cursor
Cursor supports custom OpenAI-compatible base URLs in Settings → Models:
- Open Cursor Settings (
Cmd+,/Ctrl+,) → Models. - Expand OpenAI API Key and enable Override OpenAI Base URL.
- Set the base URL to your GoRoute
/v1endpoint:(For local development without TLS, usehttps://gateway.example.com/v1http://localhost:8080/v1; note that Cursor's cloud-proxied features require a publicly reachable HTTPS endpoint such as a tunnel or ingress.) - Paste your GoRoute Virtual Key (
sk-gw-...) into OpenAI API Key and click Verify. - Add the model names or aliases configured in your GoRoute
model_list(for examplegpt-4o,claude-sonnet-4-20250514, orreasoning).
Continue (config.yaml / config.json)
Continue supports GoRoute directly via its openai provider with apiBase.
~/.continue/config.yaml
name: GoRoute Workspace
version: 1.0.0
schema: v1
models:
- name: GoRoute Reasoning
provider: openai
model: reasoning
apiBase: http://localhost:8080/v1
apiKey: sk-gw-your-virtual-key
- name: GoRoute Fast Autocomplete
provider: openai
model: fast
apiBase: http://localhost:8080/v1
apiKey: sk-gw-your-virtual-key
roles:
- autocomplete
Cline (VS Code / Cursor Extension)
Cline supports both OpenAI-compatible and Anthropic-compatible providers:
Option A: OpenAI Compatible (Recommended for Multi-Provider Aliases)
- Open Cline Settings (gear icon).
- Set API Provider to OpenAI Compatible.
- Set Base URL to
http://localhost:8080/v1. - Set API Key to your Virtual Key (
sk-gw-...). - Set Model ID to any model or alias configured in GoRoute (e.g.,
claude-sonnet-4-20250514orgpt-4o).
Option B: Anthropic Native Mode
- Set API Provider to Anthropic.
- Enable Use custom base URL and set it to
http://localhost:8080/anthropic. - Set Anthropic API Key to your Virtual Key (
sk-gw-...).
Verifying IDE Connectivity
Confirm your Virtual Key can list models and complete a chat request against /v1:
curl -sS http://localhost:8080/v1/models \
-H "Authorization: Bearer sk-gw-your-virtual-key"