GuidesHosting choices

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.

November 22, 2026The Everpod team
The short answer

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:

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 CLI
Copied

Each 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

Plans and prices

Monthly list prices in US dollars, as of November 22, 2026:

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

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 | bash
Copied

Give your AI agents a permanent cloud computer.

We set it up and secure it, so all you do is use them. Run Claude Code, Codex or any agent you use, more at once than your laptop can hold, and keep them working when it’s closed. Or have OpenClaw set up and run for you.

See the developer pod

From $24/mo · your own plan or API key

Get your OpenClaw agent

$29/mo, cancel anytime · model usage included