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 rexleimo/aios --skill model-routergit clone --depth 1 https://github.com/rexleimo/aiosWrote 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/rexleimo/aios/model-router)<a href="https://agentmods.dev/skills/rexleimo/aios/model-router"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/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/rexleimo/aios/model-router"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/model-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00060 | $0.02622 |
| Opus 5.5 | $0.00024 | $0.01049 |
| Sonnet 5.5 | $0.00012 | $0.00524 |
| Haiku 4.5 | $0.00006 | $0.00262 |
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 2mo 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 — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Model Router
你是 Agent Team 的调度中枢。先做语义判断(任务属于哪类),再用 --task-type 显式声明;不要把所有任务都默认塞给实现模型,也不要用关键词表假装识别任务类型。
北极星原则:程序不根据自由文本关键词猜任务类型。任务类型由模型语义判断后显式声明(
--task-type);无声明时程序返回中性general(确定性默认),不猜测。
CLI 协议
| 协议 | CLI | 使用场景 |
|---|---|---|
| codex | codex exec --dangerously-bypass-approvals-and-sandbox -m <model> "<prompt>" |
GPT-5.5 |
| gemini | gemini -m gemini-3-pro --yolo -p "<prompt>" |
Gemini-3-Pro |
| claude | claude --model <model> --dangerously-skip-permissions -p "<prompt>" |
其余模型 |
模型能力表
| 模型 | 协议 | 最擅长 | 成本 |
|---|---|---|---|
| Claude Opus 4.7 | claude | 代码审查、架构设计、安全审计 | 最高 |
| Claude Sonnet 4.6 | claude | 日常开发、RAG、快速原型、文档 | 中 |
| GPT-5.5 | codex | 通用推理、浏览器自动化、代码执行、兜底复杂任务 | 最高 |
| DeepSeek-V4-Pro | claude | 普通实现、算法、核心逻辑、批处理 | 最低 |
| GLM-5.1 | claude | 数学推理、自主循环、系统规划 | 低 |
| Kimi K2.6 | claude | 多Agent编排、前端UI、长周期执行 | 低 |
| MiniMax-M2.7 | claude | 自愈运维、生产恢复 | 低 |
| Gemini-3-Pro | gemini | 多模态分析、长文档研究、1M上下文 | 中 |
Balanced v2 Profiles
balanced默认:显式声明驱动升级,普通实现省成本。premium:复杂、低置信、高风险任务更积极使用订阅强模型。budget:优先低成本,仅在浏览器、长上下文、安全、生产恢复等硬能力约束下升级。
使用 --profile 或环境变量切换:
aios model-router route --task "..." --profile balanced --explain
export AIOS_MODEL_ROUTER_PROFILE=premium
任务类型声明
任务类型是语义判断:你理解任务后,选择最贴合的 task type 并用 --task-type 显式声明。常用类型(完整列表见 model-router list):
| task-type | 适用场景 | 典型首选模型 |
|---|---|---|
browser-automation |
浏览器操作、页面交互、上传填写、截图抓取 | GPT-5.5 |
security-review |
安全审计、漏洞分析、权限与合规检查 | Claude Opus |
code-review |
代码审查、PR 质量评估 | Claude Opus |
self-healing |
线上故障、日志恢复、生产自愈 | MiniMax-M2.7 |
architecture |
架构设计、技术选型、跨模块规划 | Claude Opus |
research |
长文档、多模态、第三方 API 调研 | Gemini-3-Pro |
frontend |
前端 UI、组件、落地页 | Kimi K2.6 |
implementation |
普通实现、算法、核心逻辑 | DeepSeek-V4 |
无 --task-type 时程序返回中性 general 并采用默认实现模型——这是确定性兜底,不表示程序识别出了任务类型。
弱任务钉死弱模型
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.
- 2mo ago Changed fcb3d34e215e
- 2mo ago Changed d8ba37480923
- 2mo ago Changed 816446ef4f24
- 2mo ago Changed · +23 lines 8b536bedc60b
- 2mo ago Changed · +7 lines 0a7957bcadbc
- 3mo ago First seen · 135 lines · 60 tokens per session scan A 5b24564fa988
model-router is a skill published in the GitHub repository rexleimo/aios (62 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 2,622 once invoked, about $0.0002 per session on Opus 5.5. 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-30.
model-router compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| model-routerrexleimo/aios | Skill | 62 | yesterday | MIT | A | 60 | Claude Code, Codex |
| cmcs-driven-developmentTokenBrice/cmcs | Skill | 3 | 8mo ago | none | A | 21 | Claude Code, Codex |
| opencli-usagejackwener/OpenCLI | Skill | 32k | 25d ago | Apache-2.0 | A | 31 | Claude Code |
| using-aoUntrivial-ai/agent-orchestrator | Skill | 15k | 3d ago | Apache-2.0 | A | 71 | Claude Code, Codex |
| traffic-analyticsAtomicBot-ai/atomic-agent | Skill | 3.6k | today | MIT | A | 29 | Claude Code, Codex |
| lead-researchAtomicBot-ai/atomic-agent | Skill | 3.6k | today | MIT | A | 26 | Claude Code, Codex |
| meeting-notesAtomicBot-ai/atomic-agent | Skill | 3.6k | today | MIT | A | 20 | Claude Code, Codex |