# Connect Grok Bot and answer agents from your phone

> Turn on Remote control in Settings › Account, connect Grok or Grok Bot to cmdbrief.com/mcp/remote over OAuth, answer Needs you from your phone, send files, and configure push webhooks.

- **Category:** Setup and safety
- **Updated:** 2026-12-01
- **Reading time:** 7 min
- **Canonical page:** https://cmdbrief.com/guides/grok-bot-remote-control

## What you get

- **Grok / Grok Bot (phone or web):** Custom OAuth connector at `cmdbrief.com/mcp/remote`; Checks status, reads & answers Needs you; Messages leads, sends plans & files
- **Your computer (Mac, Linux, Windows):** Remote control switch (off by default); Per-connection workspace permissions; CLI sign-ins & secrets stay local
- **Grok / Grok Bot (phone or web) → Your computer (Mac, Linux, Windows):** OAuth MCP calls & answers
- **Your computer (Mac, Linux, Windows) → Grok / Grok Bot (phone or web):** live status & webhook pushes
- **Connection:** Relayed live through CmdBrief Cloud; nothing cached when your computer is offline

**Remote control** lets you check crew status, answer questions and permission prompts, message leads, and send files from **Grok** (`grok.com`), the **Grok Bot** apps (including on your phone), or any OAuth 2.1 MCP client. It is **off by default** and requires an active CmdBrief subscription ([Pricing](https://cmdbrief.com/pricing), [Account](https://cmdbrief.com/account)).

> **Tip:** Grok / Grok Bot here means xAI’s chat app acting as a remote over MCP—separate from the local [Grok CLI](https://cmdbrief.com/guides/grok-cli) coding agent that runs inside CmdBrief panes.

## Enable Remote control and connect Grok Bot

**Step 1 of 4 · You do this** (CmdBrief Settings › Account › Chat apps, and Grok / Grok Bot)

1. Open **Settings › Account › Chat apps** in CmdBrief and click **Set up Grok Bot** (this turns **Remote control** on and walks through four steps: *Connect*, *This computer*, *Updates*, and *Try it*).
2. Copy the custom connector address: `https://cmdbrief.com/mcp/remote`.
3. In **Grok** (`grok.com`) or the **Grok Bot** app (desktop or phone), add a custom MCP connector with that URL and complete OAuth 2.1 sign-in on CmdBrief’s consent page (give the connection a clear name—you can connect more than one account).
4. Back in CmdBrief, choose which workspaces this connection may reach: click **Allow every workspace** on the toast or open the connection’s **Workspaces** picker in **Settings › Account › Chat apps**. Since CmdBrief 0.5.102, every new connection reaches **no workspaces** until you explicitly pick them.

With multiple computers signed in to your CmdBrief account and Remote control enabled, CmdBrief Cloud merges status and Needs-you items across all of them (tagging each item with its computer name) and routes every answer to the exact computer holding that request.

**Check it worked**

| Where | Run or do | Pass |
| --- | --- | --- |
| Grok / Grok Bot | Ask: “Check my CmdBrief status and anything that needs me” | Grok calls `cmdbrief_status` and `cmdbrief_needs_you` and lists the workspaces you granted this connection. |
| CmdBrief | Open **Settings › Account › Chat apps** | Your connection appears with its name, last-used timestamp, workspace scope, **Rename**, **Updates**, **Workspaces**, and **Disconnect**. |

## What tools Grok Bot can call (and optional switches)

**Step 2 of 4 · An agent can do this** (Over https://cmdbrief.com/mcp/remote)

| MCP tool | What it does | Setting required |
| --- | --- | --- |
| `cmdbrief_status` | Live status of workspaces, leads, crew members, models, and step progress | Remote control on |
| `cmdbrief_needs_you` | Lists open questions, permissions, help requests, crew/project/style proposals, limit reviews, and host asks | Remote control on |
| `cmdbrief_answer` | Answers one open request by option label and/or your text (on a permission prompt, text denies with guidance) | Remote control on |
| `cmdbrief_lead_messages` | Reads a lead’s recent conversation, steps, and queued messages | Remote control on |
| `cmdbrief_tell_lead` | Messages a Standard lead (`steer` default, `queue`, or `interrupt`; wakes an exited or cold lead) | Remote control on |
| `cmdbrief_plan_send` | Sends a structured project plan to a workspace or new project | Controlled by **Plans from chat apps** |
| `cmdbrief_send_files` | Creates a 30-minute private upload link for sending files into the project folder | Remote control on |
| `cmdbrief_pictures` | Returns scaled-down images attached to a question (up to 8 images, 1280 px max side, 2 MB total) | **Send question pictures** (off by default) |
| `cmdbrief_set_model` | Changes a lead or crew member’s model or effort (restarts session with conversation kept) | **Change models from chat apps** (off by default) |
| `cmdbrief_lead_updates` / `cmdbrief_bots` | Routes one project’s push updates to a named bot webhook | Push webhook configured |

*Every remote answer and message triggers a local “From <chat app>” toast and logs in notification history. The chat app never approves permissions on its own—only your explicit reply in the chat does.*

**Sending files from your phone (`cmdbrief_send_files`)**: Ask Grok Bot to send screenshots, PDFs, or text files to a lead. CmdBrief opens a temporary drop and returns a private link valid for **30 minutes**. Uploaded chunks relay straight to your computer without being stored in the cloud—up to **10 files**, **20 MB each / 50 MB total** (PNG, JPEG, WebP, GIF, HEIC, PDF, TXT, MD, CSV, JSON)—land in `assets/` (or a named project folder, never overwriting existing files), and arrive as one message to the lead.

**Plans from chat apps**: In **Settings › Account**, **Plans from chat apps** chooses between **Start right away** (saves the plan as the project roadmap and hands it to the lead) and **Wait for my confirm** (holds it in CmdBrief until you click Confirm and Start lead, matching the [ChatGPT plugin](https://cmdbrief.com/guides/chatgpt-project-plans)).

## Set up push webhooks and “Only when I’m away”

**Step 3 of 4 · You do this** (Settings › Account › Chat apps › connection › Updates)

Instead of asking Grok Bot to poll on a timer, add a webhook URL (such as a Grok Bot routine webhook trigger) under the connection’s **Updates** sheet. Your webhook URL and Bearer key are sealed with AES-256-GCM in CmdBrief Cloud and shared across all computers on your account.

1. Open **Settings › Account › Chat apps**, click **Updates** on your connection, and paste your **Main webhook** URL and optional Bearer key.
2. Optional: under **Bots**, add project-specific bot webhooks and map individual projects to them under **Projects on this computer**.
3. Click **Send test** to verify delivery (the last **30 posts**, their status, and any retries show in **Recent posts**).
4. Configure **Only when I’m away** (on by default) and choose your away timer (**2**, **5**, **10**, or **15 minutes** of no keyboard/mouse input, or immediately when the screen locks or display sleeps).

- **What pushes**: New Needs-you requests, lead `cmdbrief_notify_user` notes, and the final reply to any turn you started via `cmdbrief_tell_lead`. Posts batch for 4 seconds, cap at 1 post per 20 seconds and 30/hour per webhook, and retry twice (30 s, 2 min) on failure.
- **12-hour thread**: Sending a message via `cmdbrief_tell_lead` opens an in-memory 12-hour thread with that lead—its notes push straight to that chat app connection even while you sit at your desk, while requests still wait if you are active locally.
- **Presence on headless servers**: A headless Linux server cannot detect local keyboard/mouse activity, so it follows presence reported by your paired desktop computers—showing a 45-second “Going to Grok Bot” countdown card with **Answer here** on active paired computers before posting. (“Only when I’m away” is marked Coming soon on Windows.)

## Enable Remote control on headless Linux and know what stays local

**Step 4 of 4 · You do this** (Your own SSH session on Linux)

On a headless Linux server running `cmdbrief serve`, turn Remote control on or inspect the CmdBrief Cloud link status directly from your terminal:

**Headless Linux remote control commands**

```bash
cmdbrief remote on       # enable Remote control on this Linux host
cmdbrief remote          # verify Remote control is on and CmdBrief Cloud link is up
cmdbrief remote off      # turn Remote control off
```

Even with Remote control on, sensitive account and machine-trust boundaries stay local:

- **Agent CLI sign-ins** (`answer_here: false`): Signing in to Claude Code, Codex, or another CLI happens in CmdBrief on the computer (or via a paired computer’s Setup sheet), never through a chat app.
- **Secrets & API keys** (`answer_here: false`): When an agent requests a secret, chat apps show that a secret ask is waiting, while entering and sending the key stays in CmdBrief ([Managed SSH and secrets](https://cmdbrief.com/guides/managed-ssh-and-secrets)).
- **Approving new computers**: Approving a new computer on your CmdBrief account happens only in **Settings › Computers** or locally via `cmdbrief approve <name>`—never through Remote control.
- **Managed SSH & 1Password**: A Managed SSH signing request (`host:ssh:`) allows only single-use **Allow** or **Deny** (never “keep allowing”) and still requires 1Password confirmation on the host computer.
- **Offline behavior**: CmdBrief Cloud stores no cached status for `/mcp/remote`. When your computer is asleep or offline, reads report it is disconnected and actions are refused rather than queued.

**Check it worked**

| Where | Run or do | Pass |
| --- | --- | --- |
| Linux server | `cmdbrief remote` | Reports Remote control is on and the CmdBrief Cloud connection is up. |

## If it fails

| What it says | Fix |
| --- | --- |
| Grok Bot says the connection reaches no workspaces yet | **You:** Open **Settings › Account › Chat apps**, click **Workspaces** on that connection, and pick **All workspaces** or tick the specific folders you want it to reach. |
| Grok Bot says CmdBrief is not connected | Confirm CmdBrief (or `cmdbrief serve`) is running on the computer, **Remote control** is switched on, and your internet connection is up. Offline reads and actions are never cached or queued. |
| `cmdbrief_pictures` or `cmdbrief_set_model` is refused | **You:** Both are off by default. Turn on **Send question pictures** or **Change models from chat apps** in **Settings › Account** on that computer. |
| Push webhook posts are not arriving while you test at your Mac | Check **Only when I’m away**—while you are active at the keyboard, new requests wait until you are away. Use **Send test** in the **Updates** sheet or send a `cmdbrief_tell_lead` message (whose reply always posts). |
| A request shows `answer_here: false` in `cmdbrief_needs_you` | **You:** That item is a CLI sign-in, secret request, or terminal dialog that must be handled in CmdBrief on the computer (or from a paired desktop computer). |

## Questions

### Is Remote control turned on automatically when I install CmdBrief?

No. Every cloud feature—Remote control, Send question pictures, Change models from chat apps, ChatGPT in the cloud, and push webhooks—is off by default until you turn it on in Settings › Account.

### Can Grok Bot approve a permission prompt without asking me?

No. The connector instructions and tool contract require your explicit choice in the conversation, every action logs locally with a “From <chat app>” toast, and a newly connected chat app reaches zero workspaces until you grant them.

### What happens if I message a lead while my Mac is asleep?

For `/mcp/remote`, CmdBrief Cloud keeps no cached status and does not queue actions—reads report your Mac is offline and writes are refused. If you want leads reachable while your laptop sleeps, run them on a paired Linux server with `cmdbrief serve` and `cmdbrief remote on`.

### Can I connect two separate Grok Bot accounts or scope one bot per project?

Yes. Each OAuth connection appears separately under Settings › Account › Chat apps with its own Rename, Workspaces scope, Updates webhook, and Disconnect controls, and you can map individual projects to named Bots inside the Updates sheet.

## Primary sources

Provider terms and product behavior can change. Confirm plan, pricing, model, and permission details in the current official documentation.

- [CmdBrief MCP overview](https://cmdbrief.com/mcp)
- [CmdBrief changelog (v0.5.102)](https://cmdbrief.com/changelog)
- [Model Context Protocol authorization spec](https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization)

## Keep reading

- Workflows: [Plan projects in ChatGPT and send them to CmdBrief](https://cmdbrief.com/guides/chatgpt-project-plans)
- Setup and safety: [Set up Voice Agent with OpenAI Realtime or xAI Grok](https://cmdbrief.com/guides/voice-agent-setup)
- Setup and safety: [Run your agents on a Linux server and close your laptop](https://cmdbrief.com/guides/run-agents-on-a-linux-server)
- Setup and safety: [Managed SSH (1Password), sending keys, and ${NAME} secrets](https://cmdbrief.com/guides/managed-ssh-and-secrets)
- Workflows: [Set up Routines, Goal mode, and Autopilot](https://cmdbrief.com/guides/routines-goal-mode-and-autopilot)

---

Markdown mirror of https://cmdbrief.com/guides/grok-bot-remote-control, generated at build time from the same data the HTML page renders. Machine-readable index: https://cmdbrief.com/llms.txt
