claude-code - 💡(How to fix) Fix [Feature Request] Add CLI support for querying 5-hour rolling quota in non-interactive mode [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#58632Fetched 2026-05-14 03:43:13
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2closed ×1

Fix Action

Fix / Workaround

  • /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.
RAW_BUFFERClick to expand / collapse

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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Feature Request] Add CLI support for querying 5-hour rolling quota in non-interactive mode [2 comments, 2 participants]