Codex Usage Status BarA small, dependency-free VS Code extension that shows the percentage of your Codex account quota used, for example:
Business accounts with an individual usage budget instead show Hover for credits used and remaining, remaining percentages, local reset times, and the last refresh time. Credit amounts show up to two decimal places. For accounts with an individual budget, remaining credits are the budget limit minus actual credits used. If Codex only returns a credit balance, usage is marked unavailable; quota percentages are never converted into invented credit amounts. The tooltip uses a compact card with a plan header, large usage percentages, progress bars, and reset times. Its colors follow light and dark editor themes. Refresh and Settings links are available beneath the card. Click to refresh. Usage refreshes every 60 seconds by default. The labels follow the quota window durations returned by Codex; they are not hard-coded. Install
The packaged extension runs on desktop VS Code, including with remote workspaces. It reads the account logged in on your local machine. VS Code for the browser is not supported. API-key accounts do not provide these ChatGPT quota windows. Settings and commands
Both settings are machine settings so a workspace cannot choose an executable. The Command Palette provides Codex Usage: Refresh and Codex Usage: Open Settings. Errors appear in the status bar tooltip, without notification popups. A failed refresh replaces the previous usage so old figures are not presented as current. Develop and packageOpen this folder in VS Code and press F5. No install or build step is needed.
Packaging downloads Microsoft's Publish to the MarketplaceThe extension is configured for publisher ID
The login command prompts for the token and saves it in the system credential store. Do not put it in this project. The publish command runs the tests before uploading the extension. For future automated releases, see Microsoft's Trusted Publishing guidance. How it worksOn each refresh, the extension starts This uses the official Codex app-server protocol. The extension never reads credential files, starts a model turn, or sends workspace contents. Codex handles authentication and the usage request using its existing login and configuration. No usage history is stored by the extension. |