A lightweight Windows tray app that shows live status for AI coding providers like Codex and Claude Code, plus token usage and spend.
- Session and weekly utilization with reset timers and pace indicators.
- Daily tokens + cost and 30-day rolling tokens + cost.
- Overage or credit balance when available.
- One-tap tray widget and a global hotkey (
Ctrl+Alt+U).
One-step PowerShell (technical)
iwr -useb https://raw.githubusercontent.com/fmdz387/costats/master/scripts/install.ps1 | iexDownloads the latest release, installs per-user and creates a Start Menu shortcut.
From source: see Build below.
- Click the tray icon to open the widget.
- Press
Ctrl+Alt+Uto toggle the widget (configurable). - Open Settings to set refresh interval or start at login.
Settings are stored at:
%LOCALAPPDATA%\costats\settings.json
Common settings:
RefreshMinutes(default 5)Hotkey(defaultCtrl+Alt+U)StartAtLogin(true/false)
Optional environment variable:
CODEX_HOMEto point to a custom Codex config/logs directory.
- Codex usage: OAuth usage endpoint via
~/.codex/auth.json(orCODEX_HOME), with local logs as a fallback for estimates. - Claude usage: OAuth usage endpoint via
~/.claude/.credentials.json, with local logs as a fallback for estimates. - Token + cost estimates: local JSONL logs from
~/.codex/sessionsand~/.claude/projects.
- Reads local auth and log files on your machine.
- Sends requests only to provider APIs to fetch usage data; no third-party telemetry.
- Background polling at a fixed interval (default 5 minutes).
- Single-instance, tray-first UI designed to stay lightweight.
Requires a .NET SDK that supports net10.0-windows.
# Build
dotnet build .\costats.sln -c Release
# Publish portable single-file binaries (x64 + arm64)
.\scripts\publish.ps1