Steps
macOS / Linux: cron
Run
crontab -eand add a line like:
Always use full paths, because cron has a minimal environment.0 7 * * * cd /path/to/agent && set -a && . ./.env && set +a && /usr/bin/python3 script.py >> run.log 2>&1Windows: Task Scheduler
Create Basic Task → Daily → Start a program:
python, argumentsscript.py, and set Start in to the script folder. Store secrets withsetx NAME value.Free cloud: GitHub Actions
Add
.github/workflows/run.ymlwithon: schedule: - cron: '0 7 * * *', asetup-pythonstep andpython script.py. Put secrets in repository secrets. Times are in UTC.Check it ran
Read
run.log, or the Actions tab. Laptops that are asleep miss cron runs, so use the cloud option if that matters.Start with something useful
All our free agents are single-file Python scripts with no dependencies, built for exactly this.
Skip the setup: free download
The AI news digest agent does all of this. It's tested, MIT-licensed, and comes as an n8n workflow plus a Python script.
Get the free AI news digest agent → Or have us build yours →
FAQ
Will cron run if my laptop is asleep?
No. Use anacron, launchd's StartCalendarInterval, which runs missed jobs on wake, or GitHub Actions.
Is GitHub Actions free for this?
Public repos get free minutes, and a small daily script fits easily in the free tier for private repos too.
Related guides
- Get a daily AI news digest in your inbox (build it in 5 minutes)
- Hacker News daily digest by email, filtered by your keywords (free script, tested)
- RSS to email daily digest: all your feeds in one morning email (free script, tested)
- GitHub release notifications in Slack (any public repo, stable releases only)
- Log invoices and receipts from email into a spreadsheet automatically
New guides
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes
- n8n Gmail Trigger not working: not firing, silent errors and fixes