Grok Bot with Claude Code
Use Claude Code for repo work and Grok Bot for hosted personal ops. Keep secrets and publish gates separate.
Published here · 9 sources · Resume reading
Grok Bot and Claude Code solve different jobs. Claude Code is the coding agent you run against a repo (overview: code.claude.com). Grok Bot is a hosted personal-ops computer with named Bots, browser, filesystem, and terminal on a shared cloud box (overview: docs.x.ai). Use both; do not merge their secrets. [1] [5]
Related reading: Why Grok Bot is strong for personal ops, Grok Bot setup with Connect apps, Lock Claude Code out of your .env. [7] [8] [9]
Confirm public docs still answer
for u in \
https://docs.x.ai/grok-bot/overview \
https://docs.x.ai/grok-bot/get-started \
https://docs.x.ai/grok-bot/security \
https://docs.x.ai/grok-bot/computer-and-apps \
https://code.claude.com/docs/en/overview
do curl -sS -o /dev/null -w "%{http_code} %{url_effective}\n" --max-time 15 -A "Mozilla/5.0" -L "$u"
doneOn 2026-11-26 from this environment those URLs returned HTTP 200. Re-check plan gates on get-started before you buy. [2]
Split the jobs on purpose
| Job | Prefer | Why (public docs) |
|---|---|---|
| Edit a git repo, run project checks, open PRs | Claude Code [5] [6] | Local (or your CI) coding agent loop |
| Hosted computer that keeps working when your laptop sleeps | Grok Bot [1] | Shared persistent cloud computer |
| Connect third-party apps into that hosted computer | Grok Bot Connect apps [4] | Account-wide apps on the Bot computer |
| Enforce never-read secrets in a coding repo | Claude Code deny rules [6] [9] | Deterministic permissions in settings |
Grok Bot security docs are the place for hosted-computer trust boundaries. Claude Code best practices are the place for repo instructions, checks, and deny rules. Read both before you wire anything sensitive. [3] [6]
A safe handoff pattern
- Do research or inbox-style ops in Grok Bot when you want the hosted computer. Follow Connect apps setup for
@botand auth. [8] - Paste only non-secret outcomes into Claude Code (ticket text, acceptance criteria, public URLs).
- Let Claude Code edit the repo and run
npm run check(or your project check). - You merge and publish.
Warning: do not paste Ads API tokens, cloud keys, or .env contents into either chat. Prefer env lock for Claude Code. [9]
What not to invent
This page does not document private studio bot rosters, Postiz, or ManyChat workflows. Stick to docs.x.ai Grok Bot pages and code.claude.com for Claude Code. [1] [5]
You now have a clean split: Claude Code for the repo, Grok Bot for hosted personal ops, secrets kept apart.
Send this to the builder running both tools who keeps pasting the same token into both chats.
Keep this guide
Filed under Claude Code, AI agents, Dev tools
Questions about this guide
Is Grok Bot a Claude Code plugin?
No. Grok Bot is a hosted Bot on a shared cloud computer documented on docs.x.ai. Claude Code is Anthropic's coding agent CLI/IDE tooling.
Which plans include Grok Bot?
Per Grok Bot get-started docs (re-check on the day you buy): Premium, Super, and Ultra on The X Subscription include Grok Bot for an individual or team seat. Prefer the live plan page over this summary.
Can they share one .env?
Do not. Keep Claude Code deny rules on local secrets. Grok Bot Connect apps have their own auth. Never paste production tokens into either chat.
Where is the Grok Bot setup walkthrough?
Grok Bot setup with Connect apps and @bot. This page is the split with Claude Code.
Sources
- Claude Code overview, accessed 2026-11-26code.claude.com
- Claude Code best practices, accessed 2026-11-26code.claude.com
- Full Byte Developer: Why Grok Bot is strong for personal opsfullbytedeveloper.com
- Full Byte Developer: Grok Bot setup with Connect appsfullbytedeveloper.com
- Full Byte Developer: Lock Claude Code out of your .envfullbytedeveloper.com