Skip to content

tknkaa/cpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpm

A TUI tool that compares your remaining GitHub Copilot Premium requests against the days left in the billing cycle.

demo

Installation

cargo

cargo install --git https://github.com/tknkaa/cpm

Usage

# Fetch quota automatically via GitHub API
cpm

# Choose a display style
cpm --style progress  # default
cpm --style text
cpm --style graph

# Skip API fetch and specify remaining percentage directly
cpm --premium 23.4

Press any key to exit.

How it works

gh auth token is used to retrieve your GitHub OAuth token, which is then used to call the GitHub API and fetch your current quota snapshot. If the API call fails, cpm falls back to a TUI prompt where you can enter the remaining percentage manually (visible in your GitHub billing settings).

Requirements

  • GitHub CLI (gh) — for authentication
  • A GitHub account with Copilot enabled

License

MIT

About

Track your GitHub Copilot Premium request quota against the days left in the billing cycle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages