claude-model-router-hook
HookClaude Code hook that automatically switches the active model tier based on detected task complexity.
Install
git clone https://github.com/tzachbon/claude-model-router-hookStars
94
7d change
▲ 8.05%
Downloads / week
—
Last active
1mo ago
About
Effort-first model routing for Claude Code. Heuristics-first, opt-in autoswitch.
The wizard asks whether to install globally and star the GitHub repository. Both prompts default to yes. Installation requires Claude Code and Python 3; starring requires an authenticated `gh` command. Restart Claude Code after installation.
Claude Model Router classifies each prompt by task and effort, then recommends the matching Claude model. It warns by default. Autoswitch is opt-in and only affects new sessions.
30-day stars
Trust factors
- Source
- community
- Known advisories
- 0
- Maintenance
- maintained
- License
- MIT
- Age
- 7 months
developer-toolstoken-efficiency#model-routing#hooks#haiku#sonnet#opus#auto-switch#ai-tools#anthropic#automation#bash#claude-code-plugin#claude-hooks#claudecode-hooks#llm#llm-router#model-router#oss#prompt-classification#shell