Install
Install with PiG
pig install npm:@howaboua/pi-gpt-switcherInstall with Pi
pi install npm:@howaboua/pi-gpt-switcherPackages 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.7 (README.md). PiG does not review it.
@howaboua/pi-gpt-switcher
Pi extension adding quick model commands:
| Command | Model |
|---|---|
/sol [reasoning] | openai-codex/gpt-6.2-sol |
/terra [reasoning] | openai-codex/gpt-6.1-terra |
/luna [reasoning] | openai-codex/gpt-6-luna |
/astra [reasoning] | openai-codex/gpt-6.2-astra |
An explicit reasoning argument overrides the configured default. Valid arguments
are off, minimal, low, medium, high, xhigh, and max; for example,
/luna low.
Defaults
On first load, the extension creates pi-gpt-switcher.json in Pi's global
agent directory:
{
"sol": { "contextWindow": 500000, "reasoning": "high" },
"terra": { "contextWindow": 500000, "reasoning": "high" },
"luna": { "contextWindow": 500000, "reasoning": "xhigh" },
"astra": { "contextWindow": 256000, "reasoning": "low" }
}
Edit the file to change a shortcut's session context window or default reasoning. Changes apply on the next shortcut invocation and do not alter the provider catalogue. Context windows must be safe integers of at least 128k. Values above the shortcut's default are accepted. Set a window supported by your provider; this setting changes Pi's budget, not the provider's capacity.
Existing context and reasoning settings are preserved. Edit existing context windows to adopt the new defaults. Omitted shortcuts use their shipped defaults, and unknown entries are ignored.
Install
pi install npm:@howaboua/pi-gpt-switcher
Try it for one session:
pi -e npm:@howaboua/pi-gpt-switcher
How it works
The commands use Pi's model registry and normal provider authentication. If a model is unavailable or the OpenAI Codex credentials are missing, the command reports that instead of changing the current model.
GPT-6.2 shortcuts work with Pi's built-in Codex provider without another extension. An extension-supplied native Codex provider keeps control of its model catalogue.
Pi clamps the requested reasoning level automatically if the selected model supports fewer levels.
Local development
Load the checkout directly:
pi -e ./index.ts