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.VS Code — one command (or find "Continue" in the marketplace):
code --install-extension Continue.continue
JetBrains: Settings → Plugins → search "Continue" → Install.
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 5.5 (OpusGate)
provider: openai
model: claude-opus-5-5
apiBase: https://api.opusgate.dev/v1
apiKey: sk-og-...
roles: [chat, edit, apply]
- name: Claude Sonnet 5.5 (OpusGate)
provider: openai
model: claude-sonnet-5-5
apiBase: https://api.opusgate.dev/v1
apiKey: sk-og-...
roles: [chat, edit, apply]
- name: Claude Haiku 5.5 (OpusGate)
provider: openai
model: claude-haiku-5.5
apiBase: https://api.opusgate.dev/v1
apiKey: sk-og-...
roles: [chat, edit, apply]This example assigns chat / edit / apply roles. Check which roles your chosen model and installed client support. Enable automatic completion only after testing its behavior and usage.
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 5.5 (OpusGate)
provider: openai
model: claude-opus-5-5
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
- name: Claude Sonnet 5.5 (OpusGate)
provider: openai
model: claude-sonnet-5-5
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
- name: Claude Haiku 5.5 (OpusGate)
provider: openai
model: claude-haiku-5.5
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
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 5.5 (OpusGate)
provider: openai
model: claude-opus-5-5
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
- name: Claude Sonnet 5.5 (OpusGate)
provider: openai
model: claude-sonnet-5-5
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
- name: Claude Haiku 5.5 (OpusGate)
provider: openai
model: claude-haiku-5.5
apiBase: https://api.opusgate.dev/v1
apiKey: $KEY
roles: [chat, edit, apply]
"@)
Write-Host "Done - restart VS Code / JetBrains."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.
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.
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.