Skip to content
All use cases

Free coding agentCoding agents · Free

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.

Set it up

anyr CLI
$ curl -fsSL https://anyrouter.dev/cli.sh | bash$ anyr claude --model anyrouter/free
  1. 1.Install the anyr CLI and sign in. Free models unlock with a $5 top-up, Go or higher, or one donated working provider key.
  2. 2.Run anyr claude --model anyrouter/free. Requests do not deduct credits.
  3. 3.Switch to anyrouter/auto or a pinned model when a task needs more. Paid models use credits.
Why use this

Trying a coding agent on a hobby repo should not need a big bill. Go costs $2/mo, or nothing with one donated key, and gives you a free model that fails over with no daily cap.

How the request flows
Claude Code
AnyRouter
Free modelfirst candidate
Next free modelif first fails
Other ways to set it up
Env wrapper
export ANTHROPIC_BASE_URL="https://anyrouter.dev/api"
export ANTHROPIC_API_KEY="$ANYROUTER_API_KEY"
claude --model anyrouter/free
Endpoints and key
OpenAI-compatible
https://anyrouter.dev/api/v1
Anthropic-compatible
https://anyrouter.dev/api
Key
ANYROUTER_API_KEY (sk-ar-…)
Watch the walkthrough