在 Continue 中配置 Grok
更新于:
在 Continue 中接入 Grok:通过 Grok API Dev 配置不到 5 分钟。
开始之前
先创建账号并生成 API 密钥——下面的配置从控制台中的密钥开始。
创建账号1
从 VS Code 市场安装 ↗安装 Continue 并打开配置。
Continue - open-source AI code agent
Continuecontinue.dev|↓ 3,869,096|(178)
The leading open-source AI code agent
Switch to Pre-Release VersionDisableUninstallAuto Update
2
进入 Configs 区域,打开 Main Config 进行编辑。
CONTINUE
Configs
Main Config
3
将下方模型配置添加到 config.yaml,替换占位 API 密钥并保存文件。
config.yaml
name: Main Config
version: 1.0.0
schema: v1
models:
- name: Grok 4.5
provider: openai
model: grok-4.5
apiBase: https://api.llm-gate.tech/v1
apiKey: sk-lg-YOUR_API_KEY
roles:
- chat
- edit
- apply4
在模型列表中选择 Grok 4.5。
CONTINUE
Main Config
Ask anything, '@' to add context
AgentGrok 4.5
Last Session