Repository index

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

BerriAI/litellm62.8K

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 →
QuantumNous/new-api51.5K

Self-hosted gateway with OpenAI, Claude and Gemini compatible APIs, routing, access control and usage tracking. Built on One API.

GitHub →
Kong/kong44.4K

General API gateway with AI gateway features, including semantic caching and routing.

GitHub →
songquanpeng/one-api37.3K

Key-management and redistribution gateway that new-api is based on. Last push 2026-01.

GitHub →
apache/apisix17.3K

Apache API gateway with AI gateway features.

GitHub →

Model routers and cascade runtimes28

musistudio/claude-code-router38.0K

Local router that sends Claude Code requests to other models and providers by rule.

GitHub →
BlockRunAI/ClawRouter6.7K

Local router with crypto-wallet payment per call over x402. Unusual payment model.

GitHub →
vllm-project/semantic-router6.4K

Signal-driven routing layer for model and compute selection, from the vLLM community.

GitHub →
lm-sys/RouteLLM5.7K

Framework for serving and evaluating routers between a strong and a weak model. Foundational research code, unmaintained since 2024-08.

GitHub →
algorithmicsuperintelligence/optillm4.3K

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

withmartian/routerbench189

Code for RouterBench, from Martian. Last push 2024-06.

GitHub →
RouteWorks/RouterArena156

Open evaluation framework with live leaderboard for routers, including commercial ones.

GitHub →
ulab-uiuc/Router-R1155

Code for Router-R1, multi-round routing and aggregation trained by reinforcement learning (NeurIPS 2025). Last push 2025-12.

GitHub →
yanweiyue/masrouter148

Code for MasRouter, routing inside multi-agent systems. Last push 2025-10.

GitHub →
ynulihao/LLMRouterBench130

Code for LLMRouterBench (Findings of ACL 2026), the key independent test of router claims.

GitHub →

Inference-level routing and KV reuse14

vllm-project/vllm96.5K

Serving engine with automatic prefix caching. Where prompt-cache economics become concrete for self-hosters.

GitHub →
sgl-project/sglang38.5K

High-performance serving framework for LLMs; a peer to vLLM for self-hosted inference.

GitHub →
LMCache/LMCache12.3K

KV cache layer that stores and reuses caches across requests and engines.

GitHub →
ai-dynamo/dynamo8.5K

NVIDIA's distributed serving framework with KV-aware request routing.

GitHub →
kvcache-ai/Mooncake7.0K

KV-cache-centric serving platform behind Kimi, from Moonshot AI.

GitHub →

Semantic caching and prompt-cache hygiene10

zilliztech/GPTCache8.2K

Semantic cache for LLM calls, integrated with LangChain and LlamaIndex.

GitHub →
hhhuang/CAG1.6K

Code for cache-augmented generation, preloading knowledge into KV cache in place of retrieval. Last push 2025-05.

GitHub →
codefuse-ai/ModelCache931

Semantic cache from Ant's CodeFuse team. Last push 2025-06.

GitHub →
cnighswonger/claude-code-cache-fix450

Community workaround for a reported Claude Code prompt-cache regression. Shows how much cost sits in cache behaviour; check against current releases.

GitHub →
redis/redis-vl-python433

Redis vector library with semantic cache and semantic router components.

GitHub →

Coding-agent usage and cost tracking28

steipete/CodexBar23.0K

MacOS menu bar monitor for Codex, Claude Code and other quotas.

GitHub →
ccusage/ccusage19.3K

Reads local coding-agent logs and reports token use and cost by day, session and model.

GitHub →
getagentseal/codeburn11.7K

Local tracker of token use and cost across coding tools by model, project and task.

GitHub →
Maciek-roboblog/Claude-Code-Usage-Monitor8.8K

Terminal monitor with burn-rate predictions and warnings.

GitHub →
kenn-io/agentsview6.4K

Local session search, analytics and token statistics across coding agents.

GitHub →

LLM observability with cost19

langfuse/langfuse37.1K

Open tracing, evaluation and prompt platform with cost tracking.

GitHub →
SigNoz/signoz32.5K

General OpenTelemetry observability with LLM dashboards.

GitHub →
mlflow/mlflow28.7K

Long-running ML platform with LLM tracing, including token and cost views.

GitHub →
comet-ml/opik23.2K

Tracing, automated evaluation and production monitoring for LLM apps and agents.

GitHub →
Arize-ai/phoenix12.2K

Tracing and evaluation built on OpenTelemetry and OpenInference.

GitHub →

Budget enforcement, metering and FinOps10

getlago/lago10.8K

Open-source metering and usage-based billing.

GitHub →
flexprice/flexprice6.9K

Usage-based pricing and billing, cloud or self-hosted.

GitHub →
opencost/opencost6.8K

Kubernetes cost monitoring (CNCF); relevant to self-hosted inference.

GitHub →
openmeterio/openmeter2.4K

Real-time usage metering and billing for AI and API products.

GitHub →
fluxninja/aperture732

Rate limiting, caching and request prioritisation, including token-aware quotas. Last push 2025-12.

GitHub →

Token reduction and compression17

toon-format/toon25.6K

Compact JSON-equivalent serialisation for prompts.

GitHub →
microsoft/LLMLingua6.8K

Reference prompt compression family from Microsoft Research.

GitHub →
yvgude/lean-ctx3.9K

Context layer that selects task-relevant context for coding agents.

GitHub →
alexgreensh/token-optimizer2.9K

Audits Claude Code context for wasted tokens and compaction loss.

GitHub →
open-compress/claw-compactor2.0K

Rule-based multi-stage token compression. Last push 2026-04.

GitHub →

Pricing data and token counting10

openai/tiktoken19.6K

OpenAI's BPE tokeniser; the base of most local token counting.

GitHub →
AgentOps-AI/tokencost2.0K

Price estimates for many models. Last push 2025-09, so prices may be stale.

GitHub →
hanzohanzhe/Grandet1.2K

Skill and MCP server that finds the cheapest listed API for a model.

GitHub →
niieani/gpt-tokenizer857

JavaScript port of tiktoken.

GitHub →
knuddelsgmbh/jtokkit744

Java tokeniser library.

GitHub →

Curated lists12

tensorchord/Awesome-LLMOps6.0K

Broad curated LLMOps list.

GitHub →
hemingkx/SpeculativeDecodingPapers1.3K

Reading list on speculative decoding.

GitHub →
Zefan-Cai/Awesome-LLM-KV-Cache473

KV cache papers with code.

GitHub →
jjiantong/Awesome-KV-Cache-Optimization424

Companion list to an ACL 2026 survey on system-aware KV cache optimisation.

GitHub →
TreeAI-Lab/Awesome-KV-Cache-Management370

Companion list to a KV cache management survey.

GitHub →

Additional Repositories86

tashfeenahmed/freellmapi48.6K

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 →
lidge-jun/opencodex18.3K

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 →
TokenRhythm/opensquilla7.1K

OpenSquilla — Token-Efficient AI Agent with same budget, higher intelligence density

GitHub →
simplescaling/s16.7K

S1: Simple test-time scaling

GitHub →
weave-os/router5.6K

Model router for agentic systems. Routes every prompt to the right model in <50ms. Cut costs 40-70% with just an endpoint change.

GitHub →
Missing something?

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.

Type

Submissions are reviewed, then shown publicly with your display name. Please don't include personal or confidential details.