@wyattjoh/pi-openai-fast
v0.1.0
Published
A minimal pi extension that enables OpenAI Codex Fast mode via OPENAI_FAST_MODE=1.
Maintainers
Readme
pi-openai-fast
A minimal pi extension that enables OpenAI Codex Fast mode when explicitly requested through an environment variable.
Usage
Install the package:
pi install npm:@wyattjoh/pi-openai-fastStart pi with Fast mode enabled:
OPENAI_FAST_MODE=1 piReload pi after installing the extension if it is already running:
/reloadFast mode is disabled when OPENAI_FAST_MODE is unset or has any value other than 1.
Behavior
For eligible requests, the extension adds the OpenAI priority service tier to the request payload:
{
"service_tier": "priority"
}The extension only modifies a request when all of the following are true:
OPENAI_FAST_MODE=1was present when pi loaded the extension.- The provider is
openai-codex. - The API is
openai-codex-responses. - ChatGPT OAuth/subscription authentication is in use.
- The selected model is one of:
gpt-5.4gpt-5.5gpt-5.6-solgpt-5.6-terragpt-5.6-luna
- The payload targets the selected model.
- The payload does not already contain
service_tier.
The extension has no command, status indicator, or configuration file. Change the environment variable and restart pi (or run /reload after changing pi's environment) to change the behavior.
