Running it
git clone https://github.com/mariobgsp/routre && cd routre
make build
./routre version
./routre setup # writes config.json + routre.env (0600)
./routre serve # gateway on 127.0.0.1:20128
curl http://127.0.0.1:20128/healthz
export OPENAI_BASE_URL=http://127.0.0.1:20128
export ANTHROPIC_BASE_URL=http://127.0.0.1:20128
What I observed
request 1: X-Llrouter-Cache: miss X-Llrouter-Provider: openrouter-economy
request 2: X-Llrouter-Cache: hit
ledger: 2 requests · 15 tokens used · 9,643 saved (9,633 RTK + 10 cache)
Two facts are reproducible: the second request never reached a provider, and the first reached the second tier because the first failed. The 99.8% saving comes from a deliberately repetitive fixture. The headline is the CI-gated 94.8% aggregate and 93.3% worst-payload tool-token reduction, measured by make bench, failing below 90%. It applies to tool-result tokens only.