Skip to content

VS Code

VS Code reads the proxy endpoint, virtual key, and target model from claudeCode.environmentVariables in your settings.json. To switch providers later, change only the ANTHROPIC_MODEL value — everything else stays the same.

There are two ways to configure VS Code:

MethodBest for
Configure via CLIRecommended. sotatek-proxy setup writes and backs up settings.json for you.
Configure via ExtensionManual setup when you want to inspect or edit every value yourself.

Choose the method first, then click the provider tab that matches your model provider.

  1. VS Code installed
  2. sotatek-proxy installed and running on 127.0.0.1:3817
  3. A Bifrost virtual key (sk-bf-xxx) — contact your admin

sotatek-proxy setup -p vscode writes all required env vars directly into VS Code’s settings.json — no manual file editing needed. It backs up the existing file before writing.

Terminal window
sotatek-proxy setup -p vscode -m fridayaix -k sk-bf-your-key
FlagDescription
-m / --modelModel profile: fridayaix, minimax, deepseek (default: fridayaix)
-k / --keyBifrost virtual key; falls back to existing settings or ANTHROPIC_AUTH_TOKEN env var
--workspaceWrite to .vscode/settings.json in the current project instead of user-level
--dry-runPreview target path without writing

Reload VS Code after running to apply the changes.


Prefer manual setup, or want to review each value? Configure the Claude Code extension directly through settings.json.

VS Code → Extensions → search Claude CodeInstall.

Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux) → Preferences: Open User Settings (JSON).

For workspace-only config, open the workspace settings.json instead.

Replace sk-bf-your-virtual-key-here with your actual key. If settings.json already contains other keys, merge the claudeCode.environmentVariables entry — don’t create a second root {}.

{
"claudeCode.environmentVariables": [
{
"name": "ANTHROPIC_BASE_URL",
"value": "http://127.0.0.1:3817/anthropic"
},
{
"name": "ANTHROPIC_AUTH_TOKEN",
"value": "sk-bf-your-virtual-key-here"
},
{
"name": "ANTHROPIC_MODEL",
"value": "fridayaix/claude-sonnet-4-6"
},
{
"name": "ANTHROPIC_DEFAULT_OPUS_MODEL",
"value": "fridayaix/claude-opus-4-8"
},
{
"name": "ANTHROPIC_DEFAULT_SONNET_MODEL",
"value": "fridayaix/claude-sonnet-4-6"
},
{
"name": "ANTHROPIC_DEFAULT_HAIKU_MODEL",
"value": "fridayaix/claude-haiku-4-5-20251001"
},
{
"name": "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS",
"value": "1"
},
{
"name": "DISABLE_PROMPT_CACHING",
"value": "1"
}
]
}

To switch providers, update these four env vars together:

Env varFridayAIXMiniMaxDeepseek
ANTHROPIC_MODELfridayaix/claude-sonnet-4-6MiniMax/MiniMax-M3deepseek/deepseek-v4-pro
ANTHROPIC_DEFAULT_OPUS_MODELfridayaix/claude-opus-4-8MiniMax/MiniMax-M3deepseek/deepseek-v4-pro
ANTHROPIC_DEFAULT_SONNET_MODELfridayaix/claude-sonnet-4-6MiniMax/MiniMax-M2.7deepseek/deepseek-v4-pro
ANTHROPIC_DEFAULT_HAIKU_MODELfridayaix/claude-haiku-4-5-20251001MiniMax/MiniMax-M2.5-highspeeddeepseek/deepseek-v4-flash
  1. Save settings.json.
  2. Developer: Reload Window if VS Code doesn’t pick up the change.
  3. Open Claude Code chat: Hello, which model are you using?
  4. Confirm no authentication error.
SettingValue
Base URLhttp://127.0.0.1:3817/anthropic
Token fieldANTHROPIC_AUTH_TOKEN
Model fieldANTHROPIC_MODEL
Token formatsk-bf-xxx
IssueSolution
Authentication errorANTHROPIC_AUTH_TOKEN is the Bifrost virtual key; ANTHROPIC_BASE_URL is http://127.0.0.1:3817/anthropic
Connection refused on 127.0.0.1:3817sotatek-proxy is not running. Run sotatek-proxy status && sotatek-proxy start.
Model not foundVerify exact ANTHROPIC_MODEL string with provider prefix and capitalisation
VS Code ignores new valuesSave settings.json and run Developer: Reload Window
Broken settings.jsonValidate JSON — check commas and brackets