Continue
Continue (VS Code & JetBrains) reads models from ~/.continue/config.yaml — a real config file, so you can either paste the config below or let the one-liner script write it for you. (The old config.json still works but is deprecated.)
apiBase: https://api.opusgate.dev/v1 — with provider: openai the /v1 is required, Continue appends /chat/completions.apiKey: your sk-og-... from the Keys page.1. Install the extension
VS Code — one command (or find "Continue" in the marketplace):
code --install-extension Continue.continue
JetBrains: Settings → Plugins → search "Continue" → Install.
2. Config
Merge into ~/.continue/config.yaml (create it if missing) and replace sk-og-... with your key:
name: OpusGate
version: 1.0.0
schema: v1
models:
- name: Claude Opus 4.8 (OpusGate)
provider: openai
model: claude-opus-4.8
apiBase: https://api.opusgate.dev/v1
apiKey: sk-og-...
roles: [chat, edit, apply]
- name: Claude Sonnet 4.6 (OpusGate)
provider: openai
model: claude-sonnet-4.6
apiBase: https://api.opusgate.dev/v1
apiKey: sk-og-...
roles: [chat, edit, apply]
- name: Claude Haiku 4.5 (OpusGate)
provider: openai
model: claude-haiku-4.5
apiBase: https://api.opusgate.dev/v1
apiKey: sk-og-...
roles: [chat, edit, apply, autocomplete]Note the roles: the big models handle chat / edit / apply, while autocomplete goes to Haiku — autocomplete fires on every keystroke and would burn money pointlessly on Opus.
3. Or auto-install: one script does everything
Paste your key into the first line and run. Installs the VS Code extension if the code CLI is available, then writes the config — an existing config.yaml is backed up to config.yaml.bak first (custom models there? merge them back by hand).
KEY="sk-og-..." # ← your key from /keys
command -v code >/dev/null 2>&1 && code --install-extension Continue.continue
mkdir -p ~/.continue
[ -f ~/.continue/config.yaml ] && cp ~/.continue/config.yaml ~/.continue/config.yaml.bak
cat > ~/.continue/config.yaml <<EOF
name: OpusGate
version: 1.0.0
schema: v1
models:
- name: Claude Opus 4.8 (OpusGate)
provider: openai
model: claude-opus-4.8
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
- name: Claude Sonnet 4.6 (OpusGate)
provider: openai
model: claude-sonnet-4.6
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
- name: Claude Haiku 4.5 (OpusGate)
provider: openai
model: claude-haiku-4.5
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply, autocomplete]
EOF
echo "Done — restart VS Code / JetBrains."$KEY = "sk-og-..." # ← your key from /keys
if (Get-Command code -ErrorAction SilentlyContinue) { code --install-extension Continue.continue }
$dir = "$env:USERPROFILE\.continue"
New-Item -ItemType Directory -Force -Path $dir | Out-Null
if (Test-Path "$dir\config.yaml") { Copy-Item "$dir\config.yaml" "$dir\config.yaml.bak" -Force }
[IO.File]::WriteAllText("$dir\config.yaml", @"
name: OpusGate
version: 1.0.0
schema: v1
models:
- name: Claude Opus 4.8 (OpusGate)
provider: openai
model: claude-opus-4.8
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
- name: Claude Sonnet 4.6 (OpusGate)
provider: openai
model: claude-sonnet-4.6
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
- name: Claude Haiku 4.5 (OpusGate)
provider: openai
model: claude-haiku-4.5
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply, autocomplete]
"@)
Write-Host "Done - restart VS Code / JetBrains."4. Restart and pick a model
Restart VS Code / JetBrains after saving — Continue only re-reads the config on start. The OpusGate models appear in the model picker of the Continue panel.
Native Anthropic protocol instead
Prefer the Anthropic Messages API? Use provider: anthropic with apiBase: https://api.opusgate.dev/v1/ (note the trailing slash — Continue appends messages). Everything else stays the same.
Troubleshooting
The YAML is probably invalid — indentation matters. Check Continue's output panel for a parse error, or re-run the script above.
401 → key mistyped or revoked (Keys); 402 → empty balance (top up). See error codes.