Skip to content

Claude Code ​

Nova coding in a terminal

Claude Code sends requests in the Anthropic Messages format (/v1/messages). When connecting to XNova, the base URL must not end in /v1; Claude Code adds the path itself.

Pick a group ​

When creating the API key on the console, choose a Claude group, for example the Kiro full-power group (lower multiplier, 1M context) or one of the Max pools. Current multipliers are shown on the key creation page.

Option 1: environment variables ​

macOS / Linux:

bash
export ANTHROPIC_BASE_URL="https://api.xnova.online"
export ANTHROPIC_AUTH_TOKEN="sk-your-xnova-key"
claude

Windows PowerShell:

powershell
$env:ANTHROPIC_BASE_URL = "https://api.xnova.online"
$env:ANTHROPIC_AUTH_TOKEN = "sk-your-xnova-key"
claude

Option 2: settings.json ​

Edit ~/.claude/settings.json:

json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.xnova.online",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-xnova-key"
  }
}

Choose a model ​

Use /model inside Claude Code, or pin one with ANTHROPIC_MODEL="claude-opus-5-5". Common models: claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5.

Troubleshooting ​

  • 401: check that ANTHROPIC_AUTH_TOKEN is complete with no extra spaces.
  • Model not found: the key's group does not include that model.
  • 404: remove the trailing /v1 from ANTHROPIC_BASE_URL.
  • Slow connection: switch to https://cf-api.xnova.online.

Released under private documentation policy.