Skip to content

CommandCode Tray Meter v1.0.0

Choose a tag to compare

@standardbus standardbus released this 16 Sep 06:18
· 9 commits to main since this release

First release of the tray meter for Command Code usage limits.

What to download

CommandCodeMonitor.exe - 78 KB, a single file. Windows 10/11 only: the C#
compiler of .NET Framework 4.8 is already part of the system, so there is no
runtime to install, no companion script and nothing to unpack.

Three-step start

  1. put CommandCodeMonitor.exe and config.json in the same folder (config.json
    is copied from config.example.json)
  2. paste your Provider-API key into apiKey - create it at https://commandcode.ai/settings/keys
  3. run the executable: the icon appears in the notification area, next to the clock

Start-at-login is enabled from the Start with Windows entry in the icon menu
(it writes to HKCU\...\CurrentVersion\Run, no privileges required).

Useful commands

.\CommandCodeMonitor.exe --selftest          # 13 offline checks, exit 0 when everything passes
.\CommandCodeMonitor.exe --render out.png    # draw the bubble into a PNG
.\CommandCodeMonitor.exe --demo              # open the bubble by itself, then exit
.\CommandCodeMonitor.exe --help

Download verification

Size 79.872 bytes (78 KB)
SHA-256 4BD88B9864700912A347810BE11583799392E2EA9B550C488C6C45FA91AFE396
Get-FileHash .\CommandCodeMonitor.exe -Algorithm SHA256

What it includes

  • notification-area icon with the ring on the selected window (5 hours, weekly or monthly) and the dot on the weekly window
  • a bubble that opens in under 150 ms and hydrates while it is on screen: rolling windows first, USD credits after
  • closing with the x, with a click outside, or with Esc (global WH_MOUSE_LL hook, removed on close)
  • configurable colour thresholds: green below 60%, amber from 60%, red from 85%
  • a single instance (named mutex), no service installed, no registry changes beyond the optional autostart

The executable is compiled from the sources in this repository with
scripts/build-exe.ps1; the same logic also exists as a Node/PowerShell
implementation under src/. Self-test passed: 13 ok, 0 failed.