This will start a Claude Code session, so you can optmize the 5 hour token limit window. It will start at the scheduled time or as soon as you log in to your machine.
Tested on Ubuntu 24.04 with nvm.
Create the 2 files from this gist in:
- ~/.config/systemd/user/wake-claude.service
- ~/.config/systemd/user/wake-claude.timer
Now adjust the files:
- wake-claude.service: Replace
{USER}with your username - wake-clauude.timer: Adjust the schedule to your prereference
systemctl --user daemon-reloadsystemctl --user enable wake-claude.timer
To run the service without timer: systemctl --user start wake-claude.service
journalctl --user -xeu wake-claude.service journalctl --user -xeu wake-claude.timer