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

# Grok

> Detect and use local grok. The plugin only detects. It does not install for you.

Grok uses local `grok`. Credentials and models stay in Grok’s own config (usually `~/.grok/`).

Open **Settings → Provider management → CLI** and confirm Grok CLI shows **Installed**. The plugin **does not** install it for you, and it does not edit `config.toml`.

<img src="https://mintcdn.com/mossx-docs/kz4nt5KFSKzkAZwe/images/jetbrains/provider-cli.png?fit=max&auto=format&n=kz4nt5KFSKzkAZwe&q=85&s=eab9bf7003e5c4031402aa29cfb17c5a" alt="CLI detection page" width="100%" data-path="images/jetbrains/provider-cli.png" />

## Install

```bash theme={null}
curl -fsSL https://x.ai/cli/install.sh | bash
grok --version
```

Grok has no npm release. On Windows, run this command in WSL or Git Bash.

Docs: [https://x.ai/cli](https://x.ai/cli)

After install, go back to the CLI page and click **Detect again**. If the command is not found, set `GROK_BIN` / `GROK_PATH` / `GROK_CLI_PATH`, or add `~/.grok/bin` to the system `PATH`.

## Capability differences

Compared with Claude Code:

* No plan mode
* MCP / Skills / some Settings pages are centered on Claude Code
* Stop ends the `grok` child process
* History is isolated by runtime
* Prompt enhancer and Commit AI can use a one-shot CLI question

## If detection fails

See [Detect and install](/en/jetbrains/providers/cli).

## Next steps

* [Provider overview](/en/jetbrains/providers/overview)
* [Send the first message](/en/jetbrains/start/first-task)
