Practical Guides · knowledge base from X

Stop burning your Grok Bot usage: keep the clock outside the bot, a cheap check on an always-on computer that rings the webhook "doorbell" only when there is work, seven steps with three tests and the heavy lifting handed to Claude or Codex (Pasdawan)

A user who says he runs about 29 agents on Grok Bot explains how to take off the usage meter the scheduled runs that end with "nothing to do" - every fire of a scheduled routine is a model turn even when there is no work, and xAI's documentation warns that an hourly routine or a Slack trigger on a busy channel can use a week of usage in a day. The fix is a small script on a Mac or another always-on computer (VPS optional) that runs a cheap check and calls the routine's webhook only if there is work, in seven steps with three tests (quiet run, run with work, duplicate). On top of that, Grok Bot as an orchestrator that hands heavy jobs to the Claude Code or Codex CLIs. A framework with no measurements: the $30 + $20 instead of $100-200 saving is an estimate stated by the author.

✍️ Pasdawan · @sboudis
🔗 Read the original on X · X Article · published 26 Nov 2026
📊 9 likes · 5 bookmarks · 864 views
Summary and adaptation in English; content and results belong to the author.

Part of the manual How to make money with Grok Bot — the complete manual

Claimed result

  • No measurements: the author describes a method, not a bill. He says he runs about 29 agents on Grok Bot and has watched his early enthusiasm "empty a usage bar" before the end of the week.
  • Source cited: xAI's documentation says an hourly schedule, a short interval or a Slack trigger on a busy channel can use a week of usage in a day.
  • Stated estimate (not measured): with Grok Bot at $30 a month plus Claude or Codex at $20, you get a lot done; doing everything on Grok Bot alone "you might be looking at the $100 or $200 tier". $30 is the cheapest xAI plan that includes Grok Bot (x.ai/pricing); Claude Pro $20/month; Codex included in ChatGPT Plus, $20/month.

The key idea

Keep the clock outside Grok Bot. A scheduled routine, at every fire, starts a fresh run of the prompt: the model has to read its instructions and decide whether anything needs doing; even a "nothing to do" reply is a model turn and counts against usage. If instead the question "is there work?" is asked by an ordinary script on a computer you already have, when the answer is no no agent wakes up and the check costs zero tokens. When the answer is yes, the script POSTs to the routine's webhook: it is a doorbell, not a second AI system.

Step-by-step playbook

The Grok Bot pieces it uses

  • Routine = saved prompt + trigger. The two triggers that matter here: schedule and webhook. A webhook routine fires when an outside system POSTs to its URL. Never put a schedule on the same routine as well.
  • Agent info pane: click the agent's name in the chat header or press Cmd+Shift+I; it shows a live preview of the agent's computer above the Routines list.
  • Usage: Settings (account button at the bottom-left, Cmd+, or the "Open settings" palette item) → Usage & Billing tab, with included usage and on-demand usage.
  • Registered computers: Settings → Computer tab (machines and local execution). The author says he has no reliable click-by-click for turning on local execution and does not invent button names; same for a skills screen (the official map he has only lists Import memory under Settings → General).

What you need

  • A Grok Bot agent you already talk to.
  • An ordinary computer that stays on and can run a small script (Mac, MacBook Air or other; VPS optional).
  • A simple condition you can check without starting Grok Bot: a file, a folder, a date, a count.

Step 1 - Find the routines that often come back empty

  • Open the info pane (Cmd+Shift+I) → Routines list.
  • For each scheduled routine ask how often it runs only to say nothing happened: those are the first to move.
  • Leave alone the ones whose job is the schedule (e.g. the morning briefing you want to read at a set hour).
  • No spreadsheet needed: one recurring empty check is enough to learn the pattern.

Step 2 - Ask Grok Bot for a webhook-triggered routine

  • There is no (or the author does not confirm a) "create routine" menu: ask in chat.
  • The saved prompt must say what to do when the webhook wakes it and who receives the result; if there is nothing useful, say so in one line and stop. No schedule on the same routine.
  • You may be asked to confirm before it is saved: that is normal.
  • The article provides a prompt to paste (the text of the prompt blocks is not included in the version downloaded from X; here is its structure: goal on waking, recipient of the result, one-line exit if there is nothing, no schedule).

