A GitHub Action that pre-starts your Claude Code session so the usage window is already ticking before you sit down to code.
Claude Code usage limits reset on a timer. When you start coding, that kicks off a fresh session — meaning if you code hard, you might hit the wall and then have to wait the full window out before the limit resets.
This workflow fires a session every 5 hours in the background. When you sit down to code, your session was already started hours ago — so a reset is coming sooner. You're less likely to hit the limit mid-flow and get stuck waiting.
Click Fork at the top right of this page.
On your local machine, run:
claude setup-tokenCopy the token it outputs.
In your forked repo:
- Go to Settings → Secrets and variables → Actions
- Click New repository secret
- Name:
CLAUDE_CODE_OAUTH_TOKEN - Value: paste your token from step 2
- Click Add secret
If GitHub Actions are disabled on your fork, go to the Actions tab and enable them.
The workflow will now run automatically at 1am, 6am, 11am, 4pm, and 9pm UTC every day.
MIT