All use cases
Free coding agent
Run Claude Code on free models
Point Claude Code at anyrouter/free and it codes on whichever free model is answering, with no credit deduction.
What this is for
Trying a coding agent on a hobby repo should not need a paid plan with one vendor. You want a free model that fails over, and no daily cap.
How the request flows
Claude Code
AnyRouter
Free modelfirst candidate
Next free modelif first fails
Steps, then copy
- 1.Install the anyr CLI and sign in. Upgrade to Go ($2/mo) or donate a key to get paid-model access.
- 2.Run anyr claude --model anyrouter/free. Requests do not deduct credits.
- 3.Run anyr models to list catalog ids, and switch to anyrouter/auto or a pinned model when a task needs more.
anyr CLI
bash
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr claude --model anyrouter/freeEnv wrapper
bash
export ANTHROPIC_BASE_URL="https://anyrouter.dev/api"
export ANTHROPIC_API_KEY="$ANYROUTER_API_KEY"
claude --model anyrouter/freeReady to try it
The guide has the full walkthrough. Sign up if you still need a key.
Next playbooks
- Run Claude Code through AnyRouterInstall the anyr CLI, then anyr claude — it injects the base URL, key, and model. Env vars are the fallback if you already run claude yourself.
- Go: paid models from $2 a monthThe Go plan is $2/mo and adds paid-model access with a monthly credit. Free models have no daily limit on any plan. Cancel any time. Donating a provider key can unlock Go without paying.
- Start on anyrouter/free or anyrouter/autoTwo built-in virtual models: free failover on every plan (anyrouter/free) and stable paid failover (anyrouter/auto). Do not pick a flaky SKU for your first request.