pi-ccs-current-model
v0.1.0
Published
Quickly switch models within the active pi-ccs provider.
Maintainers
Readme
pi-ccs-current-model
A small companion extension for pi-ccs. It adds a fast model switcher restricted to the currently selected cc-switch provider.
Why
pi-ccs intentionally uses a three-level picker:
provider type → provider name → modelThat is useful when changing providers, but repetitive when only changing models on the current provider. This extension adds the missing shortcut without modifying pi-ccs or the cc-switch SQLite database.
Requirements
Install and configure pi-ccs first:
pi install npm:pi-ccsThen install this extension from a local checkout:
pi install /absolute/path/to/pi-ccs-current-modelRestart Pi or run /reload afterwards.
Commands
Open the current provider's model picker
/ccs-modelAlias:
/ps-modelThe picker:
- reads the current provider from
pi-ccsselection state; - fetches the provider's remote
/modelslist when available; - merges remote IDs with the provider's configured models;
- marks the active model with
★; - falls back to the configured list when the remote request fails;
- allows a manual model ID.
Switch directly
/ccs-model gpt-5.6-terraThis keeps the current provider and only replaces its model ID.
Safety and compatibility
- Uses
pi-ccs's existing provider parser, header/fingerprint logic, model metadata overrides, Pi selection state, and cc-switch read-only database access. - Does not write to
~/.cc-switch/cc-switch.db. - Does not store or print API keys.
- It requires
pi-ccs0.1.3or compatible internals. If a futurepi-ccsrelease changes these non-public module paths, update this extension accordingly. - Do not also add a local patch that registers
/ccs-modelinsidepi-ccs, or Pi will report a duplicate command.
Development
npm install
npm run typecheck
npm run pack:checkTry it without permanent installation:
pi -e /absolute/path/to/pi-ccs-current-modelLicense
MIT
