PricingSign inDownload

Guides

How do I use Grok Build and Claude Code together?

Use Claude Code in Grok Build (terminal or extension), keep one set of rules both agents read, give each its own branch, and hand work across with a note.

On this page
  1. Step 1: run Claude Code inside Grok Build
  2. Step 2: one set of rules for both agents
  3. Step 3: share tools, not secrets
  4. Step 4: one task per agent, one branch per task
  5. Step 5: hand work across with a note
  6. What changes when it is a team?
  7. Frequently asked questions
  8. Can I use Claude Code in Grok Build?
  9. Does Claude Code use my Grok Build credits?
  10. Does Grok Build read CLAUDE.md?
  11. Can Grok Build and Claude Code edit the same branch?
  12. Do I need two subscriptions?
  13. Which one should do the big task?
  14. Try it with your team

Run Claude Code in Grok Build's integrated terminal, put your project rules in one AGENTS.md that both read, and give each agent its own branch or worktree so they never edit the same files at once. Grok Build reads AGENTS.md as plain project instructions, and Claude Code reads it through a one-line CLAUDE.md that imports it. When work moves from one agent to the other, pass a short note with the branch, the last commit and what is left.

Plenty of developers use both: Grok Build for editing with its inline and tab completions, Claude Code for longer tasks in the terminal. The friction is not running them side by side. It is keeping them from disagreeing.

Step 1: run Claude Code inside Grok Build#

Grok Build is built on VS Code, so Claude Code works in its integrated terminal:

bash
claude

Started there, Claude Code detects the editor and can install its editor integration, which shows its proposed edits as diffs in Grok Build. Run /terminal-setup once so Shift+Enter adds a new line in the terminal prompt.

If you prefer a panel to a terminal, Anthropic's Claude Code extension installs in Grok Build too: search for "Claude Code" in Grok Build's Extensions view, or use the Grok Build link in Anthropic's VS Code docs. Either way you sign in with your own Claude account.

Step 2: one set of rules for both agents#

Each agent has its own rules file, and they drift apart within a week if you keep two. Keep one:

FileRead byPut in it
AGENTS.mdGrok Build, Codex, OpenCode and othersThe real rules: commands, conventions, folders not to touch
CLAUDE.mdClaude CodeOne line: @AGENTS.md
.cursor/rules/*.mdcGrok Build onlyRules scoped to paths, if you need them

Grok Build's rules docs describe AGENTS.md as a plain-markdown alternative to .cursor/rules. Project .mdc rules still work beside it for Grok Build-only, path-scoped instructions.

Step 3: share tools, not secrets#

Both agents can use MCP servers, but each keeps its own config: Grok Build in .cursor/mcp.json, Claude Code in .mcp.json at the project root. Commit both if the team should share the servers, and read keys from environment variables in both. A server's key in a committed file is a published key.

Step 4: one task per agent, one branch per task#

Running both agents on the same files at the same time is how you get half-applied edits. Split by task:

bash
git worktree add ../app-billing -b billing
cd ../app-billing && claude

Keep Grok Build on the main checkout for the task in front of you, and let Claude Code work the longer task in its worktree. Before starting, write down who has which task, even in a TASKS.md. Stopping agents from editing the same files covers the failure modes.

Step 5: hand work across with a note#

When one agent stops and the other continues, it should not have to rediscover the work. Ask the finishing agent for a handoff:

Write a handoff for another agent: the branch, the last commit, what is done, what is next, and any decision it must not undo.

Paste that into the other agent, or keep it in the pull request description where both can read it.

What changes when it is a team?#

On one computer, the steps above are enough. With teammates, the same questions get harder: one person's Grok Build and another's Claude Code cannot see each other's tasks, decisions only travel by commit, and handoff notes get pasted into chat.

Joxo puts each teammate's agent, Grok Build, Claude Code, Codex, OpenCode and more, into one shared project. Each runs on its own person's computer and plan. The agents share a task board where only one agent can hold a task, decisions that reach every agent, and handoffs that carry the branch, the commit and the note. Setup is one line in a terminal:

sh
curl -fsSL https://joxo.ai/install | sh

Open a new terminal, then start each agent through Joxo: joxo cursor and joxo claude. Windows and the desktop app are on the setup page.

Joxo with Grok Build and Joxo with Claude Code show what each agent gets.

Frequently asked questions#

Can I use Claude Code in Grok Build?#

Yes. Start it in Grok Build's integrated terminal with joxo claude, or install Anthropic's Claude Code extension from Grok Build's Extensions view. Both run the same Claude Code, signed in to your Claude account.

Does Claude Code use my Grok Build credits?#

No. Claude Code runs on your Claude plan or an Anthropic API key, even inside Grok Build. Grok Build's own agent keeps using your Grok Build plan.

Does Grok Build read CLAUDE.md?#

Grok Build's documented project instructions are .cursor/rules and AGENTS.md. Keep the shared rules in AGENTS.md and let CLAUDE.md import it, so both agents read the same text.

Can Grok Build and Claude Code edit the same branch?#

They can, but not at the same time. Finish and commit with one before the other starts, or give each its own worktree.

Do I need two subscriptions?#

Yes. Grok Build and Claude Code are billed separately, each on its own plan. Nothing here asks you to share an account.

Which one should do the big task?#

Whichever you trust more for it. A common split is Claude Code for long tasks in the terminal and Grok Build for edits you watch, but the setup above works in either direction.