Grok Bot vs Claude Code and Codex: which one for coding?
Grok Bot is xAI's hosted agent for everyday work; Claude Code and Codex are coding agents. What each does with code, models, prices, and limits.
They are different kinds of tool. Grok Bot is xAI’s hosted personal agent: named bots on a cloud computer xAI runs for you, sold for everyday work (research, documents, campaigns, bookings) inside The X Subscription from $30 a month. It has a terminal and can trigger on GitHub events, but xAI documents no coding workflow and you cannot choose its model. Claude Code and Codex are coding agents: they work in your repository, run your tests, commit and open pull requests, in your terminal, editor or desktop app, or in a cloud VM tied to GitHub. Claude Code comes with Claude Pro at $20 a month and up; Codex comes with every ChatGPT plan, Free included. For writing and shipping code, pick one of the two coding agents. xAI’s own counterpart to them is Grok Build, its terminal coding agent, not Grok Bot.
What each one is, side by side
As of November 2026:
- Grok Bot 1.0 (out of beta since November 11, 2026): a roster of bots you create by name and job, used through its desktop apps (macOS, Windows, Linux) and phone apps. It runs only on Cursor-hosted cloud computers, keeps working with your laptop closed, signs in to your web apps, and runs routines on a schedule or on events. Closed source, no self-hosting.
- Claude Code (Anthropic): a coding agent that, in Anthropic’s words, “reads your codebase, edits files, runs commands, and integrates with your development tools”, in the terminal, VS Code and JetBrains, a desktop app, and the browser at claude.ai/code. Runs on your machine, or in a cloud session.
- Codex (OpenAI): the same job across the ChatGPT desktop app, the Codex CLI, the IDE extension and Codex Cloud. The CLI is open source under Apache-2.0 and, per its repository, “runs locally on your computer.”
How Grok Bot’s bots, memory and sign-ins work is in what Grok Bot is and how it works; this page sticks to the coding question.
Can Grok Bot write and run code?
It has the means. Its computer is “a persistent cloud computer with a browser, command line, and filesystem”, with durable files kept under /workspace, and a bot can start a server there that your other bots can reach. Routines can start on “a Slack message, a GitHub, Linear, Sentry, or PagerDuty event”, and the Grok Bot 1.0 post says bots have “improved connections to tools like Gmail, Google Calendar, and GitHub”. The product page gives one coding example, bots that “open PRs on the marketing site”, and pitches a Linear connection to “coordinate coding agents”.
What it lacks is everything a coding agent is built around. As of November 22, 2026 xAI’s Grok Bot docs say nothing about working in a repository: no git workflow, no project instructions file, no editor integration, no review of diffs. The overview describes its jobs as “build a deck, run a marketing campaign, book a dinner reservation”. Two details of the computer matter if you try it for code anyway. Installed dependencies do not last: “Project folders such as node_modules or a Python virtual environment are not saved”, so you reinstall them after an update, Recover or Reset. And every bot on your account shares the machine’s command-line credentials, so a GitHub token one bot uses is available to all of them; the FAQ says “Do not use separate Bots as a security boundary.”
xAI’s pages disagree on the computer. x.ai/bot says “Every Bot has its own computer”. The FAQ says “The computer is assigned per user, not per Bot” and “Every Bot on your account uses one persistent cloud computer”. The docs are the more detailed account, and they also say each user’s computer is “dedicated and hardware-isolated” from other users’. Plan on the shared one until the two agree.
What Claude Code and Codex do with your code
Both work in a git repository: they read the project, edit across files, run builds and tests, and commit. Claude Code “stages changes, writes commit messages, creates branches, and opens pull requests”; Codex Cloud lets you inspect changed files and “commit or open a pull request when you’re ready.” Claude Code reads a CLAUDE.md of project instructions, or an AGENTS.md written for other agents, and both have a managed review of GitHub pull requests on some of their plans. Installing either on a Mac, Linux or WSL machine is one line:
curl -fsSL https://claude.ai/install.sh | bash # Claude Code
npm install -g @openai/codex # Codex CLICopiedEach also has a hosted mode closer to what Grok Bot offers. A Claude Code cloud session runs “in an isolated, Anthropic-managed VM”, keeps running after you close your laptop, and costs nothing beyond your plan’s usage; cloning and pull requests there need GitHub. Codex Cloud gives each task “its own workspace” that “can keep working while your computer is asleep”, with repositories from a connected GitHub or GitLab account. Unlike Grok Bot’s shared machine, each of these starts per task or session. How the two agents compare on real bugs is in Codex vs Claude Code, tested on the same three bugs.
Models
- Grok Bot: chosen for you. “There is no customer-facing model picker,” each request goes to an xAI model or a third-party one, and the app “does not show the underlying model for a request.” A team’s model allowlist does not apply to it (security docs).
- Claude Code: Anthropic’s Claude models, which you switch with
/model. On Pro, Max, Ultra, Team and Enterprise the default is Opus 5.5, with Sonnet 5.5 and Haiku 5.5 behind the other aliases. - Codex: OpenAI’s GPT-6 family (GPT-6.2 Astra and Sol, GPT-6.1 Sol and Terra, GPT-6 Astra and Luna, per the models page), set in its config or left to a recommended default; a custom provider works through a compatible Responses API endpoint.
Plans and prices
Monthly list prices in US dollars, as of November 22, 2026:
- Grok Bot (The X Subscription): Premium $30, Super $100, Ultra $200; Plus at $8 and Free do not include it. Usage comes from a weekly pool shared with Grok and with Grok models in Cursor, and extra usage is billed on token cost. Older Cursor Pro, Pro+, Ultra and self-serve Teams plans include it too.
- Claude Code (Claude plans): Pro $20 ($17 a month billed yearly), Max $100, Ultra $200, Team from $25 a seat; Free does not include it. An Anthropic API key works instead, billed per token.
- Codex (ChatGPT plans): Free and Go ($8) for light tasks, Plus $20, Pro at $100, $200 or $500, Business $25 a seat billed monthly. An API key works for the CLI and IDE extension but has “No cloud-based features (GitHub code review, Slack, etc.)”.
Limits by plan are in which Claude plans include Claude Code and which ChatGPT plans include Codex. At $30, Grok Bot’s entry price sits above both coding agents’ $20 tiers; the same pool also covers Grok models used in Cursor.
Where each falls short
- Grok Bot for code: no documented repository workflow, no model choice, dependencies that vanish after a reset, one set of credentials across every bot, and nowhere to run it but xAI’s cloud. Its strength is the work around code: watching GitHub or Linear events, chasing issues across web apps, meetings and Slack.
- Claude Code and Codex for agent work: they are built for a repository, not for running your inbox or booking a table. A local session stops when your laptop sleeps; the cloud sessions do not, but they live per task, not as a standing teammate with its own logins. Each is tied to its maker’s models through its own plan.
If the appeal of Grok Bot is an agent that is always on and has a computer of its own, the coding agents get the same by running on a server that never sleeps instead of a laptop, and the open routes to Grok Bot’s job are compared in Grok Bot alternatives.
xAI’s coding agent is Grok Build
Someone searching “Grok vs Claude Code” for a terminal coding agent from xAI wants Grok Build. Its docs describe “a coding agent for the terminal” that runs as an interactive TUI, headless in scripts, or through the Agent Client Protocol in other apps, signs in with an xAI account or an API key, and takes “any model” set in ~/.grok/config.toml. Its docs do not say which plans include it. It installs with:
curl -fsSL https://x.ai/cli/install.sh | bashCopied