Windows floating widget for Codex local usage limits and token activity.
The widget reads local Codex session logs from %USERPROFILE%\.codex\sessions.
It does not call the OpenAI API, scrape the Usage Dashboard, read other AI tools,
upload telemetry, or copy Codex prompts/session payloads into diagnostics.
Download the latest Windows x64 Beta from GitHub Releases.
Use the NSIS setup executable named like Codex_Usage_0.2.0_x64-setup.exe.
Windows 10 and Windows 11 on x64 are supported. ARM64, x86, macOS, Linux, MSI,
Microsoft Store, and signed Authenticode installers are outside this Beta.
- Download the NSIS setup executable from GitHub Releases.
- Run the installer.
- If Windows SmartScreen warns, choose
More infoandRun anywayonly if the file came from the official release page. - Launch
Codex Usage.
The Beta installer is unsigned, so SmartScreen warnings are expected.
- 12-month token heatmap from local
token_countevents. - 5h and weekly usage bars from local
rate_limitssnapshots. - Today token total, session count, freshness status, manual refresh, and always-on-top toggle.
- Automatic local refresh every 60 seconds.
- Tauri tray menu: Show, Hide, Refresh, Diagnostics, Exit.
- Close-to-tray behavior; use
Exitto terminate the process. - Single-instance behavior; duplicate launches focus the existing widget.
- Optional
Launch at startupsetting in Diagnostics. - Window position and size persistence.
- Signed in-app update checks after launch; updates install only after user confirmation.
- Safe diagnostic summary for GitHub issues.
The Rust backend persists a small SQLite database under the local app data folder.
usage_daily: daily token aggregates frompayload.info.last_token_usage.limit_snapshots: raw 5h/weekly rate limit snapshots.processed_events: event hashes used to prevent double-counting.app_config: sessions path and widget settings.
Uninstalling removes the application but leaves the local database, settings, and logs under the platform app data directories. Delete those folders manually if you want a full reset before reinstalling.
Open the tray menu and choose Diagnostics.
The diagnostics panel shows app version, platform, sessions path readability,
database path, log directory, latest scan result, scan counters, and the latest
non-sensitive error. Copy copies only that displayed metadata. It does not
attach logs or session files.
Usage limit unavailable: no non-nullrate_limitssnapshot was found in local Codex logs yet.- Missing sessions path: confirm
%USERPROFILE%\.codex\sessionsexists or set a custom path. - Malformed or unreadable logs: the scanner records counts and keeps the last valid dashboard state when possible.
- Update check errors: local usage monitoring continues; try the GitHub Release page manually.
Requirements:
- Node.js 20+.
- npm 10+.
- Rust/Cargo and the Tauri v2 system prerequisites for Windows.
Commands:
npm ci
npm test
npm run build
npm run tauri devRust checks:
cd src-tauri
cargo fmt -- --check
cargo test
cargo checkRelease build:
$env:TAURI_SIGNING_PRIVATE_KEY=Get-Content -Raw "$env:TEMP\codex-usage-widget-v02-updater.key"
$env:TAURI_SIGNING_PRIVATE_KEY_PASSWORD="<updater-key-password>"
npm run tauri buildProduction releases are triggered by tags such as v0.2.0. The tag version must
match package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
GitHub Actions needs these secrets for updater artifacts:
TAURI_SIGNING_PRIVATE_KEYTAURI_SIGNING_PRIVATE_KEY_PASSWORD
