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 ahkedia/lyra-ai --skill model-routergit clone --depth 1 https://github.com/ahkedia/lyra-aiWrote 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/ahkedia/lyra-ai/model-router)<a href="https://agentmods.dev/skills/ahkedia/lyra-ai/model-router"><img src="https://agentmods.dev/badge/skills/ahkedia/lyra-ai/model-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/ahkedia/lyra-ai/model-router"><img src="https://agentmods.dev/badge/skills/ahkedia/lyra-ai/model-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.00000 | $0.00597 |
| Opus 5 | $0.00000 | $0.00298 |
| Sonnet 5 | $0.00000 | $0.00119 |
| Haiku 4.5 | $0.00000 | $0.00060 |
Grade A, and why
model-router scanned grade A with 0 findings 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 9d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Model Router Skill
Route incoming messages to the optimal model tier based on task complexity.
When to invoke
Before processing any user message, classify it using the routing rules.
Tiers
| Tier | Model | When |
|---|---|---|
| minimax | MiniMax M2.7 | Single-action: Notion CRUD, reminders, weather, lookups, greetings |
| haiku | Claude Haiku 4.5 | Moderate: email, web search, multi-step, data formatting |
| sonnet | Claude Sonnet 4.6 | Complex: synthesis, strategy, analysis, long-form drafting, planning |
Quick decision tree
Is it a greeting or acknowledgment? → minimax
Is it a single Notion read/write? → minimax
Is it a reminder or lookup? → minimax
Does it need email, search, or 2-3 steps? → haiku
Does it need reasoning across sources? → sonnet
Does it need strategic analysis? → sonnet
Does it need pattern-finding or synthesis? → sonnet
Unsure? → haiku (safe middle ground)
Escalation
To escalate to Sonnet: openclaw cron add --at +0m --model anthropic/claude-sonnet-4-6 --session isolated --announce --delete-after-run --name "sonnet-task" --message "<full task>". Do NOT attempt in MiniMax first.
To use Haiku: process using anthropic/claude-haiku-4-5.
Fallback behavior
If MiniMax API returns error (HTTP 400/429/500/timeout):
- Retry once after 3 seconds
- If still failing, auto-escalate to Haiku
- If Haiku also fails: "Both models are down. Try again in a few minutes."
If Notion API fails (5xx/timeout/rate limit):
- Tell user: "Notion is temporarily unreachable. Here's what I would have done: [action]. I'll retry."
- NEVER hallucinate success. Never say "Done" if the API call failed.
- For task creation: save intent, retry on next message.
Key rules
- Never attempt Sonnet tasks in MiniMax — route correctly from the start
- When in doubt, escalate — haiku is cheap, Sonnet is worth it for quality
- Override rules are absolute — "weekly review" always goes to Sonnet
- Log every decision — routing logs enable tuning over time
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.
- 9d ago First seen · 62 lines · 0 tokens per session scan A e2f29a89977f
model-router is a skill published in the GitHub repository ahkedia/lyra-ai (5 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 597 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
groq-inference
Ultra-fast LLM inference on custom LPU hardware. OpenAI-compatible API at api.groq.com. Lowest latency in the industry (500-1000+ tok/s). Supports chat completions, vision, audio (Whisper STT + TTS), tool calling, JSON mode, and streaming. Free tier available. Inference only — no training.
rich-post
Send a Telegram rich-media post to ANOTHER allowlisted chat via the bot (Bot API 10.1 sendRichMessage) - text, inline images, tables, headings, lists, quotes, collapsible blocks, formulas, collages/slideshows ALL in one message bubble. Use when the owner asks to post somewhere other than the current conversation (the…
telegram-userbot
A skill for connecting to and working through the owner's personal Telegram account, rather than a Telegram bot. It can read personal chats, search messages, and send messages as the account owner after setup and consent.
memory-processor
Iva's daily-memory processor. Reads the day's two-sided transcript (daily/YYYY-MM-DD.md), distills noteworthy entities / decisions / ideas into typed autograph cards, links them into the graph, and produces a daily-summary card (topics + MOC) that navigates down to the raw transcript and up to the week. Model-agnostic…
agent-browser
A command-line browser for interactive websites and web apps. It can open pages, inspect clickable elements, fill forms, click buttons, take screenshots, sign in, and read pages whose content is loaded by JavaScript.
update-recovery
A procedure for recovering custom changes after an Iva software update creates conflicts between the old and new versions.