9Router uses a 3-tier fallback system to automatically route requests through the best available provider based on quota, cost, and availability. This ensures continuous service even when primary subscriptions are exhausted or rate-limited.
The 3 Tiers
- Tier 1: SUBSCRIPTION (Primary) - Maximizes value from existing paid services (e.g., Claude Code, OpenAI Codex, Gemini CLI, GitHub Copilot).
- Tier 2: CHEAP (Backup) - Ultra-low-cost providers used when subscription quotas run out (e.g., GLM-4.7, MiniMax M2.1, Kimi K2).
- Tier 3: FREE (Emergency) - Zero-cost providers for unlimited coding when budgets are reached (e.g., iFlow, Qwen, Kiro).
Routing Logic
When a request is made, 9Router follows this sequence:
- Check Quota: Verifies if the primary provider has remaining quota.
- Check Cost Tier: Follows the hierarchy: Subscription $\rightarrow$ Cheap $\rightarrow$ Free.
- Check Reset Timing: Considers when quotas will reset.
- Check Provider Health: Automatically skips providers returning errors (e.g., 503 Service Unavailable).
Request $\rightarrow$ 9Router $\rightarrow$ Check Tier 1 (Subscription)
$\downarrow$ quota exhausted
Check Tier 2 (Cheap)
$\downarrow$ budget limit
Check Tier 3 (Free)
$\downarrow$
Response