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

# Grok Build 配置

### **一. 安装** Grok

#### **1.window安装** Grok

打开 PowerShell：按下 `Win+R`，输入 `powershell`，然后按回车。

在 PowerShell 中执行：

```text theme={null}
irm https://x.ai/cli/install.ps1 | iex
```

这个命令会从 npm 官方仓库下载并安装最新版本的 Grok。

验证安装

```text theme={null}
grok --version
```

如果可以正常输出版本号，说明 Grok 已安装成功。

#### **2.Mac 安装** Grok

打开“终端”：按下 `Command+Space` 打开聚焦搜索，输入“终端”或 `Terminal`，然后按回车。

在终端中执行：

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

验证安装

```text theme={null}
grok --version
```

如果可以正常输出版本号，说明 Grok 已安装成功。

#### **3.Linux 安装** Grok

打开终端，在终端中执行：

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

验证安装

```text theme={null}
grok --version
```

如果可以正常输出版本号，说明 Grok 已安装成功。

***

### **第二步：配置  CC GUI 中转站信息**

访问密钥管理页面：[https://fufei.mossx.ai/keys](https://fufei.mossx.ai/keys)

点击 密钥右侧的 使用教程：

<Frame>
  <img src="https://mintcdn.com/docs-api/6NgVxoDfugWH9dMI/images/ScreenShot_2026-08-21_130312_429.png?fit=max&auto=format&n=6NgVxoDfugWH9dMI&q=85&s=5d559e5cdd343d8d6ed974db4211f01f" alt="Screen Shot 2026 08 21 130312 429" width="2784" height="200" data-path="images/ScreenShot_2026-08-21_130312_429.png" />
</Frame>

根据这里的教程，选择对应的平台 会有对应的教程

完全更换 下面文件的内容，即可配置完成（其他配置也根据教程来）

* \~/.grok/config.toml

<Frame>
  <img src="https://mintcdn.com/docs-api/6NgVxoDfugWH9dMI/images/ScreenShot_2026-08-21_130754_625.png?fit=max&auto=format&n=6NgVxoDfugWH9dMI&q=85&s=748e600c47018c53e94174becaa147ff" alt="Screen Shot 2026 08 21 130754 625" title="Screen Shot 2026 08 21 130754 625" style={{ width:"61%" }} width="1810" height="1680" data-path="images/ScreenShot_2026-08-21_130754_625.png" />
</Frame>

***

#### 使用Grok CLI

上面配置完成之后，直接终端启动claude，即可进行对话

<Frame>
  <img src="https://mintcdn.com/docs-api/6NgVxoDfugWH9dMI/images/ScreenShot_2026-08-21_130834_133.png?fit=max&auto=format&n=6NgVxoDfugWH9dMI&q=85&s=b31360c75bcdda9799f00d2a0d112426" alt="Screen Shot 2026 08 21 130834 133" width="790" height="176" data-path="images/ScreenShot_2026-08-21_130834_133.png" />
</Frame>

并且可以访问：[https://fufei.mossx.ai/usage](https://fufei.mossx.ai/usage)

查看自己刚刚请求的扣费情况

<Frame>
  <img src="https://mintcdn.com/docs-api/PwEYLgoL0kxVdcuq/images/image-10.png?fit=max&auto=format&n=PwEYLgoL0kxVdcuq&q=85&s=5f0843ea30bfc5304f12c820fb9ce271" alt="Image" title="Image" style={{ width:"72%" }} width="1658" height="956" data-path="images/image-10.png" />
</Frame>
