npm install -g @oct8/5hr

Never waste a
5-hour AI window
again.

5hr silently warms up Claude Code and Codex before you wake up — so quota resets land right in your productive hours, not while you're idle.

Get started free View on GitHub

How it works

Your resets. On your schedule.

5hr installs two cron jobs. Before you wake up, it sends a silent message to your AI tool — starting the rolling clock. You inherit the reset.

1
08:00 — Warmup fires

Cron runs 5hr start claude --warmup. A silent message is sent to Claude Code. The 5-hour rolling window starts. You're still asleep.

2
10:00 — You sit down

Only 2 hours have burned. You have 3 hours left in the window — and the reset is already counting down at 13:00.

3
13:00 — First reset

Fresh 5-hour window opens right when you're deep in flow. Second warmup fires at 13:05 automatically.

4
18:05 — Second reset

Another full window for the evening session. Two productive windows, zero wasted quota, no manual work.


Commands

Everything you need.
Nothing you don't.

Lightweight CLI. No daemon. No cloud. All data stays in ~/.5hr/.

5hr init
Setup wizard

Set your working hours, timezone, provider, and how early to fire the warmup. Takes about a minute.

5hr schedule
Install cron jobs

Installs OS-native scheduled jobs that fire warmups automatically every weekday. Shows exact times before confirming.

5hr settings
Edit config

View your current config and change any setting interactively. Adjust warmup offset, provider, or hours without touching JSON.

5hr today
Today's schedule

See recommended session windows based on your config and past history. Recommendations refine over time.

5hr stats
Usage analytics

Total sessions, average duration, utilization score, estimated wasted quota, and week-over-week trend. All local.

5hr doctor
Health check

Verifies provider binaries in PATH, config validity, OS scheduler availability, and storage permissions.


Two commands.
Runs itself after that.

$ npm install -g @oct8/5hr
1 5hr init — set your hours & provider
2 5hr schedule — install cron, done
View on npm GitHub