model-router

model-router is a skill for Claude Code, Codex from BASHBOP/otito. It costs 99 tokens per session (2,096 once invoked), scanned B, original, MIT.

A task-routing skill that estimates how difficult or risky a coding request is and chooses a lower-cost, middle, or higher-capability AI model tier. It can use Otito or a built-in scoring method.

In plain words
What is it for?
Use it at the start of coding, code review, debugging, or planning requests to select a model tier, unless the user has already chosen a model.
Why use it?
It avoids using the most expensive model for every request while allowing harder or riskier work to use a more capable model. It runs before large amounts of context or code are processed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd "$OTITO_CANVAS_HOME" && node src/cli.js serve --repo "<repo being routed>" --log .otito/canvas.jsonl &.

Good fit Use it at the start of coding, code review, debugging, or planning requests to select a model tier, unless the user has already chosen a model.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/BASHBOP/otito
agentmods
npx agentmods add skills/bashbop/otito/model-router

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 model-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/bashbop/otito/model-router/github.svg)](https://agentmods.dev/skills/bashbop/otito/model-router)
Your own site
<a href="https://agentmods.dev/skills/bashbop/otito/model-router"><img src="https://agentmods.dev/badge/skills/bashbop/otito/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.

agentmods 80×15 button for model-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/bashbop/otito/model-router"><img src="https://agentmods.dev/badge/skills/bashbop/otito/model-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00099 $0.02096
Opus 5.5 $0.00040 $0.00838
Sonnet 5.5 $0.00020 $0.00419
Haiku 4.5 $0.00010 $0.00210

Measured 2mo ago against content hash 15d475a59341, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

model-router scanned grade B with 2 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -s -X POST http://127.0.0.1:7801/ingest -H 'content-type: application/json' -d '{"request":"<the user request>","source":"skill"}'

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Already running, on this repository?** Check `curl -s -m 1 http://127.0.0.1:7801/health` and read the `repo` field it returns. A canvas is fixed to one repository when it starts and will not follow yours, so an answ
codex/skills/model-router/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Model router (host-agnostic)

Goal: spend premium models only when the task needs them. Works with any ML coding host, including agents launched inside Herdr panes. Otito scores cost/safety; this skill chooses the model tier.

This is routing, not orchestration. Do not spawn multi-agent loops.

When to run

At the start of a user request (before large context packs or edits), unless the user already pinned a model.

Re-score if the task clearly escalates (e.g. "quick typo" becomes a multi-module refactor).

Step 1 — Score the task

A. Prefer Otito's router (when MCP/CLI is available)

otito route <repo> "<task>" --json
# MCP: model_route { query, path, host? }
# Herdr: herdr plugin action invoke bashbop.otito.model-route

model_route returns the tier directly, with AX, the risk bumps, and — when TYPESAFE_API_KEY is set in the server's environment — a System One read of the request. model.source says jev or offline. Use its tier as is: the router already applied its own risk and no-evidence bumps, so the AX bump rule below does not apply to it.

Only AX available (an older otito)? Score it and map it yourself:

otito ax "<task>" --path <repo> --json
# MCP: agent_experience { query, path }
AX Tier
≥ 75 cheap
45–74 mid
< 45 premium

If Containment is very low (< 20) or risk paths include auth/payments/migrations, bump one tier (cheap→mid, mid→premium) even if AX is high.

B. Heuristic rubric (no Otito)

Start at 50. Adjust:

Signal Delta
Single file, docs/typo/comment, rename in one place +30
Clear bugfix with known file + existing tests +15
New feature in one module, happy-path tests exist 0
Cross-module / API+web contract −15
Auth, payments, migrations, crypto, PII, permissions −25
Ambiguous product ask, architecture, or incident debug −20
User said “quick”, “nit”, “typo”, “rename” +20
User said “careful”, “production”, “security”, “design” −20

Read the full file on GitHub · 167 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed · +9 lines · +6 tokens per session 15d475a59341
  2. 2mo ago Changed · +117 lines scan A → B dd3d6093540f
  3. 2mo ago First seen · 41 lines · 93 tokens per session scan A ffbb8e45454d

Subscribe to this mod's changes

model-router is a skill published in the GitHub repository BASHBOP/otito (2 stars, last pushed 2mo ago), licensed MIT. It adds 99 tokens to every session and 2,096 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.

Related

model-router compared with skills from other repositories

model-router next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-routerBASHBOP/otitoSkill22mo agoMITB99Claude Code, Codex
context-recoverySakuraByteCore/codexmateSkill357yesterdayApache-2.0A72Claude Code, Codex
kanban-tasksjin-bo/agentaoSkill3168d agoMITA221Claude Code, Codex
capturePerpetualSoftware/padSkill210todayApache-2.0A10Claude Code
onboardPerpetualSoftware/padSkill210todayApache-2.0A11Claude Code
ocrjin-bo/agentaoSkill3168d agoMITA99Claude Code, Codex
daily-digestjin-bo/agentaoSkill3168d agoMITA18Claude Code, Codex