@0xkahi/pi-model-select
Pi's Extended Intelligent Model Selector
Install & Use
Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:
Help me install this AI Skill: @0xkahi/pi-model-select. It is used for: Pi's Extended Intelligent Model Selector Full Skill content: https://321skill.com/skills/0xkahi-pi-model-select/raw/index.md Read that page and install it.
The prompt includes a link to the full Skill content. You can also view the full content.
This Skill addresses the pain point of frequently switching AI models during coding tasks. In real-world development, developers often need to switch between different AI models based on task types (e.g., code generation, debugging, documentation writing). However, Pi's built-in /model command only allows manual entry of model IDs, lacking quick browsing or bookmarking of frequently used models, which hampers efficiency.
Usage is straightforward: simply type /select-model in the Pi terminal to open an interactive model selection panel. Use the Tab key to switch between the "Favorites" and "Search" tabs, navigate with the ↑/↓ keys, and confirm your selection with Enter. The search mode supports fuzzy search with provider filtering for quick model targeting. You can also specify a model directly using /select-model provider/modelId. After installation, the extension defaults to an inline layout at the bottom of the editor but can be switched to a centered overlay via configuration.
It is ideal for agent developers and full-stack developers who frequently switch AI models, especially individuals or teams using multiple model providers (e.g., OpenAI, Anthropic, OpenRouter). The favorites feature allows pinning commonly used models, reducing repetitive lookup time and boosting development efficiency.
It is recommended to pre-configure the favourite list and provider_filter in the configuration file for an optimal experience. Note that it primarily relies on the Pi CLI environment and only supports model providers authorized by Pi; it cannot be used with unintegrated third-party models.
Key Features
Unlike Pi's built-in `/model` command, this extension supports a favorites list, provider-filtered fuzzy search, and offers an optional floating overlay layout. The built-in command only allows manual entry of model IDs and lacks browsing or filtering capabilities.
Limitations
Requires the Pi CLI environment (`~/.pi` configuration) and only supports model providers authorized by Pi. It cannot integrate with third-party models not registered in Pi.
FAQ
How do I configure favorite models?
Add objects to the `favourite` array in the global or project configuration file, using the format `{"provider": "openai-codex", "modelId": "gpt-5.5"}`. Aliases like `favourites` and `favorite` are also supported.
How do I switch between inline and overlay layouts?
Set the `layout` field in the configuration file to `"inline"` or `"overlay"`. The default is inline. Project configuration overrides global settings.
Installation guide for AI assistants
If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:
Visit https://321skill.com/skills/0xkahi-pi-model-select/raw/index.md to read the original Skill definition (Markdown format) for @0xkahi/pi-model-select, and install it according to the instructions.
Raw Markdown URL for AI: /skills/0xkahi-pi-model-select/raw/index.md