{"slug": "i-was-maxing-my-claude-5-hour-limit-daily-and-still-wasting-weekly-quota-every-i", "title": "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", "summary": "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.", "body_md": "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.\n\nSo I built [claude-overnight](https://github.com/rohanprichard/claude-overnight). I queue questions during the day, `/queue how do sqlite WAL checkpoints work?`\n\nright inside Claude Code, and a scheduler runs them at night once my limits reset, through `claude -p`\n\non the subscription. Morning brings markdown reports and a digest of what ran and what happened.\n\nEvery job saves its claude session, so `overnight resume <id>`\n\nreopens the conversation that wrote the report. You can argue with it about its conclusions over coffee. Or `overnight followup <id> \"go deeper on X\"`\n\nand it continues tomorrow night.\n\nCoding tasks work too. They run in a throwaway git worktree on an `overnight/*`\n\nbranch, only against repos I've explicitly trusted, so the agent never touches my working tree. Morning review is just `git diff main..overnight/whatever`\n\n.\n\nSince 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`\n\nelsewhere), and `GET https://api.anthropic.com/api/oauth/usage`\n\nwith that token plus an `anthropic-beta: oauth-2025-04-20`\n\nheader 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.\n\nThe 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.\n\nIn 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.\n\nCheck it out at [https://github.com/rohanprichard/claude-overnight](https://github.com/rohanprichard/claude-overnight)\n\nCurious what you'd queue overnight, honestly. Let me know!", "url": "https://wpnews.pro/news/i-was-maxing-my-claude-5-hour-limit-daily-and-still-wasting-weekly-quota-every-i", "canonical_source": "https://dev.to/rohanprichard/i-was-maxing-my-claude-5-hour-limit-daily-and-still-wasting-weekly-quota-every-night-so-i-built-a-5bmi", "published_at": "2026-07-27 18:23:40+00:00", "updated_at": "2026-07-27 18:31:47.293941+00:00", "lang": "en", "topics": ["developer-tools", "large-language-models", "ai-products"], "entities": ["Claude Code", "Anthropic", "rohanprichard", "claude-overnight"], "alternates": {"html": "https://wpnews.pro/news/i-was-maxing-my-claude-5-hour-limit-daily-and-still-wasting-weekly-quota-every-i", "markdown": "https://wpnews.pro/news/i-was-maxing-my-claude-5-hour-limit-daily-and-still-wasting-weekly-quota-every-i.md", "text": "https://wpnews.pro/news/i-was-maxing-my-claude-5-hour-limit-daily-and-still-wasting-weekly-quota-every-i.txt", "jsonld": "https://wpnews.pro/news/i-was-maxing-my-claude-5-hour-limit-daily-and-still-wasting-weekly-quota-every-i.jsonld"}}