Connect your ChatGPT and Claude subscriptions to Grok Bot with the prompt below
by Corey Ganim (@coreyganim) · 2026-10-14
✓ Opened via the X API on 2026-10-16
Read the original ↗Install the Claude Code and Codex CLIs on the bot's computer, sign in once, then route writing to Claude and coding to Codex from every bot.
- 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. See the original for the full context.
Adapted by us from what the source described. Fill in the [BRACKETS].
The prompt
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.