Claude Code
Set the base URL to the bare API host (no /v1), pass your API key as the auth token, then start claude.
Upstream gate: Claude models respond only to the official Claude Code or Claude Desktop clients, with Claude Code 2.1.285 or newer. The hub itself does not check versions. GPT, Gemini and the other families accept any compatible client.
Environment variables
export ANTHROPIC_BASE_URL=https://api.coderelayhub.com
export ANTHROPIC_AUTH_TOKEN=crh_paste_your_key_here
claude$env:ANTHROPIC_BASE_URL = "https://api.coderelayhub.com"
$env:ANTHROPIC_AUTH_TOKEN = "crh_paste_your_key_here"
claudeOr keep it in settings.json
Claude Code reads an env block from its settings file, so the values survive new shells.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.coderelayhub.com",
"ANTHROPIC_AUTH_TOKEN": "crh_paste_your_key_here"
}
}Claude Desktop
Claude Desktop reads the same two values when you configure a custom gateway.
Claude model strings: claude-sonnet-5-5 · claude-opus-5-5 · claude-haiku-4-5-20251001