Grok Bot for coding works best as a code-triage Bot: it watches your repo and bug reports, reproduces problems on its cloud computer, and hands the actual code change to a Cursor Cloud Agent that comes back with a pull request.
That is the setup I'd build, and below are the seven steps in the order I'd do them.
Every setting comes from the official How Grok Bot Works page, the teams and enterprises docs, the approvals docs and Cursor's own Cloud Agents docs.
Want a second pair of eyes on your setup before a Bot touches a repo? Book a free SEO strategy session with my team.
What the Bot actually does with code (and what it doesn't)
Each Bot works on a persistent cloud computer that has a browser, a command line and a filesystem, per the computer and apps page.
So it can run commands, open a staging site, read logs and save files.
The How Grok Bot Works page adds the coding piece: Bots can pass coding work to Cursor Cloud Agents and attach what comes back to their reply.
What the docs do not describe is an editor plugin, so the Bot is not the thing typing code in your IDE.
They also do not describe building or deploying apps: a Page is something the Bot builds for you to read, like a report or a tracker, not a site you ship.
Plan around that and the Bot becomes a very useful layer around your code instead of a replacement for your editor.
Step 1: check access and sign in with your Cursor account
On The X Subscription, the plan page says Premium, Super and Ultra include Grok Bot, and Plus doesn't.
The get started page says the Bot runs on your Cursor account, so there is no extra login to create.
If your company signs in through single sign-on, your Cursor SSO setup carries over.
If your seat sits on a self-serve Grok Business plan, pick Sign in with Grok in the browser and use the Grok account holding that seat.
If you came in through SuperGrok or X Premium+, the same page tells you to add a Grok account link instead.
Step 2: connect GitHub, then connect it again for Cursor
This is the step people miss.
Grok Bot has a built-in GitHub connector under Connect apps; the security page lists it with the host api.github.com.
The changelog (v0.75.2) says that connector can list repos, compare commits and read the commits and comments on a pull request.
That covers reading.
For a Cloud Agent to work on a repository, Cursor's docs say an account admin must first connect source control, and the Cursor GitHub app needs both Cursor admin and GitHub org admin access to install.
Pick Selected repositories during that install and start with one repo you can afford to experiment on.
Step 3: confirm Cloud Agent delegation is switched on
Delegation is a team-wide switch on the Grok Bot page of the Cursor dashboard, and it starts on.
The teams docs say delegated work runs on separate computers under the Cloud Agent controls you already have, so your Cursor rules still apply.
An admin can turn the switch off if the team doesn't need it.
Before relying on it, ask the Bot in chat to hand a small, harmless change to a Cloud Agent, such as fixing a typo in a README on a test branch.
If nothing starts, check the switch first, then the GitHub app from Step 2.
🔥 Want the full Grok Bot and Agent OS coding setup on video? Inside the AI Profit Boardroom you get step-by-step video trainings, the installable Agent OS, four coaching calls a week and 3,400+ members comparing setups. → Join the AI Profit Boardroom
Step 4: set terminal rules before the first command
When the Bot wants to run a terminal command, the approvals docs say its card shows Allow and Skip, plus Manage settings for your Auto Review settings.
Don't click Allow on everything.
Write narrow Custom Rules instead, one action and one scope each.
The docs give a model rule to copy: allow git status on its own inside one named folder.
These are the three I'd add on day one:
Allow automatically when running git status in /workspace/repo.
Ask first before pushing to any branch.
Ask first before changing anything in production.
Production changes and deleting or overwriting data are both on the docs' list of actions that deserve an explicit boundary, so keep them behind a person.
One more rule from the same page: text inside a web page or an email doesn't count as your request, which lowers the risk from a hostile bug report but doesn't remove it.
Step 5: keep credentials off the shared computer
Here is the gotcha that matters most for code.
Every Bot you own works on the same single cloud computer, with a separate screen per Bot.
The computer and apps page spells out what that means: browser sessions, files and command-line credentials are shared by every Bot on the account.
So a token you place there for the coding Bot is also usable by your marketing Bot.
When an API key is needed, enter it in the secure secret card; the Vault page says the field is masked and the value never appears in chat or to the Bot.
When a workload truly needs its own credentials, the teams docs say to give it its own Cursor user, because each user gets a separate Firecracker microVM.
Step 6: build the bug-repro skill once
xAI's use cases page ships a Bug reproduction starter that asks for a repro in staging with a fresh test account, exact steps, screenshots and browser details, and no customer data.
Run that once by hand on a real ticket.
Correct anything it got wrong.
Then ask the Bot to save the path as a skill, which the skills and routines docs describe as the step between a one-time task and an automation.
My brief for the skill looks like this:
Job: reproduce one bug report in staging.
Use: the staging URL, the test account in Vault, the GitHub connector for recent commits.
Output: numbered steps, screenshots, browser details, the likeliest commit.
Never: use customer data, change production, push code.
Step 7: wire a routine to GitHub, Linear or Sentry
Routines can start on a schedule or on an event: a Slack message, a GitHub, Linear, Sentry or PagerDuty event, an email to the Bot's own address, or a webhook call.
The routines docs note that Cursor account integrations start those event routines, separate from the Slack or GitHub apps, so you may need one more connection here.
Only new activity counts, so events from before the trigger existed won't fire.
The changelog (v0.56.0) also lets a routine watch a single GitHub pull request, which is handy for a release you're nervous about.
After saving, press Test rather than waiting for the next real event.
Reading the result: View PR and Open in Cursor
When a Cloud Agent finishes, the files and results page says the Bot copies the images, videos and files named in the agent's final report to its computer and attaches them to its reply.
On the phone, the card shows those files once the run is Done, Error or Expired.
If the run opened a pull request that hasn't expired, View PR takes you to it.
The Open in Cursor button takes you to that run, either in the desktop Cursor app or in a browser.
Your review happens at the pull request: Cursor's run-modes docs say Cloud Agents run on their own machine and never ask you to approve an action, so the PR is your checkpoint.
Nothing in the docs says a Bot merges or deploys on its own, and I wouldn't set it up to.
📞 Rolling a coding Bot out across a client team? Book a free SEO strategy session and my team will walk through the repo access, rules and review points with you. → Grab your free call
Two worked setups: a web agency and an online shop
A five-person web agency
- A client reports a broken contact form in the agency's help channel.
- A Slack routine picks up messages containing "needs repro" and opens the ticket.
- The Bot loads the staging copy of the site, signs in with the test account from Vault and records the steps and screenshots.
- It uses the GitHub connector to compare the last few commits and names the likeliest one.
- It hands the fix to a Cloud Agent, which opens a pull request.
- A developer opens it with View PR, reviews it and merges by hand.
A shop with a small custom storefront
- The owner forwards a customer's "checkout looks wrong on my phone" email to the Bot's address.
- Because a routine started that work and not the owner, any reply email waits as a draft until someone presses Send.
- The Bot reproduces the layout issue in its browser at phone width and saves screenshots.
- It asks the owner in chat whether to send the fix to a Cloud Agent.
- The owner's freelance developer reviews the resulting PR before anything goes live.
Gotchas I'd plan around
- One Bot runs one computer-use task on its screen at a time, so split heavy repro work across Bots.
- The screens are separate work areas, not security boundaries.
- Your laptop is a separate capability: under Settings, Computer, Your computer, the default is Ask every time, and xAI recommends Never allow for anyone whose Bots have no specific need for local files.
- Approvals from routine work expire after about 30 minutes, per the FAQ.
- There is no model picker, so you can't choose what model handles a task.
- Pages need Grok Bot 0.60.0 or later on desktop, are still rolling out, and aren't on Enterprise teams yet.
On where it all runs: docs.x.ai now says "Grok Bot computers run in Cursor's cloud" on its private networks page, and cursor.com keeps the older line "The computers Bots work on run in Cursor's cloud."
When a dedicated coding agent is the better tool
If you spend your day writing and refactoring code, an editor or terminal coding agent fits better: Cursor in the editor, GitHub Copilot, Claude Code or Codex.
Those are built to sit inside your repository while you work, and Grok Bot's docs describe no editor integration at all.
Grok Bot earns its place around the code: triage, repro packs, repo digests, release trackers and handing well-scoped changes to a Cloud Agent while you're away from the desk.
For the full head-to-head on the editor side, read our Grok Bot vs Cursor setup comparison.
If you'd like the exact skill files and routine briefs I use, they're inside the AI Profit Boardroom, or book a free call with my team and we'll map it to your repo.
Also On Our Network
- 🌐 Whether a small firm without developers gets value from a coding Bot
- 🌐 An eight-criteria scorecard of the Bot as a coding teammate
- 🌐 Five copy-paste coding prompts and a weekly review rhythm
- 🌐 Which AI models to pair with a coding Bot, with live bench scores
- 🌐 The complete Grok Bot for Coding guide on the AI Profit Boardroom blog
FAQ: Grok Bot For Coding
Does Grok Bot for coding need a GitHub connection?
For reading repos, commits and PR comments, connect the built-in GitHub connector. For Cloud Agents to change code, Cursor needs source control connected through its GitHub app, which an admin installs.
Who approves the code a Cloud Agent writes?
You do, at the pull request. Cursor says Cloud Agents run on their own machine without approval prompts, so review the PR the Bot links with View PR before merging.
Can my coding Bot and my other Bots see the same tokens?
Yes. All of your Bots share one cloud computer, including command-line credentials. Use the secure secret card for keys and a separate Cursor user for work that needs its own credentials.
Can Grok Bot deploy my app?
The docs don't describe building or deploying apps. Pages are readable reports and trackers, and nothing says a Bot merges or deploys on its own.
What terminal approval should I set first?
A narrow allow rule for read-only commands such as git status in one folder, plus Ask first rules for pushing and for any production change.
📺 Video notes + links to the tools 👉
🎥 Learn how I make these videos 👉
🆓 Get a FREE AI Course + Community + 1,000 AI Agents 👉
About Julian
I'm Julian Goldie, an SEO entrepreneur, author and founder of the AI Profit Boardroom, which has 3,400+ members.
I help business owners scale with AI agents, automation and SEO.
- I've built a 7-figure SEO and link building agency, Goldie Agency, with a team of 70+ SEO experts.
- I've grown a YouTube channel to 400,000+ subscribers.
- I wrote "Link Building Mastery".
- My Udemy courses have taught over 29,000 students.
→ Get my best AI training inside the AI Profit Boardroom
Start with one test repo, keep pushes and production behind Ask first rules, and join the AI Profit Boardroom to finish setting up Grok Bot for coding.











