@jasonish/pi-default-model
Set a **real** default model
Package details
Install @jasonish/pi-default-model from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@jasonish/pi-default-model- Package
@jasonish/pi-default-model- Version
0.1.1- Published
- Feb 8, 2026
- Downloads
- 11/mo · 4/wk
- Author
- jasonish
- License
- MIT
- Types
- extension
- Size
- 11.2 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-default-model
A small Pi extension that lets you save your current model + thinking level as the startup default.
On each new session, it reads startupModel from settings and applies it automatically.
Commands
/set-default-model
Save the currently active model and thinking level to global startupModel.
Examples:
/set-default-model
/set-default-model --help
/set-project-default-model
Save the currently active model and thinking level to project startupModel (.pi/settings.json).
/set-default-model-project
Alias for /set-project-default-model.
/startup-model [--global|--project] [show|clear]
Inspect or clear the saved startup setting.
Examples:
/startup-model
/startup-model --project
/startup-model clear
/startup-model --project clear
/startup-model --help
Where it stores settings
- Global:
~/.pi/agent/settings.json - Project:
.pi/settings.json
Stored shape:
{
"startupModel": {
"model": "provider/model-id",
"thinkingLevel": "off|minimal|low|medium|high|xhigh"
}
}
Note: legacy string form is also read (
"startupModel": "provider/model-id").
Typical workflow
- Pick your model and thinking level in Pi.
- Run
/set-default-model. - Start a new session — the extension applies that model/thinking automatically.