npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@0xkahi/pi-model-select

v1.1.0

Published

Pi extension that adds /select-model with favourites and provider-filtered model search

Downloads

491

Readme

pi-model-select

Pi extension that adds /select-model: a popup model picker with favourites plus provider-filtered fuzzy search.

Install

Install globally (writes to ~/.pi/agent/settings.json):

pi install npm:@0xkahi/pi-model-select

Or install into the current project only (writes to .pi/settings.json, shareable with your team):

pi install npm:@0xkahi/pi-model-select -l

Pin a specific version:

pi install npm:@0xkahi/[email protected]

Install directly from GitHub instead of npm:

pi install git:github.com/0xKahi/pi-model-select
pi install git:github.com/0xKahi/[email protected]   # pinned

Try without installing

Use -e / --extension to load for a single run without modifying settings:

pi -e .                          # from inside this repo

Manage

pi list                                       # show installed packages
pi update npm:@0xkahi/pi-model-select         # update this package
pi remove npm:@0xkahi/pi-model-select         # uninstall

The package manifest exposes ./src/index.ts as a Pi extension.

Command

/select-model
  • Tab switches between Favourites and Search.
  • ↑/↓ navigates, Enter selects, Esc cancels.
  • Selecting a model calls Pi's model setter, matching /model behavior.
  • Optional direct form: /select-model provider/modelId.

Config files

| Scope | Path | | --- | --- | | Global | ~/.pi/agent/extensions/pi-model-select/config.json (respects PI_CODING_AGENT_DIR) | | Project | <cwd>/.pi/extensions/pi-model-select/config.json |

The extension accepts JSON with comments and trailing commas.

Project config overrides global provider_filter when the key is present. Favourites are combined from global then project and de-duplicated.

{
  "$schema": "https://raw.githubusercontent.com/0xKahi/pi-model-select/main/config.schema.json",
  "favourite": [
    {
      "provider": "openai-codex",
      "modelId": "gpt-5.5"
    },
    {
      "provider": "anthropic",
      "modelId": "claude-opus-4-7"
    },
    {
      "provider": "opencode-go",
      "modelId": "kimi-k2.6"
    }
  ],
  // Empty array means no filter: all authorized providers are shown.
  "provider_filter": ["openai-codex", "anthropic", "opencode-go", "openrouter"]
}