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.
npx skills add roedyrustam/vibes-plug --skill llm-finops-routergit clone --depth 1 https://github.com/roedyrustam/vibes-plugWrote 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.
[](https://agentmods.dev/skills/roedyrustam/vibes-plug/llm-finops-router)<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.
<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>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.
| Model | Per session | Once 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 |
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, { 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
Orchestration & Integration
Connects and orchestrates with:
ai-llm-integration-expert— base LLM integration patternsvercel-ai-sdk-expert— streaming + tool-call routing on the edgemulti-agent-orchestration— per-agent budget allocationcloud-hosting-expert— gateway deployment (Vercel, Cloudflare, AWS)llm-observability-expert— Langfuse traces + cost dashboardsadaptive-model-cascade— complexity-scored model selectionkv-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]
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.
- yesterday Changed 7cfff2311d04
- 10d ago Changed fc986c4c8eb5
- 13d ago Changed · +610 lines · +23 tokens per session ce7ea3181090
- 15d ago Changed 7b2dfe46f039
- 16d ago Changed 66538ebb898f
- 18d ago Changed de13a70bfa3c
- 24d ago First seen · 53 lines · 56 tokens per session scan A c7c4a992c4d2
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.
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…
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-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.
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.
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…
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…