pi-models
v0.1.4
Published
Quality-of-life Pi extension for browsing and selecting models with a cascading menu interface
Maintainers
Readme
Pi Models Extension
A quality-of-life extension for Pi that simplifies model browsing with a cascading menu interface.
Features
- Two-level cascading menu - Select a provider first, then browse its models
- Free models section - All free models from any provider grouped at the top
- Local model support - Shows locally configured models (Ollama, LM Studio, etc.)
- Quick switching - Select any model to instantly switch to it
Usage
Run /models in Pi to open the browser.
Level 1: Provider list Level 2: Model list
┌─────────────────────┐ ┌─────────────────────────┐
│ 📦 Models │ │ 📦 anthropic │
│ │ ──► │ │
│ 🆓 Free Models (5) │ │ ● claude-sonnet-4 │
│ anthropropic (8) │ │ claude-haiku-3 │
│ google (4) │ │ claude-opus-4 │
│ openai (6) │ │ │
└─────────────────────┘ └─────────────────────────┘- Enter - Select provider/model
- Esc - Go back (from level 2 to level 1) or close
Installation
Via pi install (recommended)
pi install npm:pi-modelsThis installs the package and adds it to your settings.json automatically. Run /reload in Pi to pick up changes.
Via settings.json
Add to ~/.pi/agent/settings.json:
{
"packages": ["npm:pi-models"]
}Then run /reload in Pi.
Via GitHub (manual)
cd ~/.pi/agent/extensions
git clone https://github.com/apmantza/pi-models.gitOr copy just the file:
cp pi-models.ts ~/.pi/agent/extensions/Run /reload in Pi.
Requirements
- Pi v1.0+ with TypeScript extension support
- Models must have configured auth (API keys or local dummy keys like "ollama")
