pi-model-info
Pi extension for querying registered model information — list, inspect, and check current model with fuzzy search.
Package details
Install pi-model-info from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-model-info- Package
pi-model-info- Version
1.0.1- Published
- Jun 6, 2026
- Downloads
- not available
- Author
- smilefaace
- License
- unknown
- Types
- extension
- Size
- 10.9 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-model-info
Let your AI agent query registered model information directly — no need to read models.json.
Install
pi install npm:pi-model-info
Why
Pi's ModelRegistry knows all available models, their capabilities, costs, and context windows. But the agent has no way to ask. This extension gives it three read-only tools to do exactly that — useful when the agent needs to pick the right model before delegating a subagent.
Tools
| Tool | What it does |
|---|---|
model_list |
List available models with fuzzy search, filter by input type, reasoning support, or provider |
model_inspect |
Show full details for a single model by provider/id or just id |
model_current |
Show the currently active model, thinking level, and context usage |
Examples
List all models that support image input.
Show details for mimo-v2.5.
What model am I using right now?
Find all reasoning models from the xiaomi provider.
Notes
- Read-only. No model switching, no mutations.
- Uses
getAvailable()by default — only models with configured API keys are listed. - Fuzzy search uses the same algorithm as Pi's built-in Ctrl+L model selector.