Claude API and Claude Code
Claude API for Claude Code with a NekoRouter key: two environment variables, Claude models, pay with USDT/USDC from $1.
Claude API for Claude Code — the same models as the official API, at relay prices. Claude Code runs on a NekoRouter Claude API key — no Anthropic account needed.
Step-by-step guides: Use NekoRouter in Claude Code · Claude models
Claude works in Claude Code only. Claude models (
claude-*) currently work only in the Claude Code client. In SDKs and other clients (Cursor, Cline, Codex CLI and others) pick another model: https://nekorouter.cc/pricing.
Prices
| Model | Input | Output | Cache read | Cache write |
|---|---|---|---|---|
| claude-sonnet-4-6 | 1.14 | 5.7 | 0.114 | 1.425 |
| claude-opus-4-8 | 1.9 | 9.5 | 0.19 | 2.375 |
| claude-haiku-4-5 | 0.38 | 1.9 | 0.038 | 0.475 |
| claude-sonnet-5 | 0.76 | 3.8 | 0.076 | 0.95 |
Prices are USD per 1M tokens, as of 2026-10-27 (https://nekorouter.cc/pricing).
Setup
- Get a key: https://nekorouter.cc/sign-up → Wallet → Top up → Keys → API keys → Create API key.
- Install Claude Code:
npm install -g @anthropic-ai/claude-code - Set the environment variables (macOS / Linux):
export ANTHROPIC_BASE_URL=https://nekorouter.cc
export ANTHROPIC_AUTH_TOKEN=sk-...
claude
The base URL goes without /v1.
- Pick a model inside Claude Code:
/model claude-sonnet-4-6. - Check usage under Logs → Usage log in the NekoRouter console.
Payment
Payment is USDT (BEP20, TRC20) and USDC (BEP20, Polygon, Solana) only. Minimum top-up is $1; an invoice is valid for 20 minutes. Sign up with a username and password at https://nekorouter.cc/sign-up, no email confirmation. New users get $1.
FAQ
Do I need an Anthropic account for Claude Code? No, a NekoRouter key and two environment variables are enough.
Which base URL do I use? https://nekorouter.cc, without /v1.
Why does a Claude model not work in Cursor or an SDK? Claude models currently work only in Claude Code. Pick another model in other clients.
Support: Telegram @nekorouter_cc.