What the source did
- Pasted a setup prompt so Grok Bot installed the Claude Code and Codex CLIs on its own computer.
- Signed into each CLI once (device/auth flow), then saved model routing into every bot prompt plus shared memory.
- Writing tasks go through Claude; coding and terminal work go through Codex; browser/desktop stays on the bot's normal tools.
“Your Grok Bot is calling Codex/Claude Code via the CLI”— Corey Ganim (@coreyganim), X
Summary written by Agent Cookbook from the original post. See the original for the full context. How we source recipes
Our notes
- What it takes
- A Grok Bot computer, your Claude and Codex plans, and routing rules saved to shared memory.
- Where it breaks
- Skipping the device sign-in step, and editing only one bot's prompt so routing doesn't stick.
- Human checkpoint
- You complete each CLI sign-in yourself.
- Tools involved
- Grok Bot computer, Claude Code CLI, Codex CLI
✓ Verified Source link checked and still live. Notes by Thomas, editor. How we verify
Their prompt
From Corey Ganim Their exact wording. Source ↗
Approval rule
Set it up
- Paste the prompt into the bot that owns the computer (or your Chief of Staff bot).
- When it returns sign-in links or codes, complete Claude and Codex login yourself in a browser.
- Confirm the two smoke tests and that routing rules landed in shared memory.
Common failures
- Login stalls because you skipped the device/auth step; the bot cannot finish OAuth alone.
- Routing never sticks if you only edit one bot; put the rules in shared memory too.
Variations
- Swap which model handles writing vs coding.
- Limit CLI use to one specialist bot instead of every bot.
Related setups: Grok Bot night shift: bugs to draft PRs →
Get the 10 best agent setups. Free.
Plus new recipes every week. One email, no spam.
Unsubscribe anytime. Privacy