Skip to content

Configure directly

After installing sotatek-proxy, choose the AI agent or IDE you actually use first. Then open the matching page in Configure your CLI and follow that tool’s setup path.

Use this page only when you want to configure Claude Code directly through environment variables or ~/.claude/settings.json. If you use an IDE or another agent, use the matching page instead:

You useOpen this page
Claude Code CLIConfigure directly
Claude Code profile switcherCCS Config
VS Code Claude Code extensionVS Code
AntigravityAntigravity
Codex CLICodex

After choosing the right tool page, pick the provider tab that matches your model provider: FridayAIX for Claude models, MiniMax for MiniMax models, or Deepseek for Deepseek models. The proxy forwards your request to the Sotatek Bifrost gateway and adds local attribution headers along the way.

  1. sotatek-proxy installed and running on 127.0.0.1:3817. Check with:

    Terminal window
    curl http://127.0.0.1:3817/_proxy/healthz
  2. A Bifrost virtual key (sk-bf-xxx) — contact your admin.

VariableValue
ANTHROPIC_AUTH_TOKENYour virtual key — format sk-bf-xxx
ANTHROPIC_BASE_URLhttp://127.0.0.1:3817/anthropic
VariableValue
ANTHROPIC_MODELfridayaix/claude-sonnet-4-6
ANTHROPIC_DEFAULT_OPUS_MODELfridayaix/claude-opus-4-8
ANTHROPIC_DEFAULT_SONNET_MODELfridayaix/claude-sonnet-4-6
ANTHROPIC_DEFAULT_HAIKU_MODELfridayaix/claude-haiku-4-5-20251001

sotatek-proxy setup -p claudecode writes all required env vars directly into ~/.claude/settings.json — no manual file editing needed. It backs up the existing file before writing.

Terminal window
sotatek-proxy setup -p claudecode -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 .claude/settings.json in the current project instead of user-level
--dry-runPreview target path without writing

Restart Claude Code after running to apply the changes.


Edit ~/.zshrc (zsh, default on macOS) or ~/.bashrc (bash, common on Linux):

Terminal window
export ANTHROPIC_AUTH_TOKEN="sk-bf-your-virtual-key-here"
export ANTHROPIC_BASE_URL="http://127.0.0.1:3817/anthropic"
export ANTHROPIC_MODEL="fridayaix/claude-sonnet-4-6"
export ANTHROPIC_DEFAULT_OPUS_MODEL="fridayaix/claude-opus-4-8"
export ANTHROPIC_DEFAULT_SONNET_MODEL="fridayaix/claude-sonnet-4-6"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="fridayaix/claude-haiku-4-5-20251001"

Reload:

Terminal window
source ~/.zshrc # or source ~/.bashrc
echo $ANTHROPIC_BASE_URL
Section titled “Option B — Claude Code settings.json (recommended)”
Terminal window
mkdir -p ~/.claude
nano ~/.claude/settings.json
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-bf-your-virtual-key-here",
"ANTHROPIC_BASE_URL": "http://127.0.0.1:3817/anthropic",
"ANTHROPIC_MODEL": "fridayaix/claude-sonnet-4-6",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "fridayaix/claude-opus-4-8",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "fridayaix/claude-sonnet-4-6",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "fridayaix/claude-haiku-4-5-20251001"
}
}

Save and restart Claude Code.


Option A — System Environment Variables (GUI)

Section titled “Option A — System Environment Variables (GUI)”
  1. Press Win + R, type sysdm.cpl, Enter.
  2. Advanced tab → Environment Variables.
  3. Under User variables, click New for each row:
VariableValue
ANTHROPIC_AUTH_TOKENsk-bf-your-virtual-key-here
ANTHROPIC_BASE_URLhttp://127.0.0.1:3817/anthropic
ANTHROPIC_MODELfridayaix/claude-sonnet-4-6
ANTHROPIC_DEFAULT_OPUS_MODELfridayaix/claude-opus-4-8
ANTHROPIC_DEFAULT_SONNET_MODELfridayaix/claude-sonnet-4-6
ANTHROPIC_DEFAULT_HAIKU_MODELfridayaix/claude-haiku-4-5-20251001

Click OK on all dialogs, then restart your terminal or IDE.

Terminal window
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "sk-bf-your-virtual-key-here", "User")
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "http://127.0.0.1:3817/anthropic", "User")
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_MODEL", "fridayaix/claude-sonnet-4-6", "User")
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_DEFAULT_OPUS_MODEL", "fridayaix/claude-opus-4-8", "User")
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_DEFAULT_SONNET_MODEL", "fridayaix/claude-sonnet-4-6", "User")
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_DEFAULT_HAIKU_MODEL", "fridayaix/claude-haiku-4-5-20251001", "User")

Restart your terminal. Verify:

Terminal window
echo $env:ANTHROPIC_BASE_URL
echo $env:ANTHROPIC_DEFAULT_OPUS_MODEL

%USERPROFILE%\.claude\settings.json — same JSON as macOS/Linux Option B above.


Terminal window
claude --version
claude "Hello, are you connected through Bifrost?"

Successful response = working. Authentication errors = check ANTHROPIC_AUTH_TOKEN.

Keep everything else identical and only update ANTHROPIC_MODEL (or the three ANTHROPIC_DEFAULT_* variables):

ProviderModel value
FridayAIXfridayaix/claude-opus-4-8
FridayAIXfridayaix/claude-sonnet-4-6
FridayAIXfridayaix/claude-haiku-4-5-20251001
MiniMaxMiniMax/MiniMax-M3
MiniMaxMiniMax/MiniMax-M3
MiniMaxMiniMax/MiniMax-M3
Deepseekdeepseek/deepseek-v4-pro
Deepseekdeepseek/deepseek-v4-flash
IssueSolution
Authentication failedVerify your virtual key is active. Contact admin.
Connection refused on 127.0.0.1:3817sotatek-proxy is not running. Run sotatek-proxy status and sotatek-proxy start.
Model not foundEnsure model names include the provider prefix (e.g. fridayaix/claude-sonnet-4-6).
Variables not appliedRestart your terminal/IDE after setting variables. On Windows, a full restart may be needed.