token-rate-pi

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

Packages

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.5
Published
May 16, 2026
Downloads
279/mo · 19/wk
Author
prateekmedia
License
MIT
Types
extension
Size
4 KB
Dependencies
0 dependencies · 2 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
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)