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

pi-provider-status

v0.2.1

Published

Show remaining quota and balance for LLM providers in pi — /status panel for Kimi Coding, Zhipu ZAI, MiniMax, DeepSeek, OpenRouter, Claude and Codex subscription windows

Readme

pi-provider-status

/status — a live panel in pi showing remaining quota / balance for every provider you have configured, with usage bars and reset timelines.

● Kimi Coding (kimi-coding) (0.8s)
  Week       ██████░░░░░░░░░░  43% used   resets 8-25 00:00
             ─────────●─────  3d 4h to reset (8-25 00:00)
  5h window  ██░░░░░░░░░░░░░░  12% used

● Deepseek (0.3s)
  Balance CNY  128.40

The panel opens immediately; each section fills in as its request settles. Press r to refresh, Esc/q to close. In non-interactive mode the report is printed as a plain notification instead.

Install

pi install npm:pi-provider-status

No configuration needed — a provider is reported only when you already have an API key configured for it in pi. Anything else never appears.

Supported sources

API-key providers (key resolved from pi's model registry):

| Provider id | What's shown | |---|---| | kimi-coding | Membership, weekly quota, 5h window | | zai-coding-cn (Zhipu ZAI Coding Plan) | Membership, weekly quota, 5h window, MCP monthly | | minimax-cn | Per-model interval + weekly windows | | deepseek | Balance per currency | | openrouter-free | Credit balance + monthly usage |

OAuth accounts (discovered automatically):

  • Claude account — reads Claude Code's own credentials (macOS Keychain, or ~/.claude/.credentials.json). Strictly read-only: an expired token is reported as an error, never refreshed — re-login with the claude CLI to renew.
  • Codex account — uses pi's own ChatGPT login (/login → ChatGPT Codex), so pi handles token refresh. Shows plan type, weekly/5h windows, credits, spend control.
  • Kimi cli account — reads the official kimi-code CLI's OAuth credentials (~/.kimi-code). When the token is close to expiry it is refreshed through the CLI's own OAuth flow and the rotated pair is written back (exactly what the CLI itself does).

Multiple API keys for one provider (e.g. several Kimi accounts): point KIMI_SWITCH_STORE at a directory of <name>.auth.json files ({"key": "sk-..."}) and each becomes its own "Kimi slot" section; the slot matching the live registry key is marked (active).

Privacy & safety

  • All requests go only to the respective provider's official status endpoint, authenticated with your own key/token.
  • No telemetry, no third-party calls, no data leaves your machine except the status queries themselves.
  • Writes happen in exactly one place: rotating the kimi-code CLI's OAuth token (as documented above). Claude tokens are never written.

Compatibility

Tested with pi 0.84.x on macOS and Linux. Provider status endpoints are undocumented and can change without notice — if a section starts erroring after a provider update, please open an issue.

License

MIT — © cyzlmh. See LICENSE.