Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Model Routing Python Packages

Python packages with the GitHub topic model-routing. Sorted by monthly downloads, with stars and forks.
FiredMosquito831
my-claude-code

Local multi-provider LLM proxy, model router and control plane for Claude Code, Codex, OpenCode and Gemini CLI: 60 providers, fallback routing, credential health, web search and cost provenance.

40K 19 4
xorbitsai
xrouter-llm

A prompt-aware LLM router that predicts which models can complete each request, then selects the cheapest capable one: 53.2% lower cost and +1.9 pts completion on our tested dataset.

27K 42 2
WendellResearch-AI
benchwarmers

Self-hosted panel gateway for LLMs: ask a collection of models at once, keep every answer side by side, rotate explorer models in, and let your verdicts pick the next panel. OpenAI, Anthropic, Gemini and Ollama APIs, an MCP server, Python stdlib.

17K 1 0
codai-ro
codai-sdk

Official Python SDK for codai - OpenAI-compatible client for the codai gateway. PyPI: codai-sdk

17K 0 0
AlgenAI
algen-agent-runtime

Provider-neutral Python runtime for governed AI agents: approvals, policies, budgets, tenant isolation, audit and OpenTelemetry in the execution path. Works alongside LangGraph and the OpenAI Agents SDK.

10K 7 4
sekacorn
agentforge-oss

Open-source multi-agent orchestration with cost-awareness, security, and compliance built in. Anthropic, OpenAI, and offline providers.

5K 0 1
jordimarsal
buildwright

The craftsman who builds per the spec: per-agent model routing for AI agents (LangGraph + PydanticAI + LiteLLM + Langfuse)

5K 0 0
slavabars
decision-cascade

Local decision engine with typed, calibrated outputs (Noul/Choice/Score): cheap→strong cascade, ECE/Brier calibration, SystemOne protocol interop. Apache-2.0.

4K 24 2
Greatbeing
modellens-mcp

See which of your models actually works. MCP server for multi-provider model quality: discover, probe, rank and recommend across OpenAI-compatible gateways.

4K 2 1
maxtmiller
sureshot

Fast, calibrated decisions from a System 1 model, with escalation to a stronger System 2 model when it's unsure

4K 1 0
kalibr-ai
kalibr

Stop overpaying to run your agents. Kalibr routes every request to lower-cost model and tool paths without degrading performance.

3K 34 3
doramirdor
nadirclaw

Source-available LLM router and AI cost optimizer. Routes simple prompts to cheap or local models and complex ones to premium models, automatically. Drop-in OpenAI-compatible proxy for Claude Code, Codex, Cursor and OpenClaw. Self-hosted, no middleman.

3K 667 79
Suryanshu-77
tierwise

Cost-aware, self-hosted LLM gateway with a learned router

3K 0 0
eggstack
eggpool

for routing to multiple provider backends

3K 3 1
KushagraKanaujia
throttle-pro

Stop renting your AI. Throttle tests your AI calls against cheaper models on your own traffic and moves the ones that pass. Open source.

2K 7 6
Abhiindigloo
model-finder-mcp

Model Finder: find the cheapest AI model that passes your own tests. MCP server + Agent Skills for model audits, evals, cheapest-first routing and local model sizing.

2K 7 2
JarJarBeatyourattitude
evalt

Budget-bounded LLM routing that finds the cheapest model and prompt meeting your accuracy target.

2K 0 0
ai-solution-architect-roadmap
claude-code-router

Routes each Claude Code task to the cheapest model and effort that should be enough. Rule-based and local, using the code graph, risk, past outcomes and weekly usage.

2K 0 0
amirimi
litellm-brownout

LiteLLM plugin that downgrades selected routes to cheaper models as a team's budget runs out

1K 1 1
CommonstackAI
uncommon-route

Automatic LLM router — 82% cost savings, 79.4% accuracy, 93.4% pass rate. Drop-in OpenAI proxy.

1K 703 30
hermes-labs-ai
claude-router

claude-router is a local prompt router that picks the right Claude model tier and prepends the right scaffold using local embeddings before you call the API. A deterministic routing layer for eval, research, content, and review prompts that helps teams stop overspending on Sonnet and Opus when Haiku plus structure is enough.

914 3 0
johanity
langchain-router

Cost-aware model routing for LangChain agents. Routes execution turns to a fast model, keeps the expensive model for planning and recovery.

908 7 1
thetaplex
thetarelay

Routing proxy for coding agents: a local judge sends easy requests to a lite model (local or hosted) and hard ones to a frontier model

878 0 0
Amazed-Labs
llm-pqr

Provider-neutral LLM model selection using measured quality, latency, cost, capabilities, and hard privacy constraints.

654 1 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology