aiStackPilot

Claude Auto Router — AI skill for Claude Code

AI community

Auto-route Claude Code prompts to the cheapest model that can handle them.

How to install Claude Auto Router

This entry records only its repository, not the path inside it, so there is no exact command to give. Open aiStackPilot/claude-auto-router and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Auto Router does

Auto-route Claude Code prompts to the cheapest model that can handle them. Save 3-5x on tokens. One-command install.

Alternatives in AI

  • Claudekit — by Carl Rannaberg - Impressive CLI toolkit providing auto-save checkpointing, code quality hooks, specificatio 633 ★
  • Vomit — Clean up Claude 5's token vomit with a separate LLM 176 ★
  • Stacklit — One command gives AI agents instant codebase context 102 ★

README

Claude Code Auto-Router

[![CI](https://github.com/bijumailbox/claude-auto-router/actions/workflows/ci.yml/badge.svg)](https://github.com/bijumailbox/claude-auto-router/actions) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub release](https://img.shields.io/github/v/release/bijumailbox/claude-auto-router)](https://github.com/bijumailbox/claude-auto-router/releases) [![GitHub stars](https://img.shields.io/github/stars/bijumailbox/claude-auto-router?style=social)](https://github.com/bijumailbox/claude-auto-router)

**Automatic model routing and token optimization for [Claude Code](https://docs.anthropic.com/en/docs/claude-code).**

Stop burning Opus tokens on simple searches. This project makes Claude Code automatically route cheap tasks to Haiku and reserve full reasoning power for complex work — saving **3-5x on token costs** with zero quality loss.

You: "find all python files that import pandas"
     → [ROUTING: T0_LOOKUP] → Delegated to Haiku subagent (cheap, fast)

You: "fix the null check in auth.py line 45"
     → [ROUTING: T1_STANDARD] → Answered directly (normal)

You: "security review the RLS implementation for bypass vulnerabilities"
     → [ROUTING: T2_DEEP] → Full Opus reasoning + specialized agents (thorough)

How It Works

┌─────────────────────────────────────────────────────────────┐
│                    You type a prompt                         │
└──────────────────────┬──────────────────────────────────────┘
                       │
                       ▼
┌──────────────────────────────────────────────────────────���──┐
│  UserPromptSubmit Hook (classify.sh)                        │
│  ┌─────────┐  ┌──────────┐  ┌──────────┐  ┌────────────┐  │
│  │T0_LOOKUP│  │T0_EXPLAIN│  │T1_STANDARD│  │  T2_DEEP   │  │
│  │  Haiku  │  │  Haiku   │  │  Direct   │  │ Full Power │  │
│  └─────────┘  └──────────┘  └──────────┘  └────────────┘  │
└──────────────────────┬─────────