Claude usage and schedules

Runners use your own Claude plan. Crank lets you set how much of it to use, and when work may start.

The usage threshold

  1. Your computer reads your Claude usage itself (Claude Code's /usage): the 5-hour session, the current week, and the week's Fable figure. No usage figure ever leaves your computer. Not to the page, the API, a log, an alert or git. Why: your usage is your business; Crank only needs to act on it, not report it.
  2. You set a threshold, from 50% to 100% (100% by default). The threshold is a setting, not usage, so it can be set on the website.
    • At 100%, Crank uses everything your plan allows, then stops.
    • At 95%, it leaves you a little for your own use.
  3. At or over the threshold, no new runner or job starts. A runner that's building finishes its current job; it isn't ended.
  4. While held, the computer checks again every minute, and starts again as soon as usage is under the threshold. Why every minute: you might buy more usage, reset it, or raise the threshold; Crank shouldn't wait for a fixed time.
  5. If /usage gives no figure while held, the hold ends at the reset time the limit message gave (or after 30 minutes if none).
  6. When only the Fable figure is over, runs switch to Sonnet 5.5 instead of waiting.
  7. The topic says "Waiting: Claude usage limit, resumes 15:45" (or without a time when none is known). Never a percentage.
  8. When usage can't be read at all, runners carry on, and the limit message (below) is the safety net.
  9. The desktop app may show the current figures, on your computer only.

Note: /usage in this form isn't documented by Anthropic, so a Claude Code update could change its wording. Crank keeps its reading in one place so it can be fixed quickly.

Source: CB-67.

A job cut off by a usage limit

  1. It isn't failed, and it doesn't need you. Its unsaved work is saved on its branch, and it goes back Queued at the front of its topic with "Waiting: Claude usage limit, resumes HH:MM".
  2. All runners are held as above. When usage is under the threshold again, that job is picked first and carries on from its branch.
  3. Why: hitting a limit isn't a fault in the job; it should simply carry on later.

Source: CB-67.

Schedules

You can choose when work may start. Schedules are about time only; the usage threshold above applies on top, to everything.

  1. On a job: a one-off start time. On the job's page, "Start": Any time (default), or "Not before" a day and time, with quick picks such as tonight 22:00, tomorrow 09:00, Sat 10:00, Sun 10:00.
  2. On a topic: a standing window. In project settings, "Runs": Any time (default), Overnight (22:00 to 07:00 by default), Weekends, or custom days and hours.
  3. If a job and its topic both have a rule, both must be met.
  4. A window only controls when a job may start. It never ends a running job. A job started in the window's last minute runs to the end; then nothing new starts until the window opens again. In the settings, in these words: "Jobs start only inside this window. A job already running is never ended when the window closes."
    • Why: ending a job part way wastes the work and usage already spent.
  5. The controller decides, not the runner. Runners just build what they're given.
  6. A scheduled job doesn't make other jobs wait, unless they list it in Waits for.
  7. How it's shown: "Scheduled for Sun 10:00", plus " if usage < 95%" when your threshold is below 100%. A topic outside its window: "Scheduled: overnight 22:00 to 07:00, next start 22:00". Times are in your computer's time zone, 24-hour.
  8. A job that's already building can't be given a start time.
  9. A topic's window also covers its final test before merging (see Merging).

Source: CB-70, CB-71.