← Catalog

@deathbeam/pi-usage

Minimal extension for token usage and cost per provider, model and project.

Extension

Install

Install with PiG

pig install npm:@deathbeam/pi-usage

Install with Pi

pi install npm:@deathbeam/pi-usage
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://cdn.jsdelivr.net/npm/@deathbeam/pi-usage/media/screenshot.png",
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.0.18 (README.md). PiG does not review it.

@deathbeam/pi-usage

Use the /usage command for a fullscreen dashboard of token usage and cost. It opens on a Summary and has per-day, per-provider, per-model and per-project views.

The Summary covers totals, trends with a month projection, the delegate share of the cost, activity and the top models, providers, projects, sessions, tools and skills.

/usage report

Installation

# Choose one:
pi install npm:@deathbeam/pi-usage               # this package
pi install git:github.com/deathbeam/pi-packages  # all my packages

Development

From the repo root:

npm install
npm test -- packages/pi-usage
pi install ./packages/pi-usage