Skip to content

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/free

The 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"
Model
Mistral 7B Instruct v0.3mistral/mistral-7b-instruct-v0.3
Qwen 2.5 Coder 0.5Bqwen/qwen2.5-coder-0.5b-instruct
Nemotron 3.5 Bolt E4Bnvidia/nemotron-3.5-bolt-e4b
Beam 1.0reflection/beam-1.0
Glyph Clusterstealth/glyph-cluster
Gemma 3n E2Bgoogle/gemma-3n-e2b
DeepSeek V4.1 Flashdeepseek/deepseek-v4.1-flash
GLM-5.3z-ai/glm-5.3

anyrouter/free picks one of these for you. Pass any listed id to --model to choose.

Start freePricing