omp packages

@sumhou/pi-kimi-usage1.1.0

Pi footer extension showing Kimi Coding quota progress, reset countdowns, and Moonshot PAYG balance

sumhou Published 1 month ago MIT ~322 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-kimi-usage

A Pi extension that shows Kimi Coding quota progress and reset countdowns in the Pi footer, with the Kimi label always shown in blue and quota bars colored by remaining percentage.

Features

  • Displays per-quota ASCII progress bars for the 5-hour and weekly Kimi Coding limits.
  • Shows reset countdowns like 1h42m or 2d6h next to each quota.
  • Shows optional Moonshot PAYG balance.
  • Only activates while a kimi-coding model is selected.
  • Refreshes quota data every 5 minutes; countdowns repaint every minute locally.

Install

pi install npm:@sumhou/pi-kimi-usage

Or install from git:

pi install git:github.com/ShumaoHou/pi-kimi-usage

Usage

Select any kimi-coding model and the footer will update automatically. Run /kimi-usage for a detailed notification.

Appearance

The status bar renders the Kimi label in fixed blue (rgb(23, 131, 255)). Each remaining quota bar is colored on a green-to-red gradient:

  • ≥ 80% remaining: green
  • ≤ 20% remaining: red
  • 20%–80%: linear transition between red and green

No color configuration is currently exposed.

Credentials

  • Kimi Coding: resolved from Pi's kimi-coding provider auth, then KIMI_API_KEY, then a stored OAuth token.
  • Moonshot PAYG: MOONSHOT_API_KEY.