apixly.ai

Claude Code

Point Claude Code at the apixly gateway with two environment variables — the key must be bound to a Claude group.

One-off: environment variables

Set the base URL to the bare domain (no /v1) and use your key as the auth token:

bash
export ANTHROPIC_BASE_URL="https://apixly.ai"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
claude

Persistent: settings.json

To avoid exporting variables in every shell, put them in Claude Code's settings file:

json
// ~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://apixly.ai",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY"
  }
}

Verify

Start claude and send any message. If auth fails, check that the key's group platform is Claude and that the base URL has no trailing /v1.