pi-model-switcher
Switch Pi models by pi-model-alias name with an optional thinking level.
Package details
Install pi-model-switcher from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-model-switcher- Package
pi-model-switcher- Version
0.1.0- Published
- Sep 9, 2026
- Downloads
- 142/mo · 142/wk
- Author
- elied-dev
- License
- MIT
- Types
- extension
- Size
- 10.6 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/switch-model.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-model-switcher
Switch Pi models by pi-model-alias alias, with an optional thinking level.
Install
Install and configure the alias package first:
pi install npm:@zigai/pi-model-alias
Then install this package:
pi install npm:pi-model-switcher
Reload an existing Pi session with /reload.
Usage
/switch-model <alias> [thinking-level]
Examples:
/switch-model terra
/switch-model sonnet high
Valid thinking levels are off, minimal, low, medium, high, xhigh, and max.
When the level is omitted, Pi applies its configured default for the selected model. An explicit level affects only the current session and is clamped to the model's supported levels.
Aliases come from the active pi-model-alias settings:
~/.pi/agent/extension-settings/pi-model-alias.json<project>/.pi/extension-settings/pi-model-alias.jsonfor a trusted project override
Alias matching is exact and case-sensitive. If multiple providers define the same alias, /switch-model rejects the ambiguous name rather than guessing.
Development
npm install
npm test
npm run typecheck
npm pack --dry-run
License
MIT