Copy-ready setup
One-liner
ANTHROPIC_BASE_URL='https://api.unlimitedai.sh' ANTHROPIC_AUTH_TOKEN='sk-xx' CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 claude --model 'anthropic/claude-opus-5'Permanent setup (~/.bashrc or ~/.zshrc)
export ANTHROPIC_BASE_URL='https://api.unlimitedai.sh'
export ANTHROPIC_AUTH_TOKEN='sk-xx'
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1Step by step
- →Install: npm i -g @anthropic-ai/claude-code
- →Buy a plan and copy your key
- →Set ANTHROPIC_BASE_URL without /v1
- →Start claude with --model and any model ID
Why use Claude Code unlimited
- →No weekly or 5-hour usage caps — a flat 28-day price
- →Unlimited tokens: long sessions and big repos are not metered
- →Switch between Claude, GPT, DeepSeek, GLM and Kimi inside Claude Code
- →8 parallel sessions on 18 Models, 16 on All 29 Models — enough for sub-agents
Best models for Claude Code
- →Planning and hard refactors: anthropic/claude-opus-5 (All 29 Models adds anthropic/claude-opus-5.5)
- →Everyday coding: anthropic/claude-sonnet-5 or anthropic/claude-sonnet-5.5
- →Fast, cheap-feeling edits: anthropic/claude-haiku-5.5 or deepseek/deepseek-v4.1-flash
- →Huge context: moonshotai/kimi-k3 or qwen/qwen3.8-max
Common Claude Code errors
- →404 Not Found: remove /v1 from ANTHROPIC_BASE_URL
- →401 Unauthorized: re-copy the key into ANTHROPIC_AUTH_TOKEN
- →Model not found: use the exact ID from the models page
Questions
- Is Claude Code really unlimited with UnlimitedAI?
- Tokens are not counted or billed and there are no weekly caps. Your plan limits how many requests run at the same time: 8 or 16 parallel sessions.
- Do I need a Claude Pro or Max subscription?
- No. Claude Code runs on your UnlimitedAI key instead of an Anthropic account. UnlimitedAI is independent and not affiliated with Anthropic.
- Can I use non-Claude models in Claude Code?
- Yes. Pass any model ID with --model, for example openai/gpt-6-luna or z-ai/glm-5.3.