HOW-TO GUIDE
How to have Grok Bot use your Claude or ChatGPT plan through the CLIs
Based on a post by cradrrat (@cradrrat) on X · Nov 24, 2026
You'll end with: A Grok Bot that installs Claude Code or the Codex CLI on its computer, signs in with your own account, and hands jobs to them.
Why it's worth having: Work through the CLIs comes off your Claude or ChatGPT plan limits, and Anthropic's terms allow your own login in the unmodified Claude Code.
At a glance
WHO IT'S FOR
Engineers and operations staff who already pay for Claude or ChatGPT and run Grok Bot.
LEVEL
Beginner
COST
Free to read. Needs a Claude plan with Claude Code, from Pro, or a ChatGPT plan with the Codex CLI.
YOU NEED
Grok Bot · Claude Code or the Codex CLI · Node.js 22 or later · Your Claude or ChatGPT login
The method, in short
- 1Check that Node.js is installed, since the bot installs both tools with npm, and Claude Code's npm package wants version 22 or later.
- 2Ask the bot to install one tool and approve the web login it sends, or use codex login --device-auth on a headless machine.
- 3Sign in with your account, not an API key, since Codex on an API key bills at standard API rates.
- 4Treat ~/.codex/auth.json and any claude setup-token as passwords, and never paste one into a chat or a ticket.
Read the full guide from @cradrrat on X
The X Article has the sign-in steps for each tool, the cost notes, and the terms check.
Credit: cradrrat (@cradrrat) on X