Grok Build vs Claude Code: two terminal coding agents compared
Grok Build vs Claude Code compared fairly. Where each one runs, models, features, billing, open source and data handling, including Grok Build's July 2026 repository uploads, and when to pick which.
Grok Build and Claude Code are the same kind of tool. Both are coding agents that live in your terminal, read your repository, edit files, run commands and work through a task while you watch or look away. Grok Build comes from SpaceXAI (formerly xAI) and runs on Grok models. Claude Code comes from Anthropic and runs on Claude. Their feature lists look alike, so the choice comes down to the model, the plan you pay for, openness, and how much you trust each one with your code.
This comparison uses each tool's own documentation, read on November 25, 2026: docs.x.ai/build and Anthropic's Claude Code docs. Both ship updates weekly, so check them before you decide.
#How do they compare side by side?
| Claude Code | Grok Build | |
|---|---|---|
| Maker | Anthropic | SpaceXAI (formerly xAI) |
| Where you use it | Terminal; also IDE extensions, a desktop app, the web and the Claude app | Terminal; headless; other apps through the Agent Client Protocol (ACP) |
| Systems | macOS, Linux, Windows | macOS, Linux; Windows through PowerShell, Git Bash or WSL |
| Models | Claude: Opus, Sonnet, Haiku | Grok models by default; you can add OpenAI-compatible or Anthropic-style endpoints |
| Plan before editing | Plan mode | Plan mode |
| Helpers | Subagents | Sub-agents |
| Project instructions | CLAUDE.md | AGENTS.md |
| Extending | Skills, hooks, plugins, MCP servers | Skills, hooks, plugins, MCP servers, marketplaces |
| Scripting | claude -p, GitHub Actions, GitLab CI/CD | grok -p with streaming JSON output |
| Billing | A Claude Pro or Max plan, or API usage | A Grok subscription's weekly usage pool, or an API key |
| Source code | Not open source | Open source, Apache 2.0 (since July 2026) |
| Where it runs | Tools on your machine, the model at Anthropic | Tools on your machine in a sandbox, the model through cli-chat-proxy.grok.com |
On features, they're close. Both plan before they edit, split work across helper agents, take instructions from a file in the repository, run shell commands under permission rules, connect to MCP servers, and run without a human in scripts and CI. The differences are elsewhere.
#What's actually different?
The model. It's the biggest difference and the hardest to put in a table. Claude Code runs on Claude, and only Claude. Grok Build defaults to its own grok-build model and lets you add other providers' endpoints in ~/.grok/config.toml. Try both on your own repository: a week of your real tasks tells you more than any benchmark.
Openness. Grok Build's source is on GitHub under the Apache 2.0 license, written in Rust. You can read it, build it and change it. Claude Code isn't open source. Anthropic documents what it sends and how to turn telemetry off, but you can't read the client.
Where you use it. Claude Code goes beyond the terminal, to editors, a desktop app, the web and your phone through the Claude app, and many third-party apps are built on it. Grok Build is a terminal app that other apps can embed through ACP. It runs inside T3 Code, for example.
How you pay. Claude Code uses a Claude Pro or Max plan, with its 5-hour window and weekly cap, or API billing. Grok Build draws from the same weekly usage pool as Grok's apps, or uses an xAI API key. If you already pay for one of the two companies, that usually decides it.
#What happened with Grok Build and private repositories?
In July 2026, a security researcher found that Grok Build 0.2.93 uploaded a Git bundle of every tracked file in a repository, with its full history, to a cloud storage bucket. This was separate from what the model needed to answer, and it happened even when the agent was told not to open any files. The "Improve the model" setting didn't stop it. The uploads were switched off from the server side on July 12 and 13, and later versions removed the step from the client. xAI said previously uploaded data would be deleted. T3 Code and Grok Build: two privacy stories has the details and sources.
As far as public reports go, it's fixed. It's still worth knowing when you weigh the two. Today, Grok Build's enterprise docs list the hosts it talks to, and zero data retention is a team-level setting. Claude Code's data handling is documented per plan: consumer accounts choose whether sessions train models, with 30 days of retention when they don't, and commercial accounts aren't used for training. Is Claude Code private? covers it.
#When is Grok Build the better choice?
- You already pay for Grok or X. The weekly pool you have covers it.
- You want an open-source agent. Read the code, audit what it sends, build your own version.
- You want to bring other models. Grok Build's config takes OpenAI-compatible and Anthropic-style endpoints next to Grok's own.
- You like a fast, full-screen terminal app. It's a Rust TUI with mouse support, built for long sessions in one window.
#When is Claude Code the better choice?
- You already pay for Claude. A Pro or Max plan covers it, with no API key.
- You want Claude. Many developers pick their agent by its model, and Claude Code is how Anthropic ships Claude for coding.
- You want it everywhere. The terminal, VS Code and JetBrains, a desktop app, the web, and your phone through the Claude app.
- You want the ecosystem. GitHub Actions, GitLab CI/CD, a large catalog of skills, plugins and MCP servers, and many apps built on it. See Claude Code skills, hooks and subagents.
- You want data rules written per plan. Retention, training and zero data retention are documented for each kind of account.
#Can you use both?
Yes. They don't conflict: each keeps its settings in its own folder (~/.claude and ~/.grok). Some people keep one as a second opinion, or switch when one plan's limits run out. Apps such as T3 Code drive both from one window.
#In Relais
Relais is a Mac app built on Claude Code, and only Claude Code. It doesn't run Grok Build. It runs Claude Code sessions sorted by project, gathers what needs you, takes over with another Claude account when one hits its limit, and adds agents for the rest of the work, all on your Claude plan and with no telemetry. If Grok Build is your agent, Relais isn't for you, and T3 Code is the window that runs it. If Claude Code is, see what Relais adds to Claude Code.
Every comparison, with a table of Relais, Grok Bot, T3 Code and Claude Code alone, is on Compare.