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.00041 | $0.07766 |
| Opus 5.5 | $0.00016 | $0.03106 |
| Sonnet 5.5 | $0.00008 | $0.01553 |
| Haiku 4.5 | $0.00004 | $0.00777 |
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, { 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
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]
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.
- 15d ago Changed a93a820a6459
- 20d ago Changed · +10 lines a2d3585ec5b0
- 29d ago Changed · +45 lines · -38 tokens per session 59e238c0b8a3
- 1mo ago Changed · -10 lines ed00a60cc693
- 1mo ago Changed · +1 lines ddeb3afc81c5
- 1mo ago Changed 7cfff2311d04
- 1mo ago Changed fc986c4c8eb5
- 2mo ago Changed · +610 lines · +23 tokens per session ce7ea3181090
- 2mo ago Changed 7b2dfe46f039
- 2mo ago First seen · 53 lines · 56 tokens per session scan A 66538ebb898f
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.
llm-finops-router compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| llm-finops-routerroedyrustam/vibes-plug | Skill | 132 | yesterday | MIT | A | 41 | Cursor |
| ai-engineering-toolkitmarysatasselshaped667/skills-collection-1 | Skill | 1 | 1mo ago | MIT | A | 47 | Claude Code, Codex |
| ai-engineering-toolkitsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 47 | Claude Code |
| ai-prompt-regression-testingsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 37 | Claude Code |
| ai-engineering-toolkitsinhoneyy/master-skills | Skill | 19 | today | none | A | 47 | Claude Code |
| ai-engineering-toolkitiradoweck/antigravity-awesome-skills | Skill | 31 | 2d ago | MIT | A | 47 | Claude Code |
| ai-engineering-toolkitlingxling/awesome-skills-cn | Skill | 343 | 1mo ago | MIT | A | 47 | Claude Code |