HOW-TO GUIDE
How to wake Grok Bot from a local script only when there is work
Based on a post by Pasdawan (@sboudis) on X · Nov 26, 2026
You'll end with: Grok Bot routines that run only when a cheap local check finds work, with heavy coding jobs sent to Claude or Codex.
Why it's worth having: An empty check on your own computer costs zero Grok Bot tokens, while an hourly schedule can use a week of usage in a day.
At a glance
WHO IT'S FOR
Operations leads, analysts, and engineers who run many scheduled Grok Bot routines.
LEVEL
Intermediate
COST
Free to read. The method needs a Grok Bot plan and a computer that stays on; Claude or Codex plans are optional.
YOU NEED
A Grok Bot · A Mac or other computer that stays on · A condition a script can check, such as a file or a date
The method, in short
- 1Find the scheduled routines that often come back empty, and ask Grok Bot to recreate each as a webhook-triggered routine.
- 2Keep the webhook URL and key in a .env file only you can read, and have a small script POST to it only when there is work.
- 3Schedule that script with cron or launchd, then test a quiet run, a run with work, and a duplicate before removing the old routine.
- 4Let Grok Bot hand coding or large jobs to the Claude Code or Codex CLI on a computer it can use, then pick up the result.
Read the full guide from @sboudis on X
The X article covers the routine prompt, the checker script, the launchd and cron setup, and the three tests.
Credit: Pasdawan (@sboudis) on X