Agent skill · product strategy · sundial-org

model-router

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 balance quality vs cost across multiple AI providers.

Why this skill is useful

Adds a comprehensive routing system with executable scripts for model selection and cost optimization across multiple AI providers.

What it needs

Requires python3 installed locally. Requires anthropic, gemini, glm, moonshot, openai, z.ai account access. About 5k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.

What this skill does

Model Router 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. 🎯 What It Does Analyzes tasks and classifies them by type (coding, research, creative, simple, etc.) Routes to optimal models from your configured providers Optimizes costs by using cheaper models for simple tasks Secures API keys with file permissions (600) and isolated storage Provides recommendations with confidence scoring and reasoning 🚀 Quick Start Step 1: Run the Setup Wizard The wizard will guide you through: 1. Provider setup - Add your API keys (Anthropic, OpenAI, Gemini, etc.) 2. Task mappings - Choose which model for each task type 3. Preferences - Set cost optimization level Step 2: Use the Classifier Step 3: Route Tasks with Sessions 📊 Supported Providers Provider Models Best For Key Format ---------- -------- ---------- ------------ Anthropic claude-opus-4-5, claude-sonnet-4-5, claude-haiku-4-5 Coding, reasoning, creative sk-ant-... OpenAI gpt-4o, gpt-4o-mini, o1-mini, o1-preview Tools, deep reasoning 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-... …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sundial-org/model-router

View the source on GitHub

Browse the @skills marketplace