← Catalog

@mumboo/pi-openrouter-routing

Configure OpenRouter provider routing preferences per model in pi.

Package

Install

Install with PiG

pig install npm:@mumboo/pi-openrouter-routing

Install with Pi

pi install npm:@mumboo/pi-openrouter-routing
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.5 (README.md). PiG does not review it.

pi OpenRouter Routing

Pin which providers pi uses for an OpenRouter model, interactively, from inside the editor.

preview

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