[Feature Request] Add CLI support for querying 5-hour rolling quota in non-interactive mode

Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened May 13, 2026 · closed May 13, 2026

Bug Description
There is no supported CLI flag/feature for the 5-hour quota in non-interactive mode.

  • /cost works in interactive sessions and shows session token/$ usage (not the rolling-window quota).
  • /usage only runs in interactive sessions; under claude -p slash commands like /status and /usage aren't dispatched.
  • No documented claude usage subcommand, JSON flag, or ~/.claude/ file exposes remaining quota.

Scriptable quota check doesn't currently exist — the only UI is /usage interactively or claude.ai → Settings → Usage.

  • Feedback ID: 10b487af-a92d-4c68-84c3-564c971b1102

View original on GitHub ↗

3 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/38380
  2. https://github.com/anthropics/claude-code/issues/53601
  3. https://github.com/anthropics/claude-code/issues/56041

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

Roman- · 5 months ago

duplicate #38380

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.