Claude Code on free models
Two lines of setup. Free models bill $0 per token, with no card required.
Setup
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr claude --model anyrouter/freeThe first run asks you to sign in, creates a key and saves it. Prefer your own setup? Point Claude Code at AnyRouter with two environment variables.
Manual setup
export ANTHROPIC_BASE_URL="https://anyrouter.dev/api"
export ANTHROPIC_API_KEY="sk-ar-your-anyrouter-key"Free models
All 10 free models| Model |
|---|
Glyph Cluster stealth/glyph-cluster |
Gemma 3n E2B (on-device) google/gemma-3n-e2b |
Step 5 Preview stepfun/step-5-preview |
Apple Foundation Model (on-device) apple/foundation-model |
DeepSeek-V4-Flash deepseek/deepseek-v4-flash |
Qwen3-8B qwen/qwen3-8b |
Nemotron-3 Super 120B nvidia/nemotron-3-super-120b-a12b |
Nemotron 3 Ultra 550B nvidia/nemotron-3-ultra-550b-a55b |
anyrouter/free picks one of these for you. Pass any listed id to --model to choose.