@ryan_nookpi/pi-extension-codex-fast-mode0.2.10
Codex fast mode extension for pi.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
@ryan_nookpi/pi-extension-codex-fast-mode
This extension helps pi use OpenAI Codex in a faster, lower-verbosity mode.
It is intended for openai-codex with the supported gpt-5.6, gpt-6, gpt-6.1, and gpt-6.2 models, when you want quick execution and shorter responses.
Install
pi install npm:@ryan_nookpi/pi-extension-codex-fast-mode
Great for
- prioritizing speed over long explanations
- keeping Codex responses concise
- toggling a faster Codex setup per session
Usage
/codex-fast on
/codex-fast off
/codex-fast status
Notes
- Target models:
openai-codex / gpt-5.6-luna,gpt-5.6-sol,gpt-5.6-terra,gpt-6-astra,gpt-6-luna,gpt-6-sol,gpt-6.1-sol,gpt-6.1-terra,gpt-6.2-astra, andgpt-6.2-sol.gpt-5.4andgpt-5.5are no longer targeted. - Command descriptions and status messages abbreviate the list as
gpt-5.6, gpt-6, gpt-6.1, gpt-6.2; matching still uses the exact model IDs above. - This extension does not register models.
gpt-6.1-terraneeds Pi SDK1.5.0and thegpt-6.2models need1.6.0; Pi1.6.0madegpt-6.2-solthe defaultopenai-codexmodel. Availability still depends on your account and workspace. - OpenAI documents Fast mode usage at 2.5x the Standard rate for included subscription limits and 2x for purchased credits and Enterprise pay-as-you-go usage. These are billing multipliers, not speed increases.
- Pi SDK
1.4.0removedopenai-codex/gpt-5.5because the Codex backend rejects it for ChatGPT accounts, so this extension no longer targets it. - It always applies
text.verbosity=low. - When fast mode is enabled, it also injects
service_tier=priorityinto the ChatGPT Codex backend request. The Codex CLI sends the samepriorityvalue for its Fast speed. Do not substitute the config valuefastwithout verifying backend support. - Live requests with Pi SDK
1.0.1succeeded forgpt-6-astra,gpt-6-luna,gpt-6-sol, andgpt-6.1-solwithpriorityand low verbosity. The backend returnedservice_tier=default, so this confirms request acceptance, not actual priority scheduling or a speed increase.gpt-6.1-terraand thegpt-6.2models are targeted because OpenAI lists them as Fast mode models; they have not been checked with a live request yet. - The tier is injected into the request body, which Pi's usage accounting does not see. Pi prices the response at the tier the backend reports, and the backend has reported
default, so usage costs show the Standard rate. Pi'sserviceTierstream option would price the requested tier, butstreamSimple()does not forward that option. - The setting is stored locally and persists across sessions.
References
OpenAI documents which models support Fast mode (GPT-6.2 Astra and Sol, GPT-6.1 Sol and Terra, GPT-6 Astra, Sol, and Luna) and its Codex credit consumption: https://developers.openai.com/codex/speed
The Codex CLI maps its Fast speed to the
priorityrequest value: https://github.com/openai/codex/blob/main/codex-rs/protocol/src/config_types.rsOpenAI documents Astra and its API Fast mode pricing: https://developers.openai.com/api/docs/models/gpt-6-astra
Pi's model catalog and provider implementation: https://github.com/earendil-works/pi/tree/main/packages/ai/src/providers
OpenAI recommends the Responses API for reasoning models such as
gpt-5.6: https://developers.openai.com/api/docs/guides/textOpenAI documents
text.verbosity=lowfor shorter GPT-5-family outputs: https://help.openai.com/en/articles/5072518-controlling-the-length-of-completionsOpenAI documents
service_tier=priorityas the request-level opt-in for Priority processing on the Responses API: https://developers.openai.com/api/docs/guides/priority-processing