Claude Code
Point Claude Code at https://api.vanix.io to run agentic coding sessions with full support for extended thinking, tool calls, and Anthropic prompt caching.
1. Install Claude Code
bash
npm install -g @anthropic-ai/claude-code2. Configure Environment Variables
Add the following to ~/.zshrc or ~/.bashrc (note: do not append /v1 to ANTHROPIC_BASE_URL—the Anthropic SDK appends /v1/messages automatically):
bash
export ANTHROPIC_BASE_URL="https://api.vanix.io"
export ANTHROPIC_AUTH_TOKEN="sk-your-vanix-api-key"
export ANTHROPIC_MODEL="claude-sonnet-4-5"Alternatively, persist settings in ~/.claude/settings.json:
json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.vanix.io",
"ANTHROPIC_AUTH_TOKEN": "sk-your-vanix-api-key",
"ANTHROPIC_MODEL": "claude-sonnet-4-5"
}
}3. Launch & Verify
bash
cd your-project
claudeInside Claude Code, run /status to confirm the active base URL (https://api.vanix.io) and model.
Dedicated Coding Key
Issue a separate Vanix AI token specifically for Claude Code with a monthly quota limit so runaway agent loops cannot exhaust your primary production balance.