
Tiny GitHub Copilot credit meter
I made Afterglow because I wanted to see how many Copilot credits I had left
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
I made Afterglow because I wanted to see how many Copilot credits I had left without having to look them up. It sits in your Mac's menu bar or Windows system tray and uses your existing GitHub CLI login.
Download for Mac — Apple Silicon · Download for Windows — x64
Free and open source. Mac download: 3 MB. Windows download: 2 MB.
Early preview: I've tested it on my Mac with procode.ghe.com. Windows builds and tests pass, but I haven't tried it on a Windows machine yet. Both downloads are unsigned, and the Mac app isn't notarized. It relies on an internal GitHub endpoint that could change; other hosts and plans haven't been verified.
See remaining credits, allowance, usage, and your next reset date.
Refreshes every ten minutes, or whenever you choose Refresh now.
Labels your balance Low below 20% remaining and Critical below 10%.
Uses your existing gh auth login. No token storage, backend, or telemetry.
It's about 500 lines of Rust, including tests, with no frontend JavaScript or webview window. The numbers are your monthly account balance, not usage for one terminal session. AI credits aren't the same as a count of premium requests.
- Install GitHub CLI and sign in for your account's host, if you haven't already:
gh auth login --hostname YOUR_HOST
Replace YOUR_HOST with your GitHub hostname, such as procode.ghe.com.
- Grab the download for your computer using the links above.
These previews may trigger Gatekeeper or SmartScreen warnings. Only approve the app if you trust the download and your organization's policy allows it. Don't disable system protections. Help with installation.
- Set your host if needed. The default is procode.ghe.com. Choose Open settings file… from the ring's menu, edit the hostname value, save, and choose Refresh now. Your gh login must match that host. Windows shows the percentage inside the menu, not beside the tray icon.
Build from source · Troubleshooting · How it works · Report an issue
It doesn't have burn-rate estimates, a model breakdown, notifications, or launch-at-login yet. GitHub's figures can take a while to catch up, so the menu shows when the API reported them and when the app last checked.
MIT licensed. Unofficial; not affiliated with or endorsed by GitHub.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。