← Catalog

@stagefright5/pi-openai-fast

Toggle OpenAI Fast mode (priority service tier) in pi

Extension

Install

Install with PiG

pig install npm:@stagefright5/pi-openai-fast

Install with Pi

pi install npm:@stagefright5/pi-openai-fast
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": [
    "./index.ts"
  ]
}

README

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

OpenAI Fast

Adds service_tier: "priority" (OpenAI Fast mode) to requests for the openai and openai-codex providers.

Back to the extension workspace

Installation

Install the standalone package:

pi install npm:@stagefright5/pi-openai-fast

For source development and tests, see the source README and workspace development guide.

Usage

  • /fast toggles it and atomically saves { "enabled": true } or false in getAgentDir()/openai-fast.json, an owner-only file. It never rewrites Pi's shared settings. Until a saved override exists, the effective merged openaiFast setting remains the default.
  • pi --fast turns it on for one run without saving.
  • The footer shows ⚡︎ while it is on and the current model is OpenAI. With Compact Status Bar, it appears immediately after the thinking/effort level.

It is off by default. /fast only turns on while an OpenAI model is selected.

Notes

  • Priority costs more credits or money. OpenAI may still serve the request at the normal tier.
  • Other providers are never changed.
  • Don't combine it with another extension that sets service_tier.