[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
3 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
duplicate #38380
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.