llm-routing-gateway
A policy-driven model router with explainable decisions, fallbacks behind circuit breakers, tenant budgets, and a replay harness that regression-tests routing changes against recorded traffic.
- Status
- Reference implementation. Providers are in-process mocks, and models, prices and tenants are fictional. No network calls.
- Authorship
- "Implemented with AI coding agents (Claude Code)," in the repository's own words: an independent reference implementation written from scratch, with fictional providers and prices.
- Stack
- TypeScript · Node.js 22 · Vitest · No runtime dependencies
- Demonstrates
- Constraint filtering with reason codes · Deterministic weighted ranking · Fallback chains and circuit breakers · Windowed tenant budgets · Replay diff as a CI gate
- Verified
- 122 Vitest tests pass; lint, type check and build are clean; route and replay return their documented exit codes, and the sample log regenerates byte-identically. Observed at commit
838bb497e189d61e133babf6d21d1d50b6219dc6. - Commands run
npm ci npm run lint npm run typecheck npx vitest run npm run build- Repository
- github.com/Donovanfitch-dev/llm-routing-gateway