跳转到内容

Grok Build

启动 CLIProxyAPI 服务器,然后编辑 ~/.grok/auth.json 文件。

auth.json:

json
{
  "xai::api_key": {
    "key": "<your_api_key>",
    "auth_mode": "api_key",
    "create_time": "2026-08-04T12:00:00Z",
    "user_id": "",
    "email": null,
    "coding_data_retention_opt_out": true
  }
}

然后在 ~/.grok/config.toml 文件中添加以下内容:

config.toml:

toml
[features]
remote_fetch = true

[endpoints]
models_base_url = "http://127.0.0.1:8317/v1"
models_list_url = "http://127.0.0.1:8317/v1/models"

基于 MIT 协议发布