pi-model-switcher
v0.1.0
Published
Switch Pi models by pi-model-alias name with an optional thinking level.
Maintainers
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-aliasThen install this package:
pi install npm:pi-model-switcherReload an existing Pi session with /reload.
Usage
/switch-model <alias> [thinking-level]Examples:
/switch-model terra
/switch-model sonnet highValid 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-runLicense
MIT
