Claude Code is Anthropic's terminal coding agent. Point it at Utopixel as an LLM gateway and pay per token from your Utopixel balance instead of a subscription.
You need a Utopixel API key. Create one, add credit, and keep it handy.
Create a Utopixel API key in the console.
Add the env block below to ~/.claude/settings.json (it applies to every project). Keep the key out of a project's committed .claude/settings.json.
Start claude and run /status: the Anthropic base URL line should show https://utopixel.online/api and an Auth token line should name ANTHROPIC_AUTH_TOKEN.
Pick a model with /model or claude --model claude-sonnet-4-6. Anthropic model names and our ids such as anthropic/claude-sonnet-4.6 both work.
{"env": {"ANTHROPIC_BASE_URL": "https://utopixel.online/api","ANTHROPIC_AUTH_TOKEN": "sk-vb-your-utopixel-key"}}
ANTHROPIC_AUTH_TOKEN sends the key as a Bearer token, which is what Utopixel reads. Claude Code adds /v1/messages to the base URL itself, so leave /v1 off.
While the token is set, requests are billed to your Utopixel balance and your claude.ai subscription limits do not apply. Run /logout if Claude Code warns about two credentials.
For the VS Code extension, set the same two variables in claudeCode.environmentVariables in your VS Code user settings.
Anthropic supports Claude Code only on Claude models, so use Claude models here.
Every setting above comes from Claude Code's official docs
Paste any of these ids into Claude Code. Prices are per 1M tokens, pay as you go.
| Model id | Input | Output | Context |
|---|---|---|---|
Claude Fable 5.2anthropic/claude-fable-5.2 | $8.00 | $40.00 | 1M |
Claude Haiku 5.5anthropic/claude-haiku-5.5 | $0.10 | $0.50 | 1M |
Claude Sonnet 5.5anthropic/claude-sonnet-5.5 | $2.00 | $10.00 | 1M |
Claude Opus 5.5anthropic/claude-opus-5.5 | $4.00 | $20.00 | 1M |
Stuck on setup? Email [email protected] with the error you see and we will help you get Claude Code running.
One API key for the models of OpenAI, Google, DeepSeek, Moonshot AI, Qwen, xAI, Z.ai, Meta, Amazon, AionLabs, Anthropic, Baidu, ByteDance Seed, Cohere, Elorian, Fireworks AI, IBM, inclusionAI, Inference.net, KT, Liquid AI, Meituan, Meta, MiniMax, Mistral AI, Moondream, Motif Technologies, Nex AGI, NVIDIA, Particle AI, Perceptron, Prism ML, Reflection AI, Reka, Relace, Ricursive AI, Sakana AI, StepFun, Tencent, Thinking Machines, Unbiased, Upstage, Writer and Xiaomi. Start free, no card needed.