Skip to content
Apixo
Tools

Claude Code

Use Claude Code with Apixo: environment variables or settings.json.

Hit your Claude Code limit? Run Claude Code on your own Apixo key: pay per token, no 5-hour windows, no weekly cap. Get your API key → · See prices vs official

Claude Code talks the Anthropic format, so point it at our base URL without /v1.

Option A — environment variables

export ANTHROPIC_BASE_URL=https://api.apixoai.online
export ANTHROPIC_AUTH_TOKEN=sk-apixo-...
export ANTHROPIC_MODEL=claude-fable-5
export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-fable-5
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-fable-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-fable-5
export CLAUDE_CODE_SUBAGENT_MODEL=claude-fable-5
claude

Option B — settings file

Save as ~/.claude/settings.json (all projects) or .claude/settings.json (one project):

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.apixoai.online",
    "ANTHROPIC_AUTH_TOKEN": "sk-apixo-...",
    "ANTHROPIC_MODEL": "claude-fable-5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-fable-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-fable-5",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-fable-5",
    "CLAUDE_CODE_SUBAGENT_MODEL": "claude-fable-5"
  }
}

Set every model line to the same model. Claude Code runs helper tasks (sub-agents, summaries, background steps) on its own Opus / Sonnet / Haiku settings. If you set only ANTHROPIC_MODEL, those tasks still use the default Claude models. To use one model for everything (for example a cheap DeepSeek model), put its id in all five lines.

Switch models inside Claude Code with /model <id>. Any model from the list works — including non-Claude ones.

Prompt caching is used heavily by Claude Code. Cached tokens are billed at the cache price, which keeps long sessions cheap.