一、安装 Grok CLI
使用 npm 全局安装 Grok CLI:二、环境配置
设置 API 基础 URL 和 API Key:三、启动使用
使用指定模型启动 Grok CLI:
注意事项
重要提示:目前 Grok CLI 对 thinking 模型的兼容性有限,thinking 内容会被完整显示。建议:
- 等待 Grok CLI 完善对 thinking 模型的兼容
- 或使用非 thinking 版本的模型
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用 Grok CLI 接入智谱 GLM 模型的快速指南
npm install -g @vibe-kit/grok-cli
export GROK_BASE_URL="https://open.bigmodel.cn/api/coding/paas/v4"
export GROK_API_KEY="YOUR_API_KEY"
grok --model glm-4.7
重要提示:目前 Grok CLI 对 thinking 模型的兼容性有限,thinking 内容会被完整显示。建议:
- 等待 Grok CLI 完善对 thinking 模型的兼容
- 或使用非 thinking 版本的模型
Was this page helpful?