modelroute-dial routed 13 of 16 mock requests and logged the reason for every one
modelroute-dial is a local proxy that sends each LLM request to the cheapest configured model meeting its quality and latency floor. Our keyless run used mock providers, so it proves wiring, not savings.
By David Discua
Measured in the lab
- 16
- requests through the dial
- 13
- routed OK
- 2
- fallbacks used
- 9/9
- price strings re-verified
- 16 log lines written for 16 requests
- No prompt text found in the log
- 6 cross-format translations between OpenAI and Anthropic wires
- Request over the remaining budget refused with 429
- 9 of 9 price strings matched the official pricing pages
From reports/modelroute-dial.json · run on October 21, 2026. Mock providers, the real dial server, 16 HTTP requests from fixtures/scenario.json; token counts from the mock's chars/4 heuristic; Bun 1.4.3
How it is wired
01/04Your agent keeps its code and points its base URL at the dial.
modelroute-dial is a local HTTP proxy that speaks both the OpenAI and the Anthropic wire format. You change your agent's base URL, and the dial sends each request to the cheapest configured model that meets that request's quality floor, latency ceiling and cost cap, falls back to the next one on rate limits and server errors, and writes one JSON line explaining the choice. We ran 16 requests through the real dial server against mock providers: 13 were routed, 2 had no model that met the requirement, and 1 was refused for budget. The catch is that every provider in the run was a mock, so this shows the routing logic works and says nothing about real savings or answer quality.
The catch
The quality tiers (1 to 4) and latency classes in config/dial.config.json are editable opinions, not benchmark results. A saving here means a cheaper model in the same configured tier, which may not give the same answer. Token counts in the run come from the mock's chars/4 heuristic, so the cost column in the report shows the dial's arithmetic, not a bill. No live model call was measured, because the live path was not run in this lab. The dial:auto mode uses ClawRouter's keyword rules classifier, which will misjudge some prompts. There is no inbound auth, so anything on the machine that can reach the port can spend your budget; keep the default 127.0.0.1 bind.
What we ran (keyless)
bun install --frozen-lockfile
bun run dial demo
bun run dial explain "Prove sqrt(2) is irrational" --all
bun run report
From reports/modelroute-dial.json, run on October 21, 2026, with mock providers and the real dial server:
| Metric | Value |
|---|---|
| Requests through the dial | 16 |
| Routed OK | 13 |
| Cross-format translations (OpenAI and Anthropic) | 6 |
| Fallbacks used (429 / 529) | 2 |
| Unmet requirement (503) | 2 |
| Budget refusals (429) | 1 |
| Dial latency p50 (mock upstream) | 1 ms |
| Proxy overhead p50 | 1 ms |
| Log lines written | 16 |
| Prompt text found in the log | no |
The scenario covers the cases a router has to get right. A quality-2 request that asked for the fastest latency class returned 503, because no configured model met both, instead of quietly using a slower one. A request with a 0.0001 USD cost cap and 4000 max_tokens also returned 503. With the total budget set to 0.0001 USD, a quality-1 request went to the local model and a quality-3 request was refused with 429. A model that had answered 429 was skipped on the next request while it cooled down.
The price table is real. It holds list prices copied from the official Google, Anthropic and OpenAI pricing pages on October 21, 2026, each with its source URL, and bun run prices:verify re-downloaded those pages and matched 9 of 9 price strings with no mismatch.
How it is wired
Headers such as x-dial-min-quality set the requirement, and otherwise the model field does: dial:q3 is an explicit floor, a hardcoded model id becomes a quality floor, and dial:auto goes to the classifier. The dial ranks every model with a key by estimated cost, drops the ones that fail the floor, the cooldown or the budget, and calls the cheapest. Same-format calls only swap the model field, so tools and images survive. Cross-format calls are text-only.
Minilab (open source)
The dial:auto classifier is vendored from BlockRunAI/ClawRouter 0.12.287 (6,633 stars, MIT, TypeScript, as of October 24, 2026), without its wallet or payment code. Run bun run dial demo, then edit the tiers in config/dial.config.json to match your own evals before you trust a routing choice.
Run it yourself
SkilledDragonCorp/modelroute-dial
Clone, install and run the report with no API keys. The numbers above are what that run writes.
bun install --frozen-lockfile && bun run dial demoSkilledDragon is not affiliated with Google, Anthropic, OpenAI or BlockRunAI. Results come from mock providers in our own keyless lab run and show routing behavior, not real cost or quality; re-run the demo before relying on them. Marks belong to their owners.
All labs