llm-finops-router

llm-finops-router is a skill for Cursor from roedyrustam/vibes-plug. It costs 41 tokens per session (7,766 once invoked), scanned A, original, MIT.

A guide to routing requests between AI language models based on cost, speed and reliability. It covers tools such as LiteLLM and Portkey, which provide common access and routing or gateway controls for different model providers.

In plain words
What is it for?
Use it to design cost-aware model selection, provider fallbacks, latency-aware routing and FinOps analysis for applications that use several language models.
Why use it?
It helps avoid sending every request to the most expensive model and provides a plan for rate limits or provider outages. It also describes caching similar requests to reduce repeated model usage.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin. Also seen: positional $N argument.

Part of the vibes-plug plugin — 179 skills, 9 agents, 2 MCP servers shipped together

Good fit Use it to design cost-aware model selection, provider fallbacks, latency-aware routing and FinOps analysis for applications that use several language models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/llm-finops-router
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add roedyrustam/vibes-plug --skill llm-finops-router
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 179 skills, 9 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for llm-finops-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/llm-finops-router/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/llm-finops-router)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/llm-finops-router"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/llm-finops-router/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for llm-finops-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/llm-finops-router"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/llm-finops-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,766 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.07766
Opus 5.5 $0.00016 $0.03106
Sonnet 5.5 $0.00008 $0.01553
Haiku 4.5 $0.00004 $0.00777

Measured 15d ago against content hash a93a820a6459, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

llm-finops-router scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

