Dec 2026 Release: Native protocol routing & sticky sessions for Claude 5.5, GPT-6.2, Gemini 4 & DeepSeek V4
Explore Model Plaza →
CLI Setup 2026-12-05 · 4 min read

How to Configure Claude Code with Aiozium Native /v1/messages Relay

Step-by-step guide to routing Claude Code CLI through Aiozium using ANTHROPIC_BASE_URL, persistent settings.json, and sticky-session Prompt Caching for Claude Opus 5.5 and Sonnet 5.5.

Persistent Configuration (~/.claude/settings.json)

Create an API key in the Aiozium Console, then configure ~/.claude/settings.json ($HOME\.claude\settings.json on Windows):

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://www.aiozium.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-aiozium-api-key",
    "ANTHROPIC_MODEL": "claude-sonnet-5-5",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
  }
}

Quick Per-Shell Verification

export ANTHROPIC_BASE_URL="https://www.aiozium.com"
export ANTHROPIC_AUTH_TOKEN="sk-your-aiozium-api-key"
claude --model claude-opus-5-5

Verification Checklist

Setting Expected Value Common Pitfall
ANTHROPIC_BASE_URL https://www.aiozium.com Appending /v1 causes /v1/v1/messages 404
Auth variable ANTHROPIC_AUTH_TOKEN Mixing ANTHROPIC_API_KEY + stale OAuth session causes 401
Daily model claude-sonnet-5-5 Using deprecated dated snapshots
Heavy refactor model claude-opus-5-5 Leaving Opus active on trivial boilerplate tasks

If you hit authentication errors, jump straight to our Claude Code 401 & OAuth Conflict Runbook.

Related Questions

Should ANTHROPIC_BASE_URL end with /v1?

No. Claude Code and official Anthropic SDKs automatically append /v1/messages. Passing /v1 causes /v1/v1/messages 404 errors.

Why did Claude Code return 401 right after switching from an official login?

Run claude logout to remove cached local OAuth tokens so Claude Code exclusively sends your ANTHROPIC_AUTH_TOKEN.