least-cost-routing

Solid

Route a model-agnostic request to the cheapest capable (provider, model) via route_request, subject to a quality-tier floor and a hard budget cap. Use when you do not care WHICH model runs a task, only that it is cheap enough and good enough.

AI & Automation 16 stars 0 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
41
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Least-cost routing (route_request) `route_request` (sync) and `route_request_async` (async) pick the **cheapest eligible `(provider, model)`** candidate that meets your constraints, then dispatch it through the normal provider path. They are **dormant by default**: registered only when `[least_cost].enabled = true` in `~/.llm-cli-gateway/config.toml` and Personal Agent Config Kit is disabled. If the tools are absent, routing is off or Kit is active; use a specific provider tool only when that tool is valid for the active boundary. ## Never use this for a mandatory exhaustive review Least-cost routing is for a model-agnostic, cost-constrained task. It is not a review-completion mechanism. Do not use `route_request`, `route_request_async`, `select:"cheapest"`, `select:"cheapest_per_tier"`, `maxCostUsd`, a budget waiver, or output/token caps to restrict a required cross-provider review. A complete review must use the local stdio gateway MCP surface and its explicit required reviewer roster until every reviewer returns an evidence-backed unconditional approval. If a reviewer cannot run, repair/retry it or report the review incomplete/blocked; do not replace it with the cheapest candidate. When the user explicitly authorizes full provider permissions and native MCP access for that mandatory review, use `multi-llm-review`'s full-access protocol: build and launch the current target checkout's `node dist/index.js --transport=stdio` server, not a global gateway; reapply each pro...

Details

Author
verivus-oss
Repository
verivus-oss/llm-cli-gateway
Created
5 months ago
Last Updated
2 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category