Local-first LLM gateway
Routiq
A self-hosted gateway that reuses semantically similar responses, routes requests by complexity, and records model spend. Security work includes API-key checks, provider URL validation, and keeping prompt text out of logs.
- Up to 88%
- cost savings
- 84%
- cache hit rate
- 9 ms
- p50 gateway overhead
- What was measured
- Cache hit rate, API cost savings, and gateway overhead were reported separately. Gateway overhead was 9 ms at p50 and 67 ms at p95. The public write-up does not specify the request count or the exact cost comparison setup.
- How the cache was tuned
- I tuned a 0.82 cosine-similarity cutoff on live traffic using MiniLM embeddings. A loose cutoff can confuse a request about sorting a list with one about sorting a dictionary. Long conversations can also match on shared context even when the latest question differs.



