Claude & Codex Usage Timer
See your Claude Code and Codex subscription usage and reset countdowns in the VS Code status bar. For example, Claude 5h 11% · 2h 25m means you have used 11% of your five-hour allowance and it resets in 2 hours and 25 minutes.
Claude's five-hour and weekly limits each have an orange indicator when available. The Codex indicator is blue. Hover over an indicator or click it to see details, including model-specific limits, the remaining allowance, and the local reset date and time. Run AI Usage: Refresh Now to fetch usage on demand. Usage refreshes every five minutes by default, and countdowns update between refreshes.
Installation
- In VS Code 1.90 or later, search Extensions for
arsso.ai-usage-timer and select Install. You can also run code --install-extension arsso.ai-usage-timer. VS Code Marketplace
- Sign in to your subscription accounts in Claude Code and Codex CLI. If needed, run
claude auth login and codex login in a terminal.
VS Code Settings Sync can install the Marketplace version on your other computers when extension sync is enabled. If you previously installed the local.ai-usage-timer VSIX, uninstall that copy after installing the Marketplace version to avoid duplicate indicators.
The extension finds the CLIs in standard system locations or in the official VS Code extensions. For custom installs, set aiUsageTimer.claudePath and aiUsageTimer.codexPath to absolute executable paths in your user settings.
Set aiUsageTimer.refreshMinutes in your user settings to change the refresh interval. Verified on macOS with Claude Code 2.1.332 and Codex CLI 0.166.0.
To customize the status bar colors, set aiUsageTimer.claudeForeground and aiUsageTimer.codexForeground inside workbench.colorCustomizations.
Data sources
The extension reads Claude Code usage with the local /usage command and disables model turns and tools. Changes to the command output across CLI versions can affect the usage or reset times the extension can read. Codex usage comes from the account/rateLimits/read App Server method. Both use your existing CLI sessions. Claude Code commands · Codex App Server
If a refresh fails, the indicator displays the last known usage with a warning. After the reported reset time passes, the indicator waits for an updated value. The extension does not save subscription data, prompts, or credentials.
Development
Run npm test for the automated tests. Press F5 to open the AI Usage Timer extension development window. Run npm run package to build the VSIX.