pi-token-odometer

Animated input/output token odometers for pi coding agent.

Packages

Package details

extension

Install pi-token-odometer from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-token-odometer
Package
pi-token-odometer
Version
0.1.1
Published
May 27, 2026
Downloads
not available
Author
yequsun
License
MIT
Types
extension
Size
65.9 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ],
  "image": "https://raw.githubusercontent.com/yequsun/pi-token-odometer/main/assets/odometer-screenshot.png"
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-token-odometer

Animated input/output token odometers for pi coding agent.

pi-token-odometer screenshot

Features

  • Tracks input and output token usage for the current session branch.
  • Shows a compact odometer widget above the editor.
  • Starts estimating input tokens as soon as you submit a prompt.
  • Estimates output tokens during streaming and reconciles to exact provider usage when available.

Commands

/token-odometer show
/token-odometer hide
/token-odometer refresh

Notes

Live counts are estimates while a response is streaming. Exact token counts are read from provider usage after the assistant message completes.