Install
openclaw skills install smart-router-codingRoute coding queries to the right model. Fast for lint, deep for architecture, never waste money on Opus for a one-liner.
openclaw skills install smart-router-codingRoute coding queries to the right model. Fast for lint. Deep for architecture. Nothing in between.
Send a coding task. The router decides depth:
INPUT: coding query
↓
Is it cached? → Return instantly (0 cost)
↓ if no
What kind of task?
SIMPLE
lint / format / boilerplate / regex
one-liners / find & replace / rename
→ Qwen3.5 Flash ($0.0008/q)
→ 21s latency
MODERATE
debug / refactor / implement function
code review / write tests / SQL / scripts
→ Grok 4.20 ($0.004/q)
→ 11s latency
COMPLEX
architecture design / security audit
performance optimization / algorithms
multi-file changes / critical logic
→ Opus 4.8 ($0.015/q)
→ 45s latency
| Setup | Cost per query | Monthly (1k queries) |
|---|---|---|
| All Opus 4.8 | $0.015 | $15 |
| All Grok 4.20 | $0.004 | $4 |
| With router | ~$0.003 | $3 |
Router adds 2ms. The rest is the LLM — you'd wait that long anyway.
What changes is your average response time:
| Setup | Average wait per query |
|---|---|
| All Opus 4.8 | 45s |
| All Grok 4.20 | 11s |
| With router | ~13s |
Simple tasks go to Qwen (21s). Standard goes to Grok (11s). Opus only when necessary (45s).
131 coding queries benchmarked across 7 languages. Full results: certainlogic.ai/benchmarks
clawhub install smart-router-coding
Created by CertainLogic — deterministic AI infrastructure. certainlogic.ai