TokenKick

Schedule Claude Code's 5-hour window around your workday

Updated 13 October 2026 · 6 min read

Short version

  • Claude Pro and Max plans have a 5-hour session limit and a weekly limit, shared between Claude Code and the Claude apps.
  • The session starts with your first message and resets 5 hours later, so you choose when it resets by choosing when it starts.
  • For a workday longer than 5 hours, start the first window at end of workday minus 5 hours per window needed. For 09:00–17:00 that's 07:00, which puts a fresh window at 12:00.
  • Automate it with a cron job, or with TokenKick, which checks the window first and runs this calculation for you.

How Claude Code's limits work

Anthropic's help center says Pro and Max plans include a five-hour session limit and a weekly limit, and that these limits are shared across Claude and Claude Code. Chatting in the Claude app uses the same session as your coding.

The timing rule

You want the windows to line up with the hours you actually work. The rule:

  1. If your workday is 5 hours or shorter, start the window when you start work. One window covers it.
  2. If it's longer, count the windows you need: workday length ÷ 5, rounded up.
  3. Start the first one at end of workday − (windows × 5 hours). The last window then ends exactly when you stop.
WorkdayWindowsStart first windowFresh windows at
09:00–13:00109:0009:00
09:00–17:00207:0007:00, 12:00
10:00–18:00208:0008:00, 13:00
08:00–20:00305:0005:00, 10:00, 15:00

Two things to keep in mind:

Option 1: a cron job

Claude Code's print mode sends one prompt and exits. Use the small Haiku model, no tools, and no saved session, so the request is as light as possible:

# crontab -e  ·  weekdays at 07:00. Cron has a minimal PATH: use the full path from `which claude`.
0 7 * * 1-5  /path/to/claude -p --model haiku --tools "" --no-session-persistence "Reply with OK"

Its limits:

Claude Code also has cloud routines (/schedule) that run prompts on Anthropic's servers. We haven't verified whether a routine run starts your interactive session window, so check /usage after one before relying on it.

Option 2: TokenKick

TokenKick is a free, open-source CLI that does this with checks around it. You give it your working hours, and it works out the start time, sends the kick only when the window is actually fresh, and logs what it did.

pipx install tokenkick
tk setup                                   # finds Claude Code (and Codex) logins already on this machine
tk status --refresh                        # current windows, reset times, and account labels
tk auto enable "<label>"                   # asks you to type ENABLE to confirm first
tk schedule set --account "<label>" --weekdays 09:00-17:00 --weekends 10:00-14:00
tk schedule show                           # shows your schedules and planned kicks
tk daemon --background                     # keeps checking; needs the machine awake
tk calendar --ics > resets.ics             # optional: upcoming resets for your calendar

For Claude Code specifically, TokenKick:

Limits and honest caveats

Sources