await fetch(slackWebhook, {
.cursor/skills/llm-finops-router/SKILL.md · 709 lines

How it starts

The opening of the file, as written. The whole thing — 709 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LLM FinOps & Dynamic Model Router

English | Bahasa Indonesia


English

Orchestration & Integration

  • Upstream & Orchestration: zero-to-prod-orchestrator (Phase 4 AI integration), brainstorming, session-memory-manager.
  • Model Routing & Cascading: adaptive-model-cascade (complexity-scored model selection), thinking-budget-orchestrator (reasoning token envelopes), test-time-compute-optimizer (compute cost scaling).
  • Prompt Caching & Context: kv-cache-prefix-optimizer (KV-cache hit maximization), context-window-engineer (per-zone token cost accounting).
  • Observability & Infrastructure: llm-observability-expert (Langfuse traces + cost dashboards), cloud-hosting-expert (gateway deployment on Vercel, Cloudflare, AWS), vercel-ai-sdk-expert (edge streaming & tool-call routing), multi-agent-orchestration (per-agent budget envelopes).

Purpose

Optimize operational costs, reliability, and latency of multi-model LLM architectures using dynamic routing, provider fallback chains, semantic caching, and real-time FinOps analytics. Target: 40–70% reduction in monthly LLM spend without degrading output quality.


1. LiteLLM v1.x — Deep Configuration Guide

LiteLLM provides a unified OpenAI-compatible interface across 100+ LLM providers with built-in fallback, retries, and budget management.

Install & Start Proxy
pip install litellm[proxy]
litellm --config litellm_config.yaml --port 4000
litellm_config.yaml — Full Production Config
model_list:
  - model_name: high-fast-tier       # Virtual name used by clients
    litellm_params:
      model: xai/grok-4.7-high-fast
      api_key: os.environ/XAI_API_KEY
      rpm: 1200
      tpm: 3000000

  - model_name: fast-tier            # Rapid AST diff and code edits
    litellm_params:
      model: cursor/composer-2.5-fast
      api_key: os.environ/CURSOR_API_KEY
      rpm: 1000

  - model_name: medium-tier          # Balanced architecture & strict schema contracts
    litellm_params:
      model: gemini/gemini-4-argon
      api_key: os.environ/GEMINI_API_KEY
      rpm: 300
      tpm: 2000000

  - model_name: reasoning-tier       # High-complexity fullstack craftsmanship
    litellm_params:
      model: anthropic/claude-sonnet-5.5
      api_key: os.environ/ANTHROPIC_API_KEY
      rpm: 100
      tpm: 500000

  - model_name: reasoning-tier       # Fallback 1 for reasoning-tier
    litellm_params:
      model: gemini/gemini-4-pro
      api_key: os.environ/GEMINI_API_KEY
      rpm: 60

  - model_name: embedding-tier
    litellm_params:
      model: text-embedding-3-small
      api_key: os.environ/OPENAI_API_KEY

router_settings:
  routing_strategy: least-busy        # Options: simple-shuffle | least-busy | latency-based-routing | cost-based-routing
  enable_pre_call_checks: true
  num_retries: 3
  retry_after: 2                      # seconds between retries
  timeout: 60
  fallbacks:
    - high-fast-tier: [xai/grok-4.6-high-fast, cursor/composer-2.5-fast]
    - medium-tier: [openai/gpt-5.6-sol, anthropic/claude-opus-5.5, anthropic/claude-opus-4.6, gemini/gemini-3.8-flash]
    - reasoning-tier: [gemini/gemini-4-pro, gemini/gemini-3.8-flash, anthropic/claude-fable-5.1, anthropic/claude-opus-4.6, muse/muse-wonder-high]
  context_window_fallbacks:
    - reasoning-tier: [gemini/gemini-4-argon, gemini/gemini-4-pro, gemini/gemini-3.8-flash]  # 1M+ to 10M+ context fallback

litellm_settings:
  success_callback: ["langfuse"]
  failure_callback: ["langfuse"]
  cache: true
  cache_params:
    type: redis
    host: os.environ/REDIS_HOST
    port: 6379
    password: os.environ/REDIS_PASSWORD
    ttl: 600                          # Cache TTL in seconds
    similarity_threshold: 0.92        # Semantic cache hit threshold

general_settings:
  master_key: os.environ/LITELLM_MASTER_KEY
  database_url: os.environ/DATABASE_URL  # PostgreSQL for spend tracking

# Virtual Keys with per-user budget limits
virtual_keys:
  - key: sk-agent-research
    user_id: agent-research
    max_budget: 5.00                  # USD per day
    budget_duration: 1d
    allowed_models: [fast-tier, embedding-tier]
  - key: sk-agent-code
    user_id: agent-code
    max_budget: 10.00
    budget_duration: 1d
    allowed_models: [fast-tier, reasoning-tier]

Read the full file on GitHub · 709 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed a93a820a6459
  2. 20d ago Changed · +10 lines a2d3585ec5b0
  3. 29d ago Changed · +45 lines · -38 tokens per session 59e238c0b8a3
  4. 1mo ago Changed · -10 lines ed00a60cc693
  5. 1mo ago Changed · +1 lines ddeb3afc81c5
  6. 1mo ago Changed 7cfff2311d04
  7. 1mo ago Changed fc986c4c8eb5
  8. 2mo ago Changed · +610 lines · +23 tokens per session ce7ea3181090
  9. 2mo ago Changed 7b2dfe46f039
  10. 2mo ago First seen · 53 lines · 56 tokens per session scan A 66538ebb898f

Subscribe to this mod's changes

llm-finops-router is a skill published in the GitHub repository roedyrustam/vibes-plug (132 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 7,766 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-25.

Related

llm-finops-router compared with skills from other repositories

llm-finops-router next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
llm-finops-routerroedyrustam/vibes-plugSkill132yesterdayMITA41Cursor
ai-engineering-toolkitmarysatasselshaped667/skills-collection-1Skill11mo agoMITA47Claude Code, Codex
ai-engineering-toolkitsickn33/agentic-awesome-skillsSkill51ktodayMITA47Claude Code
ai-prompt-regression-testingsickn33/agentic-awesome-skillsSkill51ktodayMITA37Claude Code
ai-engineering-toolkitsinhoneyy/master-skillsSkill19todaynoneA47Claude Code
ai-engineering-toolkitiradoweck/antigravity-awesome-skillsSkill312d agoMITA47Claude Code
ai-engineering-toolkitlingxling/awesome-skills-cnSkill3431mo agoMITA47Claude Code