Economics & Model Routing Repositories
288 repositories in 12 categories, ranked by importance within each. Star counts read from GitHub on 7 November 2026; stars are not evidence of adoption. Starts to matter at L5, is acute at L7, becomes infrastructure at L9 and is capped at L10.
Gateways and proxies47
Python SDK and proxy with a Rust core: one OpenAI-style interface to many providers, with cost tracking, virtual keys, budgets, load balancing and fallbacks. The default reference point for self-hosted gateways.
GitHub →Self-hosted gateway with OpenAI, Claude and Gemini compatible APIs, routing, access control and usage tracking. Built on One API.
GitHub →General API gateway with AI gateway features, including semantic caching and routing.
GitHub →Key-management and redistribution gateway that new-api is based on. Last push 2026-01.
GitHub →Model routers and cascade runtimes28
Local router that sends Claude Code requests to other models and providers by rule.
GitHub →Local router with crypto-wallet payment per call over x402. Unusual payment model.
GitHub →Signal-driven routing layer for model and compute selection, from the vLLM community.
GitHub →Framework for serving and evaluating routers between a strong and a weak model. Foundational research code, unmaintained since 2024-08.
GitHub →Optimising inference proxy that spends extra test-time compute to raise a cheap model's accuracy. The inverse trade to routing.
GitHub →Router benchmarks and research code7
Open evaluation framework with live leaderboard for routers, including commercial ones.
GitHub →Code for Router-R1, multi-round routing and aggregation trained by reinforcement learning (NeurIPS 2025). Last push 2025-12.
GitHub →Code for MasRouter, routing inside multi-agent systems. Last push 2025-10.
GitHub →Code for LLMRouterBench (Findings of ACL 2026), the key independent test of router claims.
GitHub →Inference-level routing and KV reuse14
Serving engine with automatic prefix caching. Where prompt-cache economics become concrete for self-hosters.
GitHub →High-performance serving framework for LLMs; a peer to vLLM for self-hosted inference.
GitHub →KV cache layer that stores and reuses caches across requests and engines.
GitHub →Semantic caching and prompt-cache hygiene10
Semantic cache for LLM calls, integrated with LangChain and LlamaIndex.
GitHub →Code for cache-augmented generation, preloading knowledge into KV cache in place of retrieval. Last push 2025-05.
GitHub →Community workaround for a reported Claude Code prompt-cache regression. Shows how much cost sits in cache behaviour; check against current releases.
GitHub →Redis vector library with semantic cache and semantic router components.
GitHub →Coding-agent usage and cost tracking28
Reads local coding-agent logs and reports token use and cost by day, session and model.
GitHub →Local tracker of token use and cost across coding tools by model, project and task.
GitHub →Terminal monitor with burn-rate predictions and warnings.
GitHub →Local session search, analytics and token statistics across coding agents.
GitHub →LLM observability with cost19
Budget enforcement, metering and FinOps10
Rate limiting, caching and request prioritisation, including token-aware quotas. Last push 2025-12.
GitHub →Token reduction and compression17
Pricing data and token counting10
Price estimates for many models. Last push 2025-09, so prices may be stale.
GitHub →Curated lists12
Companion list to an ACL 2026 survey on system-aware KV cache optimisation.
GitHub →Additional Repositories86
7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
GitHub →Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code
GitHub →OpenSquilla — Token-Efficient AI Agent with same budget, higher intelligence density
GitHub →Model router for agentic systems. Routes every prompt to the right model in <50ms. Cut costs 40-70% with just an endpoint change.
GitHub →Know a paper, tool, or repo that should be listed here? We want this index to be exhaustive.
Comments and recommendations
Discuss this page, or recommend a paper, tool, system or correction.