Setup guides / Claude Code

Claude Code

Anthropic-style tools (Claude Code)

https://api.bidgrow.shop

OpenAI-style tools (Codex, Cursor, SDKs)

https://api.bidgrow.shop/v1

Base URL: https://api.bidgrow.shop (root, no /v1). Claude Code adds /v1/messages itself.

1. Set environment variables

macOS / Linux (bash, zsh). Add to ~/.zshrc or ~/.bashrc to keep:

bash
export ANTHROPIC_BASE_URL="https://api.bidgrow.shop"
export ANTHROPIC_AUTH_TOKEN="sk-your-key"
export ANTHROPIC_MODEL="claude-opus-5-5"

Windows PowerShell (this session):

powershell
$env:ANTHROPIC_BASE_URL = "https://api.bidgrow.shop"
$env:ANTHROPIC_AUTH_TOKEN = "sk-your-key"
$env:ANTHROPIC_MODEL = "claude-opus-5-5"

Windows, permanent (open a new terminal afterwards):

powershell
setx ANTHROPIC_BASE_URL "https://api.bidgrow.shop"
setx ANTHROPIC_AUTH_TOKEN "sk-your-key"
setx ANTHROPIC_MODEL "claude-opus-5-5"

2. Or use settings.json (all systems)

File: ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json). Do not put your key in a project's committed .claude/settings.json.

json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.bidgrow.shop",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-key",
    "ANTHROPIC_MODEL": "claude-opus-5-5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-5-5",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-opus-5-5"
  }
}

3. Choose models

Claude Code also uses a small/fast model for background tasks (titles, summaries). If your key only allows some models, point all of these at a model listed on your key at https://bidgrow.shop/check:

VariablePurpose
ANTHROPIC_MODELMain model
ANTHROPIC_DEFAULT_OPUS_MODELWhat the "opus" alias maps to
ANTHROPIC_DEFAULT_SONNET_MODELWhat the "sonnet" alias maps to
ANTHROPIC_DEFAULT_HAIKU_MODELSmall/fast model for background tasks
ANTHROPIC_SMALL_FAST_MODELOlder name for the small/fast model (deprecated; use the HAIKU variable)

4. Run

bash
claude

Inside, run /status: you should see your base URL and "Auth token". If it asks you to log in, the variables were not picked up (open a new terminal, or use settings.json). If you were logged in with a claude.ai account before, run /logout.

Notes

  • Use ANTHROPIC_AUTH_TOKEN (sent as a Bearer token). Use ANTHROPIC_API_KEY only if the token variable gives a 401.
  • If you see 400 errors about unknown fields or context_management, add CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1.
  • Optional: CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 stops background calls to other hosts (also disables auto-update).
  • Your key activates on the first request, and the validity countdown starts then. Check usage at https://bidgrow.shop/check.

Verification status

Variable names and behaviour verified against the official Claude Code gateway docs (code.claude.com/docs/en/llm-gateway-connect). Not verified: whether your specific model names support every Claude Code feature (thinking, tools) on this gateway.