LIVE · NO BACKEND · REAL PRICES

Opus quality.
Haiku price.

Type any query. Watch a Bayesian cost router classify it, filter the lane pool, sample posteriors, and pick the cheapest model that can actually handle it. The same router that runs inside QADIR OS — verbatim heuristics, real published prices, ported to JavaScript so you can run it in your browser without trusting our backend.

13-lane pool · 9 providers Thompson sampling on Beta posteriors Sub-millisecond classification Zero network calls

01Type a query

Anything. Real questions, code requests, medical edge-cases, multi-step analyses. The classifier runs locally on each keystroke (debounced).

trivial-lookup creative-short reasoning multi-step code-synthesis premium-medical premium-legal

02Difficulty classification

Same heuristic battery as core/routing/query_difficulty.py — length, sentence count, vocab diversity, multi-step markers, reasoning markers, lookup downweight, code-synthesis detection, and premium-domain safety overrides.

Difficulty score · 0=trivial, 1=expert 0.000 · conf
← TIER 0 · local / free TIER 1 · cheap cloud TIER 2 · premium →

03Lane pool · Bayesian sampling

Lanes below the difficulty floor get filtered out (dimmed). The remaining lanes compete on cost-adjusted utility = Thompson-sampled quality / effective $/1k tokens. Gold tick = this turn's posterior sample.

04Decision · cost vs. always-Opus baseline

If you defaulted every query to Claude Opus (the safe expensive choice), you'd spend the baseline. The router picks the cheapest qualifying lane. Difference is the savings — per query, then cumulatively across this session.

Routed to
Type a query above and hit Route this query.
Saved this query
$0.00000
vs. always-Opus baseline of
Queries routed: 0 Cumulative saved: $0.00 Avg savings/query: $0.00000
// classifier + router trace will appear here after first routing

How the real router works

Three filters stacked. Each one is independently buildable. Together: "cheapest model that can handle this specific query" — with cost-aware exploration and provable safety overrides.

FILTER 01

Query-difficulty tier floor

The classifier reads the query — length, sentence count, vocab diversity, multi-step / reasoning / lookup / code-synthesis markers — and emits a tier floor. Easy queries can route to free local models; hard queries are structurally prevented from reaching free-tier lanes. Premium-domain markers (medical, legal, security) force tier-2 regardless of other signals.

FILTER 02

Thompson sampling on per-lane posteriors

Each lane has a Beta posterior over its success rate, updated from production calls. On every routing decision, the router draws a sample from each posterior. Lanes with strong track records get exploited; new or uncertain lanes get explored — the literal Bayesian bandit move. Posterior bars on the cards above visualize this live.

FILTER 03

Cost-adjusted utility ranking

Final ranking: utility = sample / effective_cost for balanced mode. Cheap mode squares the cost penalty. Quality mode ignores cost. Speed mode boosts low-latency providers (Cerebras, Groq, Haiku). The cascade always carries 2–3 fallback lanes for retry without loss of quality.

This is the brain that ships inside QADIR OS.

Same heuristics. Same posteriors. Same cost math. Wrapped in a local-first desktop OS built for engineers who got tired of paying Opus prices for Haiku-class queries. QADIR OS is in early access — request it, it is not a public download yet.

Want this in your stack, not just your browser?

A stranger-installable version of this router that drops into your codebase is in active development. When it ships, you'll be able to wire it to your providers, seed posteriors from your traffic, and get an observability endpoint. Submit a request below and we'll let you know the day it's ready.

submitting a request is free — no payment taken · everything we sell is tested before it ships, and if it breaks we make it right (refund policy)
ABUZ8 LLC · Bayesian cost router demo · Heuristics ported verbatim from core/routing/query_difficulty.py · Lane prices verbatim from config/brain_connections.yaml (2026-05-14 snapshot) · No telemetry · Runs entirely in your browser