Step 3 - Copy the webhook URL and key, and keep them safe

  • Info pane → Routines → the routine whose trigger is "When a webhook fires": it shows three fields, Webhook URL, Webhook key and Authorization header.
  • The header is Authorization: Bearer YOUR_SECRET, where YOUR_SECRET is the key. Never paste it into a chat, a prompt or a git repository.
  • Treat it like a password: URL and key in a .env file on the computer that will call the webhook, readable only by you (chmod 600); the script loads it. Never put URL or key in a crontab line.

Step 4 - Write a small checker

  • Three things: cheap check, quiet exit if there is no work, POST to the webhook if there is work. It must never start Grok Bot just to decide whether there is work.
  • The POST has a JSON body and the header Content-Type: application/json; the body can be any JSON and reaches the routine as data. Example: {"source":"cron","message":"task due"}.
  • For a tighter check you can sign the body with HMAC-SHA256 and verify the signature in the routine.
  • The article gives a prompt to have the agent write the files and a script skeleton with placeholders only.

Step 5 - Schedule the checker, not the routine

  • The schedule now lives on the script's machine, which must stay on.
  • On a Mac: cron or launchd (a minimal plist with label and path to replace; no key in the plist). In the example, five calendar entries = Monday to Friday; launchd treats 0 as Sunday.
  • On a VPS a crontab line is enough, e.g. at 9:00 on weekdays (machine local time); URL and key always from the .env.

Step 6 - Three tests before deleting anything

  1. Quiet run: condition false → the script exits 0, the agent stays asleep, usage does not move.
  2. Run with work: condition true → the POST succeeds and the routine runs. A 200 means Grok Bot accepted the call and started a run, not that it has finished. When done, an "Automation '' completed" summary usually appears, or the result arrives in chat if the prompt says so.
  3. Duplicate: ring the webhook twice for the same work → there must be one job. If a second one starts, change the prompt so the bot recognises work already under way. - Diagnosis: if a quiet run wakes the bot, the script posts when it should not; if a run with work stays silent, check the 200, the Authorization: Bearer header, the JSON body and that the routine is not paused.

Step 7 - Remove the old scheduled routine

  • Only after the three tests, ask Grok Bot to delete the old routine or remove its timer. Do not keep both: you would pay for empty checks again, plus the webhook.
  • Safety net: a much rarer scheduled routine, or logging on the checker so a missed doorbell does not look like a quiet day.

The same rules for every agent

  • Common rules in one place in your second brain; every agent reads them at start-up, including after a webhook wake.
  • Role instructions go on top of the common rules, not instead of them.
  • Every rule change: dated, previous version kept so you can roll back, a note of what changed; you approve them.

Grok Bot orchestrates, Claude or Codex do the heavy lifting

  • You always start in a Grok Bot chat; ordinary jobs are done by the bot. For a coding task or a large job, Grok Bot starts the Claude Code or Codex CLI on a computer it can use (registered or the bot's own), already signed in with your subscription, waits, reads the result and continues.
  • The heavy work runs on the Claude/Codex subscription, not as a long Grok Bot model turn: fewer Grok Bot tokens.
  • The author stresses that he describes the principle, not a verified "send to Claude" button; he does not confirm the exact command or the local-execution path.

Tools and costs

Piece Role Cost stated
Grok Bot (cheapest plan) agent and webhook routines $30/month (x.ai/pricing)
Always-on Mac / MacBook Air / PC checker with cron or launchd already owned
VPS (optional) checker with crontab not given
Claude Pro or ChatGPT Plus (Codex) heavy work via CLI $20/month
HMAC-SHA256 (optional) signing the webhook body free

Limitations

  • Framework, no measurements: no before/after of usage; the $30 + $20 versus $100-200 comparison is the author's estimate.
  • The text of the article's prompts and scripts is not in the downloaded version: only the structure is here.
  • The checker needs an always-on computer; if it switches off, routines simply do not start ("a doorbell that never rings looks exactly like a quiet day").
  • Delegating to Claude/Codex via CLI on a registered computer means letting the agent run local commands: a security risk to weigh; the author himself has not verified the path in the app.
  • Small account and little-read article; the UI details (Cmd+Shift+I, Usage & Billing, webhook fields) are his and may change.
← More guides in “How to make money with Grok Bot”