> ## Documentation Index
> Fetch the complete documentation index at: https://ade-app.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Grok

> Run xAI's Grok CLI in DAEX as a chat or in a terminal, with your Grok login or an xAI API key.

Grok is xAI's coding agent CLI. DAEX runs its own pinned copy for each machine, downloaded the first time it is needed, with Grok's self-update turned off, and drives chats over the Agent Client Protocol (ACP).

![The Grok page in DAEX Settings › Providers](https://mintcdn.com/ade-ac1c6011/X0fzcdMoI2OYgIpA/media/current/provider-grok.jpg?fit=max\&auto=format\&n=X0fzcdMoI2OYgIpA\&q=85\&s=040fc9ed2b0aa24c90ab0dceae85498a)

Grok in Settings › Providers: its sign-in, status and models on this machine.

## Connect

**1. Open Settings › Providers › Grok**

Pick the machine at the top. An existing `grok login` on that machine (in `GROK_HOME`, default `~/.grok`) is reused.

**2. Sign in or add a key**

Choose **Sign in** to run `grok login` (a device code) with DAEX's copy, or add an xAI API key (`XAI_API_KEY`) in the **API keys** panel. A login wins over the key.

* **DAEX Cloud.** Sign-ins from your computers reach your cloud computers. You can also save an xAI API key for DAEX Cloud.

## Chat and CLI

| Surface | How DAEX runs it | What DAEX sees |
| - | - | - |
| **Chat** | `grok agent stdio` on DAEX's shared ACP host. | Typed events: turns, tool calls, subagents, approvals, compaction, usage and cost. |
| **CLI** | The `grok` program in a DAEX terminal. | The screen only. Turn status is read from output and quiet time. |

## Permission modes

| Mode | What it does | Chat | CLI |
| - | - | :-: | :-: |
| **Plan** | Read-only planning. In chats Grok runs in its asking mode with DAEX's plan guidance. | Yes | Yes |
| **Ask** | Asks before every write and command. | Yes | Yes |
| **Accept edits** | Edits run without asking; commands still ask. | Yes | Yes |
| **Auto** | Grok judges which actions are safe and asks for the rest. | Yes | Yes |
| **Full access** | Nothing prompts. In chats DAEX approves each request for you and records it in the transcript. | Yes | Yes |

Grok can read permission rules from your Claude Code settings. DAEX turns that off for its Grok sessions, so a Claude `defaultMode` never quietly loosens Grok, and it posts a notice if Grok writes or runs something without asking in an asking mode. See [Permissions](https://ade-app.dev/docs/configuration/permissions.md).

## Models

The picker lists the models Grok reports for your account, with reasoning effort. Grok can also run on another source through a [custom provider](https://ade-app.dev/docs/configuration/ai-providers.md#custom-providers).

## Known limits

* Grok chats take images on recent models; older ones (such as grok-4.5) drop the image, and the chat says so. Audio is not supported.

## Troubleshooting

> [accordion] Grok shows as not signed in
>
> Choose **Sign in** again and approve the device code, or check `XAI_API_KEY`. Then choose **Refresh**.

> [accordion] A notice says the session ran unsupervised
>
> Grok wrote or ran something without asking while in an asking mode. That can also come from an "always allow" you gave in Grok's own CLI for this project. Check the transcript, and switch to Plan or Ask if needed.

> [accordion] Grok ignored an image
>
> The model you picked does not take images. Switch to a newer Grok model.

> [card] [AI providers](https://ade-app.dev/docs/configuration/ai-providers.md)
>
> Sign-ins, API keys, custom providers and free models.

> [card] [Agents and models](https://ade-app.dev/docs/concepts/agents-and-models.md)
>
> All 13 agents, chats vs CLI sessions, and the model picker.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.