tzachbon/claude-model-router-hook

83 stars · Last commit 2026-09-02

Claude Code hooks that auto-switch model tier based on task complexity

README preview

<div align="center">

# Claude Model Router Hook

**Effort-first model routing for Claude Code. Heuristics-first, opt-in autoswitch.**

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-lightgrey)
![Shell](https://img.shields.io/badge/shell-bash-blue)

</div>

## Install

```bash
installer="$(curl -fsSL https://raw.githubusercontent.com/tzachbon/claude-model-router-hook/361031c9381fd6d2b5c47b311b7037015b3c2f6d/install.sh)" && bash -c "$installer"
```

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.

View full repository on GitHub →