pi-model-costs
extensionmaintainedPricing-aware model picker for pi: select models with per-1M-token cost, context window, cache rates, tiers and reasoning support. Sort models by input/output/total cost with ctrl+s.
by — · v1.1.0 · published 2w ago
$ pi install npm:pi-model-costsSignals
Download trend
No downloads in the last 12 weeks.
README
model-costs
Pricing-aware model picker for pi (https://pi.dev). The built-in /model
selector does not show pricing — this extension adds a model picker that shows
the real cost of each model before you switch.
Features
/model-cost [query]— model picker with:- per-1M-token input/output cost
- context window and max output tokens
- cache read/write rates and pricing tiers
- reasoning support and modality (text / text+image)
ctrl+scost sorting — cycle through default, input ↑↓, output ↑↓ and total (input + output) ↑↓; the active mode is shown in the footer- same flow as
/model: arrows to navigate, type to fuzzy-filter,Tabtoggles all/scoped (when scoped models are configured),Enterselects,Esccancels
- Footer status — pricing of the currently active model in the footer
(disable it by setting
SHOW_STATUS = falsein the source).
In default order the current model is marked with a ✓ and sorted to the top; cost sorts rank models purely by price (ties broken by provider/id).

Install
# from npm (recommended)
pi install npm:pi-model-costs
# from the gallery or a git repo
pi install git:github.com/MaurizioFaeddaDev/model-costs
# or, to try without installing:
pi -e npm:pi-model-costs
Only interactive (
tui) mode supports the custom picker. In print/RPC mode the command notifies you that it is unavailable.
Usage
/model-cost # browse all models
/model-cost claude # fuzzy-filter by provider/id/name
/model-cost $0.00 # fuzzy-filter by cost
/model-cost extends the built-in /model selector; the actual model switch
still goes through pi's normal setModel path, so API keys are resolved the
same way.
License
MIT