← Catalog

pi-openrouter-fallback

Pi extension for OpenRouter model scoping and automatic switch to openrouter/free on HTTP 403 with auto-resubmit

Extension

Install

Install with PiG

pig install npm:pi-openrouter-fallback

Install with Pi

pi install npm:pi-openrouter-fallback
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": [
    "./extensions"
  ]
}

README

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

pi-openrouter-fallback

Pi extension that:

  • scopes the OpenRouter model list to a curated subset so /model stays focused
  • watches for HTTP 403 responses from OpenRouter
  • switches to openrouter/free
  • auto-resubmits the last prompt as a follow-up
  • shows OpenRouter model pricing in the footer status area as input/output cost per 1M tokens

Local test

pi -e ./pi-packages/pi-openrouter-fallback

Install from local path

pi install ./pi-packages/pi-openrouter-fallback