VSCode Codex Tracker is a VS Code extension for monitoring local Codex usage in a focused status bar and panel dashboard.
- Live Codex app-server quota tracking:
- five-hour window remaining and reset time.
- weekly window remaining and reset time.
- account/plan info when available from the app-server payload.
- Accurate quota display:
- missing quota windows are shown as
N/Ainstead of reusing stale data. - no “last-known quota” fallback is used when live reads fail.
- missing quota windows are shown as
- Automatic quota refresh behavior:
- event-driven refresh on
.jsonlsession file changes. - additional refresh every minute to keep quota up-to-date.
- event-driven refresh on
- Status-bar
5HandWeeklyindicators that open the tracker panel. - Local prompt history parsing from Codex session logs:
- input, output, and cached token totals.
- estimated cost summaries.
- Dashboard metrics:
- charts for token and cost trends.
- searchable prompt list with per-row totals.
- Appearance and usability:
- configurable warning/critical thresholds and colors.
- chart layout persistence with global or workspace scope.
- Optional leaderboard participation using aggregate totals only.
- Fixed ENOENT startup and refresh failures caused by missing
codexonPATH. The extension now resolves the executable using:- explicit
codexUsage.codexPath(when provided), - detected OpenAI Codex binary in installed extension locations,
- fallback to
codexonPATH.
- explicit
- Improved quota diagnostics are now written to the output channel when app-server reads fail or return incomplete data.
- Removed stale-value masking in the quota path; windows now report accurately and
explicitly as
N/Awhen unavailable.
Usage collection reads local Codex session data. Prompt text and token details remain local to the extension dashboard.
Leaderboard participation is optional. When enabled, only a public name, cumulative aggregate input-token total, cumulative prompt count, and update metadata are submitted. Prompts, output text, file paths, account credentials, and raw authentication tokens are not submitted.
Disable Participate in the dashboard settings at any time.
Install the latest VSIX from the GitHub Releases page, then use Extensions: Install from VSIX... in VS Code.
The extension is also published through the ITFinesse Marketplace publisher.
codexUsage.sessionsPath: optional Codex session directory override.codexUsage.codexPath: optional Codex executable path override.codexUsage.historyLimit: maximum number of recent prompts to display.codexUsage.outputDebug: enable detailed internal logs for diagnostics.codexUsage.warningThresholdPercent: warning threshold for usage windows.codexUsage.criticalThresholdPercent: critical threshold for usage windows.codexUsage.warningColor: status-bar color used at warning threshold.codexUsage.criticalColor: status-bar color used at critical threshold.codexUsage.belowFullColor: status-bar color used when remaining usage is below 100% but above warning.codexUsage.chartOrganisation: useglobalorworkspacedashboard card layout.codexUsage.leaderboardEnabled: enable or disable aggregate submissions.codexUsage.leaderboardName: public leaderboard name.
npm install
npm run compileOpen the folder in VS Code and press F5 to launch an Extension Development
Host. Useful commands:
- Codex Usage: Show Panel
- Codex Usage: Refresh
- Codex Usage: Show Output
Run the full verification suite with:
npm run verifyCopyright (c) 2026 Stephen Stern, ITFinesse.co.uk.
This project is licensed under the PolyForm Noncommercial License 1.0.0.
Commercial use, resale, paid distribution, use in a paid product or service, and monetisation require prior written permission from the copyright holder.