All use cases
Free coding agent
Pin MiniMax M3.1 Flash free in Claude Code
minimax/minimax-m3.1-flash:free has a 1M-token context window and function calling, and costs $0. Pin it when you want one known model instead of the anyrouter/free chain.
What this is for
anyrouter/free picks a different free model each time, so behavior shifts between runs. A long agent session on a repo needs one model with a large context and working tool calls.
Steps, then copy
- 1.Install the anyr CLI and sign in. Any plan works, including Free.
- 2.Run: anyr claude --model minimax/minimax-m3.1-flash:free
- 3.A pinned model also sets Claude Code's haiku, sonnet, opus and subagent models.
- 4.Check the model page for the current price and limits.
anyr CLI
bash
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr claude --model minimax/minimax-m3.1-flash:freeLimits
- If every route for a :free model fails, anyrouter/free answers instead and the response says so in x-anyrouter-fallback.
- Free requests allow 2400 a minute per API key and have no daily cap.
Ready to try it
The guide has the full walkthrough. Sign up if you still need a key.
Next playbooks
- Run Claude Code on free modelsPoint Claude Code at anyrouter/free and it codes on whichever free model is answering, with no credit deduction.
- 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.
- 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.