Codex Claude Usage
Shows remaining Codex and Claude Code usage with reset times in the VS Code status bar.
🤖 Codex 5h ▱▱▱▱▱ 1% · wk ▰▰▰▱▱ 54% | ✦ Claude 5h ▰▱▱▱▱ 18% · wk ▰▱▱▱▱ 20%
5h — 5-hour session window, wk — weekly window (5-segment bar + %)
- Hover for per-window details and reset times, click to refresh
- Background turns yellow at 80% usage, red at 95%
How it works
- Codex: reads the token from
~/.codex/auth.json and queries chatgpt.com/backend-api/wham/usage
- Claude: reads the OAuth token from
~/.claude/.credentials.json and queries api.anthropic.com/api/oauth/usage
- Tokens are sent only to those two official hosts, never stored or logged
- Both APIs are unofficial and may stop working if the services change
- ⚠ means the token expired — run the CLI once and it refreshes automatically
Settings
| Setting |
Default |
Description |
claudeCodexUsage.refreshIntervalSeconds |
300 |
Polling interval in seconds (min 30) |
claudeCodexUsage.showCodex |
true |
Show Codex usage |
claudeCodexUsage.showClaude |
true |
Show Claude usage |
| |