← Catalog

pi-codex-usage-remaining

Display Codex usage in Pi's footer

Extension

Install

Install with PiG

pig install npm:pi-codex-usage-remaining

Install with Pi

pi install npm:pi-codex-usage-remaining
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://unpkg.com/pi-codex-usage-remaining/pi-codex-usage.png",
  "extensions": [
    "./extensions/codex-usage.ts"
  ]
}

README

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

Pi Codex Usage

A Pi extension that displays your Codex usage—like Codex does—with the remaining usage for each limit window and its reset time or date. It fits seamlessly into Pi's footer without disrupting your workflow.

The footer refreshes at session start and every five minutes. It uses the Codex account already configured in Pi; sign in to the openai-codex provider to see usage.

Install

pi install npm:pi-codex-usage

For local development:

pi -e /path/to/pi-codex-usage/extensions/codex-usage.ts

Display

Usage is shown as the remaining percentage for each window, followed by its reset time (for resets within 24 hours) or date. For example:

5h 82% 14:30 • Weekly 64% 12 Oct

If Codex usage cannot be retrieved, the footer displays Codex usage unavailable.

Publish

npm login
npm publish

The package name may need to be changed if pi-codex-usage is already taken on npm. Choose and add a license before publishing.