llm-finops-router

llm-finops-router is a skill for Claude Code, Codex from roedyrustam/vibes-plug. It costs 79 tokens per session (6,061 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 Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

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: Claude Code, Codex.

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 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,061 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.00079 $0.06061
Opus 5.5 $0.00032 $0.02424
Sonnet 5.5 $0.00016 $0.01212
Haiku 4.5 $0.00008 $0.00606

Measured yesterday against content hash 7cfff2311d04, 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 yesterday.

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, {
skills/llm-finops-router/SKILL.md · 663 lines

How it starts

The opening of the file, as written. The whole thing — 663 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

Connects and orchestrates with:

  • ai-llm-integration-expert — base LLM integration patterns
  • vercel-ai-sdk-expert — streaming + tool-call routing on the edge
  • multi-agent-orchestration — per-agent budget allocation
  • cloud-hosting-expert — gateway deployment (Vercel, Cloudflare, AWS)
  • llm-observability-expert — Langfuse traces + cost dashboards
  • adaptive-model-cascade — complexity-scored model selection
  • kv-cache-prefix-optimizer — KV-cache hit maximization to cut costs

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: fast-tier            # Virtual name used by clients
    litellm_params:
      model: gemini/gemini-3.8-flash
      api_key: os.environ/GEMINI_API_KEY
      rpm: 1000
      tpm: 2000000

  - model_name: fast-tier            # Fallback 1 for fast-tier
    litellm_params:
      model: groq/llama-3.1-8b-instant
      api_key: os.environ/GROQ_API_KEY
      rpm: 600

  - model_name: reasoning-tier
    litellm_params:
      model: anthropic/claude-5-sonnet
      api_key: os.environ/ANTHROPIC_API_KEY
      rpm: 100
      tpm: 400000

  - 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:
    - fast-tier: [groq/llama-3.1-8b-instant, openai/gpt-4o-mini]
    - reasoning-tier: [gemini/gemini-4-pro, openai/gpt-5]
  context_window_fallbacks:
    - reasoning-tier: [gemini/gemini-4-pro]  # 2M+ 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 · 663 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. yesterday Changed 7cfff2311d04
  2. 10d ago Changed fc986c4c8eb5
  3. 13d ago Changed · +610 lines · +23 tokens per session ce7ea3181090
  4. 15d ago Changed 7b2dfe46f039
  5. 16d ago Changed 66538ebb898f
  6. 18d ago Changed de13a70bfa3c
  7. 24d ago First seen · 53 lines · 56 tokens per session scan A c7c4a992c4d2

Subscribe to this mod's changes

llm-finops-router is a skill published in the GitHub repository roedyrustam/vibes-plug (78 stars, last pushed today), licensed MIT. It adds 79 tokens to every session and 6,061 once invoked, about $0.0003 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

Other skills, from other repositories

edgartools

Python library for accessing, analyzing, and extracting data from SEC EDGAR filings. Use when working with SEC filings, financial statements (income statement, balance sheet, cash flow), XBRL financial data, insider trading (Form 4), institutional holdings (13F), company financials, annual/quarterly reports (10-K…

foryourhealth111-pixel/Vibe-Skills · 110 tokens

iflytek-ocr-invoice

An image-reading tool that extracts structured information from Chinese invoices, receipts, bills, and tickets. OCR means turning text in a photo or scan into computer-readable data.

iflytek/iFly-Skills · 77 tokens

iflytek-image-understanding

An image-analysis tool that describes pictures and answers questions about what they contain. It uses an AI vision service, which interprets visual content rather than only reading text files.

iflytek/iFly-Skills · 61 tokens

ai-product

Every product will be AI-powered. The question is whether you'll build it right or ship a demo that falls apart in production.

lingxling/awesome-skills-cn · 28 tokens

ai-pricing

When the user wants to price an AI product, choose a charge metric, design pricing tiers, or optimize margins. Also use when the user mentions 'AI pricing,' 'usage-based pricing,' 'consumption pricing,' 'outcome pricing,' 'BYOK,' 'bring your own key,' 'per-seat pricing,' 'pricing tiers,' 'AI margins,' 'cost per…

tech-leads-club/agent-skills · 115 tokens

langchain

Build AI agents with LangChain v1 and LangGraph in Python. Use this skill whenever the user mentions LangChain, LangGraph, createagent, initchatmodel, @tool, ToolRuntime, agent middleware, human-in-the-loop, structured output, MCP tools (langchain.mcp, MCPAdapter), RAG, multi-agent handoffs or subagents…

svngoku/coding-agents-skills · 139 tokens