See the Codex limits available to your account, including 5-hour and weekly windows, without opening a browser. Codex Usage Widget runs locally on Windows and reads usage through the official Codex CLI app server.
This is an independent utility and is not an official OpenAI application.
The widget requires Windows 10 version 1809 or newer, the Codex CLI on PATH, and a
completed local sign-in.
- Download the latest Windows x64 portable release.
- Start
CodexUsageWidget.exeafter extraction or directly from the ZIP. - If usage does not appear, confirm that
codex --versionworks in PowerShell and runcodex login.
The portable release includes the .NET runtime. The executable is not currently code-signed, so Windows may show an unknown-publisher warning. Each GitHub release includes a SHA-256 checksum for verification.
When Windows starts the executable from a temporary ZIP location, the widget copies that
version to %LOCALAPPDATA%\CodexUsageWidget\app\<version> and relaunches it. An executable
started from an extracted folder continues to run there. Only one widget instance runs at
a time.
If Codex is installed outside PATH, set CODEX_USAGE_WIDGET_CODEX_PATH to the full path
of codex.cmd or codex.exe.
- Remaining percentage and reset time for every general Codex usage window
- A selectable displayed limit shared by the widget headline, taskbar label, and tray icon
- Compact and detailed layouts, including credits, spend controls, earned resets, token activity, and model-specific limits when Codex returns them
- A movable, always-on-top desktop widget and a compact label beside the notification area
- Live task activity dots based on official local Codex lifecycle hooks
- Automatic refresh every two minutes plus live rate-limit notifications
- Fullscreen-aware taskbar behavior, per-monitor DPI support, and optional start with Windows
- Local logs for diagnostics, with no telemetry or remote backend
Desktop widget. Shows the selected limit as the headline and keeps every general limit visible below it. Compact mode focuses on limits; Details adds account and token activity.
Taskbar label. Shows the same selected percentage beside the Windows notification area. The tray icon and its tooltip follow that selection too.
Choose 5h limit, Weekly limit, or Most constrained from the Displayed limit menu.
The 5-hour window is the default. Available windows depend on the Codex account, so the
widget falls back to an available window when Codex does not return the selected one.
Token activity is informational. Token counts do not map directly to the remaining subscription percentage.
Select the − button to move the widget to the taskbar. Right-click the taskbar label or
tray icon to refresh, change the display mode or displayed limit, configure activity dots,
toggle start with Windows, check for updates, or exit.
Activity dots show whether at least one local Codex turn is running. Updates come from the official Codex lifecycle hooks through a current-user-only named pipe. The widget does not read prompt text, responses, transcript paths, or model output.
To enable them:
- Open Activity dots... from the widget, taskbar label, or tray menu.
- Select Install hooks and review the exact proposed
~/.codex/hooks.jsonchange. - Select Copy /hooks and open Codex, paste
/hooks, and trust the three definitions. - Return to the widget and select Check again.
Installation is always explicit. The widget never installs hooks during normal startup. See Activity dots for privacy details, command-line setup, removal, and recovery behavior.
The widget talks only to the locally installed Codex CLI. It does not scrape a browser, read authentication secrets, send telemetry, or use a remote backend. Codex remains the owner of authentication.
The application writes only under %LOCALAPPDATA%\CodexUsageWidget:
app\<version>\CodexUsageWidget.exe: stable copy used after a direct ZIP launchdisplay-mode.txt: desktop or taskbar display preferencewidget-density.txt: compact or detailed widget preferencedisplayed-limit.txt: selected summary limitlogs\codex-usage-widget-YYYYMMDD.log: diagnostic logs retained for 14 days
The widget displays ChatGPT and Codex subscription limits. It does not display OpenAI API billing or API-key usage.
- If activity hooks are installed, open Activity dots... and select Remove hooks.
- Turn off Start with Windows from the widget or tray menu.
- Exit the widget.
- Delete the extracted application folder and
%LOCALAPPDATA%\CodexUsageWidget. The local data folder contains any stable copy, saved preferences, and diagnostic logs.
The repository pins the .NET SDK in global.json.
dotnet restore .\CodexUsageWidget.slnx
dotnet test .\CodexUsageWidget.slnx -c Release
dotnet run --project .\src\CodexUsageWidget\CodexUsageWidget.csprojTo preview both general rate-limit windows without reading Codex usage, close any running widget instance and start a local preview build:
dotnet run --project .\src\CodexUsageWidget\CodexUsageWidget.csproj -p:EnableUsagePreview=true -- --preview-usagePreview data reports 80% remaining for the 5-hour limit and 15% remaining for the weekly limit. Standard release builds do not accept the preview flag.
Warnings are treated as errors and the recommended .NET analyzers run during every build.
.\scripts\publish.ps1 -Runtime win-x64The script runs the complete test suite and creates
artifacts/release/codex-usage-widget-win-x64.zip. It also supports win-arm64 through the
-Runtime parameter. See Releasing for the full maintainer workflow.
See Architecture for module responsibilities, runtime flow, and extension guidance.
Released under the MIT License. You may use, modify, fork, publish, redistribute, sublicense, or sell copies of the software as long as you retain the copyright notice and license text.


