Run Claude Code on Sozdai AI
Point Claude Code at our Anthropic-compatible API and code with real Claude — or cheaper DeepSeek / Kimi. Three env vars, no code changes.
export ANTHROPIC_BASE_URL="https://api.foxwire.ai"
export ANTHROPIC_AUTH_TOKEN="sk-corr-..."
export ANTHROPIC_API_KEY=""
export ANTHROPIC_DEFAULT_OPUS_MODEL="claude-opus-4-8"
export ANTHROPIC_DEFAULT_SONNET_MODEL="claude-sonnet-4-6"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-haiku-4-5"Three env vars point every request at Sozdai. Nothing else to touch.
Opus 4.8, Sonnet 4.6, Haiku 4.5 — the same models, lower price.
DeepSeek / Kimi cost a fraction and keep tool calls + thinking.
Programmatic access to the platform, one account, one balance.
Direct vs via Sozdai
| Direct Anthropic | Via Sozdai | |
|---|---|---|
| Payment | Foreign card, $20–200/mo subscription | Russian cards, pay per token in rubles |
| Anthropic account | Required | Not needed |
| Usage limits | Subscription caps and resets | No subscription — one balance, no expiry |
| Models | Claude only | Claude + DeepSeek, Kimi and more |
Set up in 3 steps
Three steps, ~2 minutes. The only thing you type yourself is your API key.
- 1
Create a Sozdai API key
Sign up and create a key — it starts with
sk-corr-. Copy the whole key now — you will paste it in step 3. - 2
Install Claude Code
Requires Node.js 18+.
bashnpm install -g @anthropic-ai/claude-code - 3
Configure your OS
Set the base URL, token and model overrides. Pick your OS:
Important: in the config below, delete the placeholder sk-corr-... and paste YOUR key from step 1 between the quotes. Example: ANTHROPIC_AUTH_TOKEN="sk-corr-a1b2c3…" — everything else stays as is.bashexport ANTHROPIC_BASE_URL="https://api.foxwire.ai" export ANTHROPIC_AUTH_TOKEN="sk-corr-..." export ANTHROPIC_API_KEY="" export ANTHROPIC_DEFAULT_OPUS_MODEL="claude-opus-4-8" export ANTHROPIC_DEFAULT_SONNET_MODEL="claude-sonnet-4-6" export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-haiku-4-5"bashsource ~/.zshrcKeep ANTHROPIC_API_KEY empty — otherwise Claude Code bypasses your base URL and calls Anthropic directly.
Start Claude Code and run /status — the API Base URL should point at Sozdai.
claude
/statusModel mapping
Claude Code has three model roles. Map each with these variables — required, or requests fail with model_not_found.
| Role | Environment variable | Real Claude | Budget swap |
|---|---|---|---|
| Opus | ANTHROPIC_DEFAULT_OPUS_MODEL | claude-opus-4-8 | deepseek-v4-pro |
| Sonnet | ANTHROPIC_DEFAULT_SONNET_MODEL | claude-sonnet-4-6 | deepseek-v4-flash |
| Haiku | ANTHROPIC_DEFAULT_HAIKU_MODEL | claude-haiku-4-5 | kimi-k2.6 |
export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-v4-pro"
export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-v4-flash"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="kimi-k2.6"Mix freely — keep Opus on real Claude, make Sonnet/Haiku cheaper, whatever fits. Compare prices on the Models page.
All models on the Claude endpoint
Every model id below works in the ANTHROPIC_DEFAULT_*_MODEL variables — not just Claude.
claude-opus-5claude-opus-4-8claude-opus-4-7claude-opus-4-6claude-sonnet-5claude-sonnet-4-6claude-haiku-4-5gpt-5.6-lunagpt-5.6-terragpt-5.6-solgemini-3.7-flashgemini-3.6-flashgemini-3.5-flashgemini-3.5-flash-litegemini-3.1-prodeepseek-v4-prodeepseek-v4-flashgrok-4.6grok-4.5kimi-k3kimi-k2.6qwen3.8-maxqwen3-coder-nextglm-5.3glm-5.3-flashglm-5.2Prices and context windows: Models page.
FAQ
No. You only need a Sozdai account and an API key — requests are served by Sozdai and billed to your Sozdai balance.
Yes — top up your Sozdai balance and pay per token. No subscription.
Yes — Sozdai provides direct programmatic access to the platform; no Anthropic account or foreign card required.
A subscription is a fixed monthly fee with usage caps. Here you pay only for tokens you actually use — heavy weeks cost more, idle weeks cost nothing.
If it is set, Claude Code sends requests straight to Anthropic and ignores your base URL. Always set it to an empty string.
Yes — 26 models work on the Claude endpoint: DeepSeek, Kimi, Gemini, GPT, Grok, Qwen and GLM, with tool calls and thinking. Full list in the “All models” section above.
Full walkthrough and troubleshooting: Claude Code docs
Start coding in 2 minutes
Create a key, paste the config, run Claude Code. Pay only for what you use.
