Claude Code ANTHROPIC_BASE_URL Setup with AI Supermarket
· 2 Minuten Lesezeit
Claude Code is a high-intent search topic because users usually search for it when they are actively configuring a development environment. The long-tail phrase Claude Code ANTHROPIC_BASE_URL is especially useful because it maps directly to a setup problem.
AI Supermarket provides an Anthropic-compatible root endpoint:
https://aisupermarket.work
Environment Variables
macOS / Linux:
export ANTHROPIC_BASE_URL="https://aisupermarket.work"
export ANTHROPIC_AUTH_TOKEN="your-api-key"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
Windows PowerShell:
$env:ANTHROPIC_BASE_URL="https://aisupermarket.work"
$env:ANTHROPIC_AUTH_TOKEN="your-api-key"
$env:CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
Why the Base URL Does Not Include /v1
Claude Code and Anthropic SDK-style clients generally expect the gateway root address and append the Messages API path themselves.
Use:
https://aisupermarket.work
Do not use this for Claude Code environment variables:
https://aisupermarket.work/v1
That /v1 path is usually for OpenAI-compatible SDKs, Codex, OpenCode, and similar tools.
When Claude Code Cannot See Models
If Claude Code starts but cannot call a model, check:
- the Key is copied without extra spaces
- the Key belongs to a Claude / Anthropic-compatible group
- the model name is available in that group
- the account has quota
- the terminal session was restarted after changing environment variables
