Grok Bot Integration Guide
Technology: grok-bot · Category: tooling · Last reviewed: 2026-10-18
Source: https://tech-stack.codeamanilabs.org/guide/grok-bot
Insight:
Grok Bot is not an API. It is an app that gives you AI teammates: named Bots with persistent memory, each working on a cloud computer (browser, filesystem, terminal) that keeps running after your laptop closes. You use it rather than build on it. The one fact that shapes everything else: all of your Bots share one computer, so every login, cookie and file one Bot can reach, every Bot can reach. Separate Bots are a way to organise work, not a security boundary. If you want a bot you ship to your own customers, that is
grok-chatbot/.
██████╗ ██████╗ ██████╗ ██╗ ██╗ ██████╗ ██████╗ ████████╗
██╔════╝ ██╔══██╗██╔═══██╗██║ ██╔╝ ██╔══██╗██╔═══██╗╚══██╔══╝
██║ ███╗██████╔╝██║ ██║█████╔╝ ██████╔╝██║ ██║ ██║
██║ ██║██╔══██╗██║ ██║██╔═██╗ ██╔══██╗██║ ██║ ██║
╚██████╔╝██║ ██║╚██████╔╝██║ ██╗ ██████╔╝╚██████╔╝ ██║
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
Grok Bot Integration Guide
Focus: xAI's Grok Bot product. Persistent AI "Bots" that do real work on a cloud computer, used from desktop, mobile, or by tagging @bot on X. Covers plans and linking, the shared-computer model, skills and routines, approvals, Teams/Enterprise controls, and the security model. It is not a developer API. To build your own Grok-powered bot for customers, see
grok-chatbot/. For the raw model API, seexai/.
Overview
Grok Bot gives you named AI Bots, each with a job, a description, persistent memory, and its own conversation. Every Bot works on a cloud computer with a browser, filesystem, and terminal, so it can finish tasks inside the tools you already use. Work continues when your laptop or phone is closed. Bots can run in parallel, message each other, join group chats, and hand tasks off.
| Fact | Detail |
|---|---|
| Who runs it | xAI-branded, but runs on Cursor's (Anysphere) cloud with Cursor accounts, billing, and SSO |
| How you use it | Desktop app, mobile app, or @bot on X |
| Where work happens | A per-user Linux cloud computer (a dedicated Firecracker microVM) in the US |
| Model | Chosen by the service. There is no model picker |
| Developer surface | No public Grok Bot API, SDK, CLI, or webhook. Integration is through MCP plugins, connectors, and the Admin/Organization APIs (§8) |
flowchart LR
U["You<br/>desktop · mobile · @bot on X"] --> B1["Bot: Research"]
U --> B2["Bot: Inbox"]
U --> B3["Bot: Ops"]
B1 <-->|"messages · handoffs"| B2
B1 --> C["ONE shared cloud computer<br/>browser · /workspace · terminal<br/>logins · cookies · CLI creds"]
B2 --> C
B3 --> C
C --> P["Connectors / MCP plugins"]
C --> W["Web apps via computer use"]
B3 -.->|"pauses for"| A["Your approval<br/>(Allow once · Always · Deny)"]
Grok Bot vs. its neighbours
| Grok Bot (this guide) | Grok Build | Grok API (xai/, grok-chatbot/) |
|
|---|---|---|---|
| What | AI teammates on a cloud computer | Coding-agent CLI in your terminal (grok) |
Model endpoints you call from code |
| You | Use it | Use it on your repo | Build on it |
| Runs | Cursor's cloud | Your machine | xAI's API |
| Billed | Plan's weekly pool | Plan / XAI_API_KEY |
Per token |
Official Documentation
1. Plans and access
Grok Bot uses a weekly usage pool that resets weekly. No reset day is documented; the live usage view shows the next reset date. It is unlocked by any one of these:
| Route | Plans that include Grok Bot | Not included |
|---|---|---|
| Cursor plan | Pro, Pro+, Ultra (individual); Cursor Teams | Free; legacy request-based plans |
| Linked Grok subscription | SuperGrok, SuperGrok Plus, SuperGrok Heavy, X Premium+, a self-serve Grok Business seat | SuperGrok Lite. Grok Enterprise: ask your account manager |
| The X Subscription (new family) | Premium ($30/mo), Super ($100/mo), Ultra ($200/mo); seats at the same prices for teams | Free, Plus |
Linked plans don't stack. If you have both a Cursor plan and a linked SuperGrok subscription, Grok Bot uses whichever grants more weekly usage. The tiers map one-to-one:
| Cursor | = Grok |
|---|---|
| Pro | SuperGrok = X Premium+ |
| Pro+ | SuperGrok Plus |
| Ultra | SuperGrok Heavy |
Usage and billing facts:
- On-demand usage is billed through Cursor. Enable it under Settings → Usage & Billing. It is capped by an "On-demand monthly limit", which is not a hard stop mid-run. With on-demand off, Bots stop when the weekly pool is empty.
- The X Subscription draws one shared weekly pool across Grok, Grok Bot, and Cursor. Heavy Bot use eats into your Cursor and Grok allowance in the same week.
- Usage is metered on the Cursor account. Check it under Usage at grok.com/dashboard.
- Numeric pool sizes are not documented (the docs point to x.ai/pricing).
Linking a SuperGrok subscription
- Sign in with the right Cursor account first. A link is permanent: it cannot be unlinked or moved to another Cursor account.
- Desktop: Settings → Usage & Billing → "Link SuperGrok Heavy" (the button is named for your tier). Or use Link Grok Account on the access screen. Mobile: Link Grok Account, then Finished Linking? Refresh My Status.
- Allow up to 24 hours for a tier change to show. If linking fails, retry at
cursor.com/bot/onboarding. - Each subscription keeps billing on its own. Linking cancels nothing.
2. Setup
Prerequisite: privacy mode
Grok Bot needs cloud data storage. Accounts on Legacy Privacy Mode must switch before first use, at https://cursor.com/dashboard/settings?openPrivacy=true. With Privacy Mode on, your data is still not used for training.
Install
Download from https://x.ai/bot (Linux builds are under More downloads), from cursor.com/download/bot, or from the dashboard's Download Grok Bot row.
| Platform | Package | Notes |
|---|---|---|
| macOS (Apple silicon, Intel) | .dmg |
Drag to Applications. Check your chip under Apple menu → About This Mac |
| Windows (x64, Arm64) | Setup .exe |
Per-user install under %LOCALAPPDATA%\Programs; silent switch /S. Architecture: Settings → System → About |
| Linux (x64, Arm64) | .deb, .rpm, AppImage |
uname -m → x86_64 = x64, aarch64 = Arm64 |
| iPhone / iPad | App Store (id6794501026) |
iOS / iPadOS 18+ |
| Android | Google Play (ai.x.grok.bot) |
Android 9+ |
No MSI or PKG installer is published.
# Linux .deb / .rpm installs register a signed repo, so updates arrive via the
# package manager. You can hold a version (auto-update can't be disabled elsewhere):
sudo apt-mark hold grok-bot
Updates: the app auto-updates. That can't be disabled on macOS, Windows, or AppImage, and a remote "Update required" cutoff applies to every install type.
For scripted packaging, the release feed is https://api2.cursor.sh/updates/api/download/stable/{platform}/sand, with {platform} one of darwin-arm64, darwin-x64, win32-x64-user, win32-arm64-user, linux-x64, linux-arm64.
Sign in and create your first Bot
- Open the app → Sign in (browser-based Cursor auth; the page may show Grok or xAI branding). Grok Business seats use Sign in with Grok; SSO users follow their org's flow.
- New → Create new Bot (
Cmd/Ctrl+N). Give it a name, a job, a description, and an avatar. - Give it a first task in plain language.
Prefer several focused Bots ("Inbox", "Research", "Ops") over one catch-all. Each keeps its own memory and conversation.
3. The shared cloud computer
This is the concept to understand before you connect anything.
- One computer per user account, shared by all of that user's Bots: files, browser sessions, cookies, CLI credentials, and app logins.
- Each Bot has its own screen and runs one computer-use task at a time. The docs say plainly that screens are not separate security boundaries.
- Durable files live in
/workspace. Files, browser state, and sign-ins survive updates and recovery. Temporary directories and manually installed packages may not. - Idle computers hibernate.
| Maintenance action | What it does | Data |
|---|---|---|
| Recover | Restarts an unreachable computer | Kept |
| Update Bot's Computer | Refreshes the image | Files kept |
| Reset | Restores the last snapshot | May lose recent work. Use it last |
Take over
When a site needs a password, 2FA, a CAPTCHA, or a payment confirmation, take over the Bot's screen, do it yourself, then choose "I'm done." Never paste credentials into chat.
Connectors vs. computer use
- Connectors (plugins) are added from Connect apps in the sidebar. They are account-wide and preferred over browsing because they are more reliable. The documented example is the X plugin (DMs, bookmarks, timeline, likes); public X content is readable without it. No full connector catalogue is published.
- Computer use covers everything else: the Bot drives the browser and terminal like a person. Some sites block automation and sessions expire. That is expected, not a bug.
4. Working with Bots
| Capability | How |
|---|---|
| Message a Bot | Type, dictate (Cmd/Ctrl+D), voice chat; Bots can reply with voice memos |
| Reference a skill | /skill-name |
| Mention | @ a Bot, group, routine, or connector |
| Attach files | Up to 6 at a time on desktop; 25 MB per document/image/audio, 200 MB per video. PDF, Office, CSV, JSON, YAML, code, HTML, email, notebooks |
| Drafts | Bots prepare email and Slack drafts that you send (or discard) |
| Stop | "Stop now" halts work. It does not undo actions already taken |
| Group chats | 2-6 Bots, @everyone. Approval requests, secret requests, and drafts don't appear in groups |
| Handoffs | A Bot can message another Bot asynchronously ("Messaging Between Bots" is on by default) |
| Coding work | A Bot can delegate to a Cursor Cloud Agent; results come back as attachments |
| Duplicate | Copies profile, settings, skills, routines. Does not copy history, memory, or attachments |
| Share | Public or team-only template link. Recipients get a copy of the configuration only |
Memory is not authoritative. For consequential decisions, ask the Bot to check the current source rather than trust what it remembers.
Tag @bot on X
Post or reply with @bot, and your main Bot picks up the task. @bot confirms with a short public reply; the work and results stay in the app. The Bot receives your post, the post you replied to, and quoted posts (including still photos). Tagged requests use your weekly pool.
Setup: connect your X account on grok.com (Settings → Account → Connect next to 𝕏), on the same Grok account that has Grok Bot access, and own at least one Bot.
@bot stays silent when any of these is true:
- Your X account is based in Australia, the UK, the EU, Iceland, Liechtenstein, or Norway. This uses X's country on record, so a VPN doesn't matter.
- The post also tags @grok.
- The post, its parent, or a quoted post contains video or a GIF.
- The post fails moderation.
- Your weekly usage is exhausted.
- You replied inside an @bot thread without tagging @bot yourself.
5. Skills, routines, and automations
| Skill | Routine | |
|---|---|---|
| What | A reusable set of instructions | A skill or task on a schedule |
| Create | Ask a Bot to save a process it just completed, or Teach a task: record a demo of up to 10 minutes (no mic audio; desktop only; gradual rollout) | Ask a Bot in natural language ("Every weekday at 8:00 AM, …"). Cron is not documented |
| Scope | One private skill library shared by all your Bots | Per Bot |
| Limits | — | ≥5 minutes between runs, up to 50 routines per Bot, last 20 run records kept; may auto-pause after a long absence |
| Triggers | — | Schedules, or events through Cursor account integrations (e.g. a Slack message, a GitHub notification). Webhooks are not documented |
Routine checklist when one doesn't run: is it disabled? Is the time zone right? Was the owning Bot deleted? Is the plugin's auth still valid? Is usage paused? Did the trigger rule match? Then check the run history.
6. Approvals and Auto Review
Bots pause for your approval on consequential actions: Allow once, Always allow, or Deny. Requests raised by routines, triggers, or other Bots expire after about 10 minutes.
Auto Review is a model-based check of shell commands, plugin calls, computer use, automation writes, and delegation. It can allow, ask, or deny.
- It has "Ask first" and "Allow automatically" rules. Ask first wins when they conflict.
- It does not review memory writes or most settings changes.
- Personal rules are stored per desktop.
Execution on your local computer (running things on your own machine, not the cloud one) is a separate setting: Ask every time (personal default), Always allow (team default), or Never allow. The docs recommend Never allow.
7. Teams and Enterprise
Access:
- Teams: Grok Bot is on by default with no off switch. It is off on Legacy Privacy Mode and legacy request-based plans.
- Enterprise: an admin enables it and scopes it with Manage Group Access.
Team Bots are one shared Bot with team memory plus private notes per person. Setup cards cover plugins, secrets (up to 25), skills, and files (.txt/.md/.csv/.json/.yaml, 256K characters each). Each Team Bot can have its own Slack app. Routines stay personal, and usage is charged to each teammate's own allowance.
| Control | Default | Plan |
|---|---|---|
| Cloud Agents delegation | On | Teams + Enterprise |
| Agent Email | Off | Teams + Enterprise |
| Public template sharing | Off on Enterprise | Teams + Enterprise |
| Connector policy (inherits Cursor's) | — | Teams + Enterprise |
| Team Rules | — | Teams + Enterprise |
| MCP allowlist | — | Enterprise |
| Network Controls (Allow All / Defaults + Team Allowlist / Team Allowlist Only) | Allow All | Enterprise |
| Allow Local Egress Routing | On | Enterprise |
| Allow Sudo on Bot Computers | On | Enterprise |
| Enforce Auto-review | Off | Enterprise |
| Team Setup install scripts | — | Enterprise |
| Team Secrets (100 per team, 32 KB each, 96 KB total; dashboard only) | — | Enterprise |
| Terminate inactive computers (30 days) | Off | Enterprise |
| Action Recording (OTel export) / conversation export / audit logs | Off | Enterprise |
Admins cannot push connectors to members.
Identity
- No separate Grok Bot IdP app: it rides Cursor's SAML 2.0 SSO (Okta, Entra, Google Workspace, OneLogin).
- SCIM 2.0 (with automatic deprovisioning) is Enterprise only.
- The cloud computer can't run Okta FastPass or device-trust agents. Admins need a Linux / "Other Desktop" policy exception.
Networks and proxies
- Private networks. Either a member routes egress through their own desktop (Settings → Computer → Network), or Enterprise installs a networking client via Team Setup. Tailscale is the tested example; Cloudflare Tunnel is documented but unvalidated.
- No dedicated egress IPs. Computers use shared static IPs, so you can't IP-allowlist "your" Bots.
- Corporate proxies must allow
*.cursor.sh,*.cursor-cdn.com,*.cursorapi.com,*.cursorvm.com, the nested*.*.cursorvm.com(required),cursor.com, anddownloads.cursor.com. They must also bypass TLS inspection and response buffering on every gateway profile. Verify withcurl -v https://api2.cursor.sh(expected issuer: Amazon RSA).
Deployment and data
- Cloud-hosted only. No on-prem, no in-perimeter, no bring-your-own-image, and the computer image can't be pinned. MDM reaches the desktop apps, not the hosted computers.
- Computers currently run in the US (not Cursor's formal US-only data-residency program). Under the DPA, data is deleted or returned within 30 days after the service ends.
- ZDR follows Cursor's provider agreements, but abuse classifiers may store flagged data.
- Certifications: ISO/IEC 27001 and 42001 (trust.cursor.com). SOC 2 isn't mentioned in the Grok Bot docs.
8. Developer and integration surface
There is no public API, SDK, CLI, or webhook to drive Grok Bot programmatically. What exists:
| Surface | What it does |
|---|---|
| Custom MCP plugins | Two types: Remote HTTPS (Bot credential or per-user OAuth) and Command (runs on the cloud computer). Documented in the Team Bots plugin table. Enterprise can enforce an MCP allowlist |
| Admin API | Enablement, network policy, Team Rules, setup scripts |
Organization API (admin:* scope) |
Recreate, terminate, or delete Bot computers |
| OpenTelemetry export | Action Recording with the tag cursor.surface=grok_bot (Enterprise) |
| Event triggers | Routines fired by Cursor integrations (Slack, GitHub) |
| Cursor Cloud Agents | A Bot delegates coding work; results return as attachments |
Exposing your own service to a Bot via MCP
The closest documented recipe is xAI's custom-connector tunneling guide (written for Grok connectors). It shows how to put a local MCP server on a public HTTPS URL:
ngrok http 3001
# or
cloudflared tunnel --url http://localhost:3001
Rules from that page:
- Localhost and private IPs are rejected, so the URL must be public HTTPS.
- Cloudflare quick tunnels don't support SSE; use Streamable HTTP transport.
For anything long-lived, deploy the MCP server properly (see cloudflare/ or vercel/) rather than leaving a tunnel open.
codeAmani notes
Security
- The shared computer is the threat model. Any login, cookie, CLI credential, or file on it is reachable by every Bot you own. Never sign a Bot's browser into an account (bank, M-Pesa portal, Stripe dashboard, registrar) that you wouldn't hand to all of your Bots, including one reading untrusted web pages. For real isolation, use a separate Cursor user.
- Secrets never go in chat. Use take over for passwords and 2FA. Team Secrets (Enterprise) are dashboard-only. Command-type MCP servers on Team Bots expose their command line and arguments to every teammate, so never put a credential in an MCP command's args. Keep codeAmani keys in Hazina, not on the Bot computer.
- Blocking a plugin doesn't block the website. The service stays reachable by computer use. Only Enterprise Network Controls close that path. "Dedicated data loss prevention hooks are not available."
- Prompt injection is mitigated, not solved. Outside content is marked untrusted, Auto Review checks actions against your request, and network policy and approvals don't depend on model judgment. The docs say these "reduce, but do not eliminate, risk". Keep consequential actions (sending, paying, deleting) behind Ask first.
- Set local execution to Never allow, as the docs recommend. On a Teams plan the default is Always allow. Change it.
- "Stop now" doesn't roll back. For anything with side effects, approve step by step instead of stopping after the fact.
- Deleting a Bot leaves its files and sessions on the shared computer. Clean
/workspaceand sign out of sites yourself.
Where it fits for codeAmani
- Use it for operations, not product. Good fits: inbox triage with drafted replies, competitor and docs research, weekly routines ("every Monday, check our guides' official changelogs and list what moved"), and filling web forms on sites with no API. It is a teammate for codeAmani staff, not something we embed in a customer app.
- Customer-facing bots are
grok-chatbot/. Grok Bot has no API, so it cannot serve your users on WhatsApp. Anything a Kenyan customer talks to is built on the Grok API (or Claude) pergrok-chatbot/, with M-Pesa through Daraja. - Plan math for this team. A SuperGrok Heavy link equals the Ultra tier, and a Cursor Ultra plan is the same tier. Plans don't stack, so holding both adds no extra Grok Bot usage. Before linking, pick the Cursor account deliberately: the link is permanent. Under The X Subscription, Grok Bot shares one weekly pool with Grok and Cursor, so heavy Bot routines compete with coding time.
- @bot on X is region-locked (not the UK/EU/AU, among others). Don't build a workflow that depends on it for team members based there.
- KDPA / customer data. Bots run in the US on Cursor's cloud. Don't load customer PII (phone numbers, M-Pesa references) onto the shared computer for Kenya-targeted projects unless that transfer is covered by your data-protection basis.
Troubleshooting
| Symptom | Fix |
|---|---|
| Sign-in doesn't complete | Keep the app open, return to it manually, and use the org SSO account |
| "Legacy Privacy Mode" error | Switch the Cursor data setting (cursor.com/dashboard/settings?openPrivacy=true) |
| Setup or image update hangs | Wait, retry, restart, then Settings → Computer → Update Bot's Computer |
| Computer unreachable | Retry → restart → Recover → Update → (mobile) Settings → Bot → Bot Computer → Reset Computer. Reset last, since it can lose unsynced work |
| Bot looks stuck | Look for a pending approval, login, CAPTCHA, or secret request; redirect it or send Stop now. One computer-use task per screen |
| Usage exhausted | Settings → Usage & Billing; enable on-demand or wait for the weekly reset |
| Site keeps asking for login | Take over and sign in yourself |
| Plugin won't authenticate | Connect apps → Your plugins → re-auth; remove and re-add if revoked |
| Attachment unreadable | Check 25 MB / 200 MB limits, the 6-file limit, encryption, upload completion, file type |
| Routine didn't run | Disabled? Time zone? Owning Bot deleted? Plugin auth? Usage paused? Trigger rule? Then run history |
| Approval keeps blocking | An Ask first rule takes precedence. Review Auto-review rules |
| Local work refused | Check Execution on Local Computer |
| @bot silent on X | Region, video/GIF, @grok also tagged, moderation, or usage exhausted |
| Computer setup fails on a corporate network | Nested *.*.cursorvm.com not allowed, or TLS inspection active. curl -v https://api2.cursor.sh should show issuer Amazon RSA |
| SuperGrok link not reflected | Allow up to 24 h; retry at cursor.com/bot/onboarding |
Limitations (as documented)
- Some sites block automation, sessions expire, and some steps need a human.
- One computer-use task per Bot screen at a time.
- No model picker; model allowlist enforcement isn't guaranteed.
- Mobile can't edit or test routines or use Teach a task; the Android share sheet accepts text only.
- No dedicated egress IPs, no DLP hooks, no on-prem deployment, no image pinning, no per-org retention policy.
- Hardware security keys aren't supported on Linux.
- @bot on X is region-restricted.
Official docs: