VS Code Extensions
Codex Claude Usage

Codex Claude Usage

by ypdev

Monitor Codex and Claude Code usage with separate traffic-light indicators and reset details in the status bar

Downloads

110

Rating

— (0)

Version

0.2.2

Last updated

Aug 06, 2026

Monitors Codex and Claude Code usage with separate traffic-light indicators in the VS Code status bar. Hover either service for detailed bars and reset times.

🤖 Codex 🟢 5h 12% · 🟢 Weekly 54% | ✦ Claude 🟢 5h 31% · 🟡 Weekly 82% · 🔴 Fable 96%
  • 5h — 5-hour session window, Weekly — weekly window
  • A model name (e.g. Fable) — weekly window that applies to that model only; shown when the API reports one
  • Signals: 🟢 below 80%, 🟡 80–94%, 🔴 95% or higher
  • Hover for per-window details and reset times, click to refresh
  • Codex and Claude use separate status bar items
  • Detailed bars remain available in the hover tooltip; status bar backgrounds are not changed

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

Related extensions