ClawRouter: A Smart LLM Router That Cuts Your Inference Costs
Watch on TikTok
ClawRouter is an open-source LLM router that automatically sends each request to the cheapest model capable of handling it. Simple questions go to cheap models. Complex code goes to expensive ones. It runs locally, supports micropayments so you do not need to manage API keys for every provider, and claims to cut inference bills by around 80%.
How the Routing Works
ClawRouter uses a 14-dimension weighted scoring system that runs entirely on your machine in under 1 millisecond. No external API calls are made for the routing decision itself.
The router classifies requests into four tiers, each mapped to a different model:
| Tier | Primary Model | Cost/M | Savings vs Opus |
|---|---|---|---|
| SIMPLE | deepseek-chat | $0.27 | 99.6% |
| MEDIUM | gpt-4o-mini | $0.60 | 99.2% |
| COMPLEX | claude-sonnet-4 | $15.00 | 80% |
| REASONING | o3 | $10.00 | 87% |

Based on traffic distribution (45% simple, 35% medium, 15% complex, 5% reasoning), the blended average cost comes to $3.17/M tokens, compared to $75/M for Claude Opus. That is a 96% savings on a typical workload.
Setup
Installation takes three steps:
- Install the plugin:
openclaw plugin install @blockrun/clawrouter - Fund your wallet with USDC on Base (the address prints on install). $5 is enough for thousands of requests.
- Enable smart routing:
openclaw config set model blockrun/auto

Every request now routes to the cheapest capable model. The system supports 30+ models across OpenAI, Anthropic, Google, DeepSeek, xAI, and Moonshot through a single wallet.
Key Features
- 100% local routing. The scoring runs on your machine. No data leaves for routing decisions.
- Zero external calls for routing. No API calls to decide which model handles the request.
- x402 micropayments. Pay per request with USDC on Base. No need to manage API keys for each provider.
- Open source. MIT licensed with fully inspectable routing logic.

Key Takeaways
- ClawRouter routes each LLM request to the cheapest model that can handle it, using local scoring with no external API calls
- The four-tier system (simple, medium, complex, reasoning) maps to different models at different price points
- Setup is three commands and a $5 USDC deposit, then every request auto-routes through a single wallet
Resources
- BlockRunAI/ClawRouter -- GitHub repository with full documentation and routing logic
Published May 25, 2026. Writeup generated from a favorited TikTok.