Optimize your Claude Code 5-hour rolling window quota by automatically triggering the window at the best time — even while your Mac is asleep.
Claude Code subscribers have a usage quota that resets every 5 hours from first use. If you start using Claude at 9 AM, your quota resets at 2 PM. But if you could trigger that window at 7 AM (before you wake up), the reset would happen at noon — right in the middle of your productive hours.
freshquota analyzes your usage patterns, finds the optimal trigger time, and wakes your Mac to activate the window automatically.
npm install -g github:anniebuildz/freshquota
freshquota analyze
Shows your hourly usage distribution and recommends an anchor time. Confirm to save.
To set manually:
freshquota analyze --anchor 07:30
freshquota install
Registers the launchd job and schedules the first pmset wake. Requires sudo for pmset.
freshquota status
freshquota trigger
freshquota doctor
Verifies the scheduling chain is intact and repairs if needed.
freshquota uninstall
pmset schedule wake wakes your Mac at the anchor time (works with lid closed)launchd detects the wake and runs freshquota runMIT
$ claude mcp add freshquota \
-- python -m otcore.mcp_server <graph>