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

@kshlm/pi-devpass-provider

v0.1.2

Published

pi extension: LLM Gateway / DevPass provider with auto-fetched models, rates, and credit balance

Downloads

43

Readme

@kshlm/pi-devpass-provider

A pi extension that registers a devpass model provider backed by LLM Gateway and the DevPass coding plan.

  • Models and $/M rates are fetched live from the gateway at startup, with a 24 h on-disk cache and stale fallback when offline
  • DevPass credit balance shows in the status line as devpass balance $<balance> while a devpass/* model is active
  • /devpass prints the full key status, loaded-model count, and premium credit usage

Install

pi install npm:@kshlm/pi-devpass-provider

Or from a local checkout:

pi install /abs/path/to/pi-devpass-provider

Setup

  1. Get a DevPass plan key (llmgtwy_...) from https://devpass.llmgateway.io.
  2. Make it available to pi, either by running /login devpass inside pi and pasting the key (stored in ~/.pi/agent/auth.json), or by exporting it:
export LLM_GATEWAY_API_KEY=llmgtwy_...

A saved /login credential takes precedence over the environment variable.

Usage

  • /model: pick a devpass/* model. DevPass plan keys use root model ids (claude-sonnet-4-5); provider-pinned ids (anthropic/...) are unavailable on coding plans.
  • /devpass: show the credit balance and key status at any time.

Configuration

| Variable | Purpose | | --- | --- | | LLM_GATEWAY_API_KEY | DevPass plan key, used when no /login devpass credential is saved | | LLM_GATEWAY_BASE_URL | Override the gateway base URL (default https://api.llmgateway.io/v1), e.g. for a self-hosted gateway or proxy |

Notes

  • The model catalog is cached at ~/.pi/agent/cache/devpass-models-*.json (24 h TTL, keyed per base URL). /v1/models is public, so models load even without a key; requests and the balance display still need one.
  • Rates shown by pi are for display and cost tracking only; the gateway meters and bills your actual usage.
  • A missing or invalid key never crashes pi: the provider registers with zero models and the status line carries the error.

Development

npm install
npm run check   # tsc --noEmit + selfcheck asserts

Try it live with pi -e ., then /login devpass and /model.

License

MIT