A checklist for deciding whether Tyr fits your traffic. Steps 1–3 need only Node.js 22 or newer. None of it needs Kubernetes or Latchflo.
npm ci
npm run eval
The evaluation starts three local processes: a mock OpenAI provider that serves
8 requests at a time and answers 429 beyond that, a local token issuer, and Tyr
with eval/tyr.eval.yaml. It then sends the same workload
twice, straight to the provider and through Tyr: 3 interactive callers and a
flood of 24 batch callers.
npm run eval:serve
In another terminal, run either quickstart. Each calls responses.create and
Chat Completions through Tyr and prints the admission class Tyr selected.
npm --prefix eval/sdk install && node eval/sdk/quickstart.mjs
pip install -r eval/sdk/requirements.txt && python3 eval/sdk/quickstart.py
http://127.0.0.1:8787/v1) and an
x-tyr-identity-token header. It keeps sending its own provider key.curl -s http://127.0.0.1:8787/metrics | grep openai-eval shows admissions
and rejections per class.OPENAI_API_KEY=... npm run eval -- --upstream=openai --model=<model> --confirm-live
At most 40 requests reach OpenAI, each limited to 16 output tokens, and the run
stops at the first error that is not a capacity 429. server.maxOutputTokens
in the evaluation config rejects any request that asks for more than 256 output
tokens before it reaches the provider. OpenAI's own capacity is large, so here
Tyr's configured pool is the constraint: interactive traffic stays admitted while
batch is held to its ceiling.
node dist/cli.js validate --config ./tyr.yaml.admissionMode: observe. Tyr makes every decision but forwards requests
it would have rejected./stats,
tyr_pool_observe_bypassed_total, and tyr_pool_advisory_would_reject_total.enforce on a canary only if those trade-offs are acceptable./healthz for liveness and /readyz for readiness. Without Latchflo,
/readyz is ready as soon as Tyr is listening. In managed mode it returns
503 until every managed pool has a valid grant.server.maxRequestBodyBytes, server.maxOutputTokens, and timeouts for
your workloads, and scrape /metrics.Several Tyr replicas each enforce their own local limits, so one shared provider capacity has to be split between them by hand. Latchflo, a separately licensed control plane, divides one capacity envelope across the fleet, lends idle protected capacity to other workloads, and takes it back when demand returns, without sitting in the request path. Contact mofluxhq@gmail.com to evaluate it.