@mumboo/pi-openrouter-routing
Configure OpenRouter provider routing preferences per model in pi.
Package details
Install @mumboo/pi-openrouter-routing from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@mumboo/pi-openrouter-routing- Package
@mumboo/pi-openrouter-routing- Version
0.1.4- Published
- Sep 6, 2026
- Downloads
- 488/mo · 488/wk
- Author
- mumboo
- License
- MIT
- Types
- extension
- Size
- 19.4 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi OpenRouter Routing
Pin which providers pi uses for an OpenRouter model, interactively, from inside the editor.

Install
pi install npm:@mumboo/pi-openrouter-routing
Or try it without installing:
pi -e npm:@mumboo/pi-openrouter-routing
Use
Switch to an OpenRouter model, then run /routing to pick its providers:
- ↑/↓ + enter — toggle providers
- alt+↑/alt+↓ — set priority order
- ctrl+a / ctrl+x — enable all / none
- ctrl+f — toggle fallbacks (fall back to other providers when pinned ones are unavailable)
- ctrl+s — save · esc — close
Saves are written to ~/.pi/agent/models.json and applied to the running session immediately — no restart needed. Hand-set routing fields (e.g. sort, max_price) are preserved.
Development
npm install
npm run check
License
MIT