Claude Code
Claude Code uses the Anthropic Messages protocol. Its base URL is the site root because the client appends /v1/messages.
Temporary configuration
bash
# Keep the root URL; do not add /v1.
export ANTHROPIC_BASE_URL="https://sprelaytoken.com"
# Replace only the placeholder with the complete dedicated key.
export ANTHROPIC_AUTH_TOKEN="sk-your-key"
# Copy an available Claude model ID from the live catalog.
export ANTHROPIC_MODEL="claude-sonnet-4-6"
# Start Claude Code from this same terminal.
claudepowershell
# These variables apply to this PowerShell and its child processes.
$env:ANTHROPIC_BASE_URL = "https://sprelaytoken.com"
$env:ANTHROPIC_AUTH_TOKEN = "sk-your-key"
$env:ANTHROPIC_MODEL = "claude-sonnet-4-6"
# Launch Claude Code after setting all three values.
claudeFor a team repository, commit only an empty template:
dotenv
# Safe template: never commit a real token here.
ANTHROPIC_BASE_URL=https://sprelaytoken.com
ANTHROPIC_AUTH_TOKEN=
ANTHROPIC_MODEL=Test with a small, read-only task, then verify the model and charge in Sprelay usage logs. If Claude Code opens an Anthropic login flow, restart it from the terminal where the variables were set. A 404 usually means /v1 was incorrectly added to the base URL.
