pi-router is a Pi package that adds model routing with failover and priority-based selection:
/router:configureopens an interactive picker to select and prioritize models/router:enableenables the router/router:disabledisables the router- Automatically fails over to the next available model on errors
- Quits with exit code 1 if no model is available
Global install (writes to ~/.pi/agent/settings.json):
pi install git:github.com/yippiez/pi-routerLocal/project install (writes to .pi/settings.json in the current repo):
pi install -l git:github.com/yippiez/pi-routerPin global install to main:
pi install git:github.com/yippiez/pi-router@mainPin local install to main:
pi install -l git:github.com/yippiez/pi-router@main