# Grok Bot with Claude Code

> Use Claude Code for repo work and Grok Bot for hosted personal ops. Keep secrets and publish gates separate.

Source: https://fullbytedeveloper.com/blog/grok-bot-and-claude-code-together
Published here: 2026-11-26

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](/blog/why-grok-bot-for-personal-ops), [Grok Bot setup with Connect apps](/blog/grok-bot-setup-connector-plugin), [Lock Claude Code out of your .env](/blog/claude-code-env-lock). [7] [8] [9]

## Confirm public docs still answer

```bash
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"
done
```

On 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

1. Do research or inbox-style ops in Grok Bot when you want the hosted computer. Follow [Connect apps setup](/blog/grok-bot-setup-connector-plugin) for `@bot` and auth. [8]
2. Paste only non-secret outcomes into Claude Code (ticket text, acceptance criteria, public URLs).
3. Let Claude Code edit the repo and run `npm run check` (or your project check).
4. You merge and publish.

**Warning:** do not paste Ads API tokens, cloud keys, or `.env` contents into either chat. Prefer [env lock](/blog/claude-code-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.

## Sources

1. [Grok Bot overview, accessed 2026-11-26](https://docs.x.ai/grok-bot/overview)
2. [Grok Bot get started, accessed 2026-11-26](https://docs.x.ai/grok-bot/get-started)
3. [Grok Bot security, accessed 2026-11-26](https://docs.x.ai/grok-bot/security)
4. [Grok Bot: Use the computer and apps, accessed 2026-11-26](https://docs.x.ai/grok-bot/computer-and-apps)
5. [Claude Code overview, accessed 2026-11-26](https://code.claude.com/docs/en/overview)
6. [Claude Code best practices, accessed 2026-11-26](https://code.claude.com/docs/en/best-practices)
7. [Full Byte Developer: Why Grok Bot is strong for personal ops](https://fullbytedeveloper.com/blog/why-grok-bot-for-personal-ops)
8. [Full Byte Developer: Grok Bot setup with Connect apps](https://fullbytedeveloper.com/blog/grok-bot-setup-connector-plugin)
9. [Full Byte Developer: Lock Claude Code out of your .env](https://fullbytedeveloper.com/blog/claude-code-env-lock)
