DEV Community

Aaron W
Aaron W

Posted on

How to see your Claude Code and Codex usage limits before you hit them (6 open-source tools)

Hitting the Claude Code 5-hour limit mid-task hurts most when you didn't see it coming. These open-source tools show your Claude Code and Codex usage while you work, so you can plan a handoff instead of getting cut off.

Statusline tools (inside Claude Code)

These live in Claude Code's status line, right under your prompt.

  • claude-hud: a Claude Code plugin that shows context usage, active tools, running agents and todo progress. Install with /plugin install claude-hud. It can also write a usage snapshot to a file for other tools to read.
  • ccstatusline: a highly customizable statusline with powerline support and themes.
  • CCometixLine: a fast statusline written in Rust, installable via npm.
  • claude-code-usage-bar: one line with your 5-hour and 7-day rate-limit usage, reset countdowns, model and context window.

Standalone monitors (Claude Code and Codex)

  • CodexBar: a macOS menu bar app that shows usage for both Codex and Claude Code without logging in. brew install --cask codexbar.
  • abtop: like htop, but for AI coding agents. It shows every Claude Code and Codex session with tokens, context window and rate limits, and abtop --json prints a snapshot for scripts.

What to do when the bar turns red

Seeing the limit coming is half the fix. The other half is having somewhere to go. If you pay for both Claude and ChatGPT, the obvious move is to continue the task in Codex. The painful part is that Codex starts with no context.

That's why I built ccx. It links a Claude Code session with a Codex thread and syncs them both ways: messages, condensed tool calls, the plan and git status. It also reads the usage data from every tool above when you have one installed, so the menu bar warns you when either side passes 90% of its 5-hour window and offers to move the task to the other side in one click. No configuration, no keys, nothing extra installed.

FAQ

Do I need all of these? No. Pick one statusline you like, or CodexBar or abtop if you want both Claude and Codex in one place.

Does any of this bypass usage limits? No. These tools only show your usage. ccx only moves your task between your own two subscriptions.

Which one works with ccx? All six. ccx reads whichever is installed, without any setup.

If ccx saves you a re-explanation, a ⭐ on GitHub helps a lot. I'm @aaron0x10 on X.

Top comments (0)