Logotipo de Claude Model Router

Claude Model Router

Comunidad
Rajvardhman05
claude-model-router

Pick the right Claude model for each piece of work instead of running everything on one. Load BEFORE spawning any subagent or parallel worker (to choose its model), when a task stalls and you are deciding whether to raise effort or move up a model, and when the user asks which model or effort level to use for a task.

Descripción general

EditorRajvardhman05
Repositorioclaude-model-router
Nombre de la habilidadclaude-model-router
Estrellas
31
Forks
6
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por Rajvardhman05 en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Claude Model Router en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Rajvardhman05/claude-model-router/tree/main
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rajvardhman05/claude-model-router.git \
  .claude/skills/claude-model-router
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Claude Model Router en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Claude Model Router automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Claude Model Router no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Claude model router

One model for everything is either too expensive or too weak. This skill routes each piece of work to the cheapest model that will finish it properly.

Rules are condensed from Anthropic's guide "Which Claude model should you build with?" (claude.dev/blog, November 2026). They are written by tier (Haiku / Sonnet / Opus / Fable), so they survive version bumps. If the tiers themselves change, re-read the guide.

The one rule that shapes everything

Route by delegation. Never switch the main session's model mid-task.

The main session keeps its model. Routing happens when you hand work to a subagent, by setting that subagent's model. Switching the main model mid-session throws away the prompt cache (the next turn pays full price for the whole context) and, when moving down a tier, the earlier reasoning too.

Routing table for delegated work

Set the model on the subagent call (model: haiku | sonnet | opus | fable) or in the subagent's definition file. If a tier is not available on this account, use the next tier down (no fable means opus) and say so in one line.

The subagent's jobModel
Find files, grep, read logs, run tests and report, summarize long outputhaiku
Classify, tag, route, extract fields, high-volume checkable workhaiku
Well-scoped edits against a clear spec; a contained bug fixsonnet
Repeated agent tasks: investigation, review, draftingsonnet
Everyday documents, slides, spreadsheetssonnet
Multi-file features, tricky debugging, computer use, vision-heavy workopus
Major refactor or migration, architecture planning, deep research, scientific or quantitative analysisfable
Unsureopus

Two guards on the table:

  • A clear spec does not guarantee Sonnet is enough. Migrations and performance work can need Opus even when fully specified.
  • Small models get work where mistakes are cheap to spot. If a wrong answer would pass unnoticed (a judgment call, a subtle edit), keep it on the main model.

For a one-off subagent, leave effort at the model's default. Set it explicitly in only two cases, both below: climbing the escalation ladder, and a cheap-first retry over a checkable batch.

When not to delegate at all

Delegation has a coordination cost. Skip it when:

  • the work is one dependent chain (each step needs the previous step's result), or
  • it all fits comfortably in the current context, or
  • it is a handful of tool calls.

Delegate when the work is verbose reading (logs, wide file sweeps) or genuinely parallel. The point is to keep the expensive model's context lean: every turn resends the whole context, so bulk reading belongs in a cheap subagent that returns a short summary.

Escalation ladder

When a result is not good enough, climb in this order and stop at the first rung that works:

  1. Let it verify. Give the model a test, build, or script to check its own work.
  2. Raise effort one level. Effort buys more thinking and checking. It does not add skill the model lacks.
  3. Move up one model, starting at a lower effort than the smaller model was using.

Past high effort, one more effort level can cost as much as the next model up. On hard tasks try the bigger model before going beyond high.

Cheap-first retry. When the outcome can be checked automatically, run the batch at low effort and re-run only the failures at high. This usually beats running everything at high on both cost and pass rate.

Advising on the main session's model

You cannot change the session's model yourself; the user does. Speak up in one line only when there is a clear mismatch, then carry on as asked:

  • Too small: a major migration, architecture work, or a long unattended run on Sonnet or Haiku. Suggest moving up.
  • Too big: a long stretch of simple, well-scoped edits on the top tier. Suggest moving down.

Sensible starting points when the user asks:

WorkModelEffort
Most coding and knowledge workopusmedium, then high
Well-scoped everyday codingsonnetmedium, then high
Chat a person is waiting onsonnetlow or medium
Hardest technical work, long unattended runs, leading many subagentsfablemedium, then high

If the user does switch, tell them to compact first or start a fresh session with a short written plan, so the new model does not pay to re-read the whole history.

Do not oversell it

Mixed-model setups do not always win. Judge by cost per finished task, not price per token: a pricier model that finishes in half the tokens can be cheaper. If the user wants proof, the test is simple: run a few real tasks with automatic pass/fail checks on each candidate, and keep the mixed setup only if it beats every single-model run.

Preguntas frecuentes

¿Qué hace la habilidad de IA Claude Model Router?

Pick the right Claude model for each piece of work instead of running everything on one. Load BEFORE spawning any subagent or parallel worker (to choose its model), when a task stalls and you are deciding whether to raise effort or move up a model, and when the user asks which model or effort level to use for a task.

¿Por qué usar Claude Model Router en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Claude Model Router está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Claude Model Router en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Rajvardhman05/claude-model-router/tree/main. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Claude Model Router?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Claude Model Router?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Claude Model Router con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Claude Model Router?

Sí. Rajvardhman05 la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