Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-model-picker

A two-column model picker for pi. /m opens a selector where / switches provider and / picks a model, so you can reach any of a hundred models in a few keystrokes instead of scrolling one flat list.

 commandcode/gpt-5.6-luna
 ←→ category   ↑↓ model   Enter select   Esc cancel

 › RECENT              commandcode/gpt-5.6-luna
   PROVIDERS           openai-codex/gpt-5.3-codex
   CommandCode         commandcode/claude-opus-5
   OpenAI Codex        commandcode/gpt-5.4
   opencode-go

 commandcode/gpt-5.6-luna · ctx 1,100,000

Install

pi install git:github.com/vi2q/pi-model-picker

or, from npm:

pi install npm:@vi2q/pi-model-picker

Usage

Key Action
/m Open the picker
/ Previous / next category
/ Previous / next model
PgUp / PgDn Jump 10 models
Enter Switch to the highlighted model
Esc Close without changing anything

/m also takes a provider name to narrow the left column before opening: /m codex, /m opencode. Provider names complete with Tab.

RECENT

The left column starts with a RECENT category holding the last four models you switched to, shown as provider/model since they come from different providers. Every model change counts toward it, including ones made with the built-in /model command or Ctrl+P cycling. History lives in ~/.pi/agent/model-picker-recent.json and survives restarts.

Scoped models

If you restrict models with the --models flag or the enabledModels setting, the picker shows only that scoped set, the same way Ctrl+P does. With no scoping it lists every available model.

Notes

  • Requires TUI mode. In print or JSON mode /m reports an error instead of opening a dialog.
  • The built-in /model command stays as is. This extension only adds /m.
  • Switching to a model whose provider has no API key keeps the current model and shows a warning.
  • The RECENT length (4) is hardcoded.

License

MIT

About

Two-column model picker for pi: ←→ switches provider, ↑↓ picks a model

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages