Claude Code on free models
Two lines of setup. Free models bill $0 per token on Go, after a 5-request trial. Get Go with a $2/month plan or one donated key.
Setup
curl -fsSL https://anyr.dev/cli.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. Read the full guide.
Manual setup
export ANTHROPIC_BASE_URL="https://anyrouter.dev/api"
export ANTHROPIC_API_KEY="sk-ar-your-anyrouter-key"Free models
All 17 free models| Model |
|---|
Mistral 7B Instruct v0.3 mistral/mistral-7b-instruct-v0.3 |
Qwen 2.5 Coder 0.5B qwen/qwen2.5-coder-0.5b-instruct |
Nemotron 3.5 Bolt E4B nvidia/nemotron-3.5-bolt-e4b |
Beam 1.0 reflection/beam-1.0 |
Glyph Cluster stealth/glyph-cluster |
Gemma 3n E2B google/gemma-3n-e2b |
DeepSeek V4.1 Flash deepseek/deepseek-v4.1-flash |
GLM-5.3 z-ai/glm-5.3 |
anyrouter/free picks one of these for you. Pass any listed id to --model to choose.