A comprehensive AI model routing system that automatically selects the optimal model for any task. Set up multiple AI providers (Anthropic, OpenAI, Gemini, Moonshot, Z.ai, GLM) with secure API key storage, then route tasks to the best model based on task type, complexity, and cost optimization. Includes interactive setup wizard, task classification, and cost-effective delegation patterns. Use when you need "use X model for this", "switch model", "optimal model", "which model should I use", or to
Intelligent AI model routing across multiple providers for optimal cost-performance balance.
Automatically select the best model for any task based on complexity, type, and your preferences. Support for 6 major AI providers with secure API key management and interactive configuration.
CODEBLOCK0
The wizard will guide you through:
CODEBLOCK1
CODEBLOCK2
| Provider | Models | Best For | Key Format |
|---|---|---|---|
| Anthropic | claude-opus-4-5, claude-sonnet-4-5, claude-haiku-4-5 | Coding, reasoning, creative | INLINECODE0 |
| OpenAI |
sk-proj-... |
| Gemini | gemini-2.0-flash, gemini-1.5-pro, gemini-1.5-flash | Multimodal, huge context (2M) | AIza... |
| Moonshot | moonshot-v1-8k/32k/128k | Chinese language | sk-... |
| Z.ai | glm-4.5-air, glm-4.7 | Cheapest, fast | Various |
| GLM | glm-4-flash, glm-4-plus, glm-4-0520 | Chinese, coding | ID.secret |
Default routing (customizable via wizard):
| Task Type | Default Model | Why |
|---|---|---|
| INLINECODE5 | glm-4.5-air | Fastest, cheapest for quick queries |
| INLINECODE6 |
research | claude-sonnet-4-5 | Balanced depth and speed |creative | claude-opus-4-5 | Maximum creativity |math | o1-mini | Specialized reasoning |vision | gemini-1.5-flash | Fast multimodal |chinese | glm-4.7 | Optimized for Chinese |long_context | gemini-1.5-pro | Up to 2M tokens |
Savings: 50-90% compared to always using premium models
Features:
.api-keys to version controlCODEBLOCK4
CODEBLOCK5
CODEBLOCK6
CODEBLOCK7
~/.model-router/config.json~/.model-router/.api-keyspython3 scripts/setup-wizard.py
Interactive configuration of providers, mappings, and preferences.
python3 scripts/classify_task.py "your task description"
python3 scripts/classify_task.py "your task" --format json
Get model recommendation with reasoning.
python3 scripts/setup-wizard.py --list
Show all available models and their status.
| Skill | Integration |
|---|---|
| model-usage | Track cost per provider to optimize routing |
| sessions_spawn |
.api-keys filereferences/ folder for detailed guides该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 model-router-1776420085 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 model-router-1776420085 技能
skillhub install model-router-1776420085
文件大小: 16.39 KB | 发布时间: 2026-4-17 18:57