Check the current remaining Claude Code and Codex usage quota on this machine, including both the 5-hour window and the weekly window, plus exact reset times. Use this whenever the user asks how much Claude Code or Codex quota is left, when the 5h or weekly limit resets, whether they are near the current usage limit, or when they explicitly want remaining quota instead of token totals or cost analysis.
Check the current remaining local usage quota for:
Claude CodeCodexReturn both:
5-hour remaining quotaweekly remaining quotaexact reset time for each windowThis skill is for current remaining quota, not lifetime token usage, session cost, or historical trend analysis. If the user wants token totals, cost trends, or multi-day usage analysis, use coding-agent-token-analysis instead.
claude and codex accounts on that machine.If the user explicitly names another host, say that this skill is local by default and then run the same helper on that host only if the user clearly wants a remote check.
Use the bundled script:
scripts/check_usage.pyIt performs the live local check and returns structured JSON or a human-readable summary.
claude and/or codex are installed on the current machine.python3 scripts/check_usage.py --json
Claude Code 5-hour remaining percentage and reset timeClaude Code weekly remaining percentage and reset timeCodex 5-hour remaining percentage and reset timeCodex weekly remaining percentage and reset timeUse this structure:
Checked at: absolute local timestampClaude Code:
5h remaining5h resetsweekly remainingweekly resetsCodex:
5h remaining5h resetsweekly remainingweekly resetsNotes: only if there is a caveat or partial failureremaining quota with tokens used in one session.used %; convert it to remaining % too.in 3 hours.Codex, say so briefly and mention whether it was a fresh snapshot or a fallback snapshot.check codex and claude code current remain 5h and weekly quotahow much claude code quota do i still have this week帮我看下 codex 5 小时和每周额度还剩多少,几点 reseti don't want token totals, just current remaining quota for codex and claude code