Claude Code setup
Point the Claude Code CLI at Korvexor via Anthropic-style environment variables.
Edit Claude Code config
Create or edit ~/.claude/settings.json (or project .claude/settings.json).
Set the gateway root URL
ANTHROPIC_BASE_URL is the gateway root (no /v1); ANTHROPIC_AUTH_TOKEN is your API key.
Launch Claude Code
Run claude in your terminal and send a test prompt to verify the request succeeds.
Example config (copy-ready):
// ANTHROPIC_BASE_URL = gateway ROOT — do NOT append /v1 (…/v1 → 404 /v1/v1/messages)
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.korvexor.com",
"ANTHROPIC_AUTH_TOKEN": "sk-your-api-key",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"API_TIMEOUT_MS": "3000000"
}
}
Notes
- • ANTHROPIC_BASE_URL must be the gateway root—never append /v1 or you hit /v1/v1/messages (404).
- • Claude Code speaks Anthropic Messages—not the OpenAI /v1 rules used by Cursor and OpenCode.
Next steps
For OpenAI-compatible clients, use the Cursor or OpenCode pages instead.