在 Cline 中配置 Grok
更新于:
在 Cline 中接入 Grok:通过 Grok API Dev 配置不到 5 分钟。
开始之前
先创建账号并生成 API 密钥——下面的配置从控制台中的密钥开始。
创建账号1
从 VS Code 市场安装 ↗从 VS Code Marketplace 安装 Cline 并打开设置。
Cline
Clinecline.bot|↓ 4,909,518|(307)
Autonomous coding agent right in your IDE, capable of creating/editing files, running commands, using the browser, and more with your permission every step of the way.
DisableUninstallAuto Update
2
在 API Provider 中选择 OpenAI Compatible,然后填写 base URL、API 密钥和 Model ID。
CLINE
Settings
DoneAPI Configuration
API Provider
OpenAI Compatible
Base URL
https://api.llm-gate.tech/v1
OpenAI Compatible API Key
••••••••••••••••••••••
This key is stored locally and only used to make API requests from this extension.
Model ID
grok-4.5
Custom HeadersAdd Header
3
保存设置并创建新任务。
CLINE
What can I do for you?
Auto-approve: Read, Commands, MCP
Type your task here…
Type @ for context, / for slash command…
openai-compat:grok-4.5PlanAct