# agent-model-router

> Sizes every coding task as light, regular or heavy and hands it to the cheapest Claude model that can do it well: Haiku, Sonnet or Opus. When unsure, it rounds up.

agent-model-router is a paid AI agent skill on Agensi by Anmol Rajput, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Anmol Rajput](https://www.agensi.io/creators/anmol-rajput)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agent-model-router
- Tags: agents-orchestration, llm-ops, productivity

## About this skill

Stop paying Opus prices to change a button colour.

Most of a working day is small stuff: renames, typos, spacing tweaks, short copy. Your agent still runs all of it on the biggest model you have. This skill asks one question before each task: how hard is this, really?

Light work (one file, a small edit, a clear instruction) maps to Haiku. Regular work, like multi-file features, research, explaining code or debugging a clear error, maps to Sonnet. Heavy work goes to Opus: architecture, maths, security changes, migrations, large refactors, and bugs that survived one fix. If the signals are mixed, it rounds up one tier, because a cheap wrong answer costs more than an expensive right one.

How it routes in Claude Code:
- Same tier as your main model: the main agent does the work itself.
- Different tier: it hands the task to a helper locked to that model (router-light, router-regular or router-heavy) with a short brief: the goal, the exact files, the constraints and what done looks like.
- If writing the brief would cost more than the edit, it just does the edit.
- If a helper fails or says it is unsure, the task moves up one tier. It never steps down mid-task.
- Heavy work that needs a back-and-forth, such as a design discussion, is not handed off. It suggests you switch your main model to Opus for that stretch instead.

Every reply ends with a tag like [router: light → haiku], so you can see which model did the work. A small notes file at .model-router/context.md gives helpers the project context without crawling your repo. It stays under about 40 lines and never stores secrets, keys or personal data.

Two modes. Auto (the default in Claude Code) routes on its own. Manual keeps you on the model you picked and adds a one-line suggestion when the tier changes. Type "router auto" or "router manual" to switch; the choice is saved per project.

First test, on Claude Code with 15 requests in a small sample project: $2.70 with everything on Opus, $2.47 with the router on and the main session on Sonnet. That is about 9% less. One run on one project is a hint, not proof, and in that run light tasks stayed on the main model rather than reaching Haiku, since handing off a one-line edit cost more than doing it.

Install with Node 18 or newer: npx agent-model-router install. The installer asks before it adds its marked block to CLAUDE.md, and npx agent-model-router uninstall removes exactly what it added. It also installs for Codex, Gemini CLI and GitHub Copilot, but only Claude Code has been verified so far. MIT licensed. Source: github.com/anmol26rajput/agent-model-router

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the agent-model-router skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does agent-model-router do?

Sizes every coding task as light, regular or heavy and hands it to the cheapest Claude model that can do it well: Haiku, Sonnet or Opus. When unsure, it rounds up.

### Which AI agents support agent-model-router?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use agent-model-router?

Connect your AI agent to Agensi through MCP, then ask it to use agent-model-router on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
