5hReset

5hReset

5-hour AI limit calculator for your workday

Set your work hours and rolling-window length. 5hReset shows when to trigger your first use so quota refreshes land while you are working—not at 2 PM.

Start around
06:00

Trigger early at 06:00 to get 3 full 5-hour quota periods during work,
but triggering at work start only gives you 2.

09:0018:00
3 useful windows during work
05:45
06:00
06:15
Adjust first trigger time
Work hours09:0018:00

Recommended: schedule in ChatGPT Work

ChatGPT Work and Codex share one quota pool, so cloud refreshes in Work also refresh Codex. No local script: open a Work mode session in the browser (not a regular chat), paste the prompt below, and it can create scheduled tasks for each refresh time.

Use ChatGPT Work mode. All times below are in my timezone UTC (UTC+00:00). On weekdays at 06:00, 11:01, 16:01, send a short message saying hello at each of those times.
Open ChatGPT

Or install a scheduled task on this machine

0 6 * * 1,2,3,4,5 codex exec 'Reply with OK.' >> "$HOME/.5hreset.log" 2>&1 # 5hreset:codex
1 11 * * 1,2,3,4,5 codex exec 'Reply with OK.' >> "$HOME/.5hreset.log" 2>&1 # 5hreset:codex
1 16 * * 1,2,3,4,5 codex exec 'Reply with OK.' >> "$HOME/.5hreset.log" 2>&1 # 5hreset:codex

No need to set up scheduled tasks yourself,

5hReset helps you time the usage you already have. It does not add extra quota.

The annoying 2 PM reset

Many AI coding assistants use a rolling window, not a fixed midnight reset. Start work at 9 AM, open Claude Code or Codex, and the next refresh often lands around 2 PM—right when you have already burned through the useful part of the morning. 5hReset answers a simpler question: when should I first use it so the refresh happens at a better time? This is timing planning, not a usage monitor like /usage or ccusage.

A common 9-to-6 example

If you work from 09:00 to 18:00 and your plan uses a five-hour rolling window, starting around 06:00 can put refreshes around 11:00 and 16:00. That gives you useful fresh periods in the late morning and late afternoon instead of waiting until 14:00 for the first one.

06:00  first use
09:00  work starts
11:00  refresh
16:00  refresh
18:00  work ends

Set it once instead of remembering every morning

After you find a good time, 5hReset prepares a schedule script for macOS (launchd), Linux (cron) or Windows (Task Scheduler). Click Have an agent schedule this to copy the script and instructions for Codex (ChatGPT Work), Claude Code, Gemini CLI, MiniMax Token Plan, OpenCode Go, Kimi Code, ZCode (GLM Coding Plan), or another coding Agent—it can check prerequisites, install only this task, test it, and show you how to remove it later.

Useful when your day is not 9 to 5

Early shifts, late nights, flex hours, or a long lunch break? Change the work hours above and the answer updates immediately. Most tools use a five-hour window; you can adjust it if yours is different.

You still use the same allowance

5hReset does not add usage, bypass limits, or unlock a higher plan. It only helps you choose when to begin using the allowance you already have. Always check the current rules of your AI tool and plan before turning on an automatic schedule.

Common questions

Why does my AI quota refresh in the afternoon?
Rolling-window limits start when you send your first request, not at midnight. If you open your coding assistant at 9 AM, the next five-hour reset often lands around 2 PM. 5hReset calculates an earlier first-use time so refreshes align with your work hours.
Does 5hReset increase my quota or bypass limits?
No. 5hReset only helps you time the usage you already have. It does not add quota, bypass provider limits, or unlock higher plans.
How is this different from /usage or ccusage?
Usage monitors tell you how much quota is left and when the current window resets. 5hReset answers a planning question: when should you first use your AI tool today so future refreshes happen during work hours?
How do I automate the recommended trigger time?
After setting your work hours, choose your AI tool and schedule format (cron, launchd, or PowerShell). Copy the generated script or use the agent prompt so Codex, Claude Code, or another coding agent can install and test the scheduled task on your machine.
Which AI coding tools are supported?
Codex (ChatGPT Work), Claude Code, Gemini CLI, MiniMax Token Plan, OpenCode Go, Kimi Code, and ZCode (GLM Coding Plan). Each tool profile includes its rolling-window and weekly-cap notes.