token-rate-pi

Token rate status extension for pi-coding-agent - shows average output tokens per second

Package details

extension

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

$ pi install npm:token-rate-pi
Package
token-rate-pi
Version
1.0.2
Published
Feb 5, 2026
Downloads
111/mo · 34/wk
Author
prateekmedia
License
MIT
Types
extension
Size
3.8 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./token-rate.ts"
  ]
}

Security note

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

README

Token Rate Extension

Shows the average output tokens per second (TPS) in the footer status line.

Setup

Install the package and enable the extension:

pi install npm:token-rate-pi@latest
pi config

Enable token-rate in pi config. Dependencies are installed automatically during pi install.

Usage

  • The status line shows TPS: -- until it has enough data.
  • After each assistant turn, it updates to TPS: <value> tok/s.
  • Resets when the session starts or when switching sessions.

File Structure

token-rate/
  token-rate.ts  # Extension entry point + status updates
  package.json   # Declares extension via "pi" field

License

MIT (see repository root)