cd /news/developer-tools/i-was-maxing-my-claude-5-hour-limit-… · home topics developer-tools article
[ARTICLE · art-75817] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

I was maxing my Claude 5-hour limit daily and still wasting weekly quota every night, so I built a tool that spends it while I sleep

A developer built claude-overnight, an open-source tool that queues questions for Claude Code during the day and runs them overnight when usage limits reset, preventing wasted weekly quota. The tool uses an undocumented Anthropic API to check usage and saves sessions for morning review.

read2 min views1 publishedJul 27, 2026

Like a lot of you I hit the 5-hour cap most days. What actually annoyed me was realizing the weekly limit doesn't line up with that. Even capping out daily, I ended every week with quota unused. It expires overnight even after I paid for it.

So I built claude-overnight. I queue questions during the day, /queue how do sqlite WAL checkpoints work?

right inside Claude Code, and a scheduler runs them at night once my limits reset, through claude -p

on the subscription. Morning brings markdown reports and a digest of what ran and what happened.

Every job saves its claude session, so overnight resume <id>

reopens the conversation that wrote the report. You can argue with it about its conclusions over coffee. Or overnight followup <id> "go deeper on X"

and it continues tomorrow night.

Coding tasks work too. They run in a throwaway git worktree on an overnight/*

branch, only against repos I've explicitly trusted, so the agent never touches my working tree. Morning review is just git diff main..overnight/whatever

.

Since people will ask how it reads limits when there's no official API: Claude Code stores an OAuth token locally (Keychain on Mac, ~/.claude/.credentials.json

elsewhere), and GET https://api.anthropic.com/api/oauth/usage

with that token plus an anthropic-beta: oauth-2025-04-20 header returns your 5h and weekly utilization with reset times. Same trick the menubar trackers use. It's undocumented and the response shape already changed once while I was building this, so the tool survives without it.

The design constraint I cared most about: don't eat my own morning quota. It won't start above 20% of the 5h window, stops at 60%, skips entirely past 80% weekly, rechecks between jobs.

In the morning it opens a page in the browser with the whole batch on it — what ran, how long it took, the resume command for each one, and every report rendered inline so you're not clicking through files half-awake.

Check it out at https://github.com/rohanprichard/claude-overnight Curious what you'd queue overnight, honestly. Let me know!

── more in #developer-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-was-maxing-my-clau…] indexed:0 read:2min 2026-07-27 ·