Grok API

在 Kilo Code 中配置 Grok

更新于:

在 Kilo Code 中接入 Grok:通过 Grok API Dev 配置不到 5 分钟。

开始之前

先创建账号并生成 API 密钥——下面的配置从控制台中的密钥开始。

创建账号
1

从 VS Code Marketplace 安装 Kilo Code。

从 VS Code 市场安装

Kilo Code: AI Coding Agent, Copilot, and Autocomplete

Kilo Codekilocode.ai|1,399,331|(204)

Open Source AI coding agent that generates code from natural language, automates tasks, and runs terminal commands. Features inline autocomplete, browser automation, automated refactoring, and custom modes for planning, coding, and debugging. Supports 500+ AI models including Claude (Anthropic), Gem

DisableUninstallAuto Update
2

打开 Settings,进入 Providers 并添加 custom provider。

Popular providers

Anthropic

Direct access to Claude models, including Pro and Max

+ Connect

DeepSeek

DeepSeek models for reasoning and coding tasks

+ Connect

OpenAI

GPT and Codex models with API key or ChatGPT login

+ Connect

Google

Gemini models for fast, structured responses

+ Connect

OpenRouter

Access all supported models from one provider

+ Connect

Vercel AI Gateway

Unified access to AI models with smart routing

+ Connect

Custom providerCUSTOM

Add a custom provider by base URL.

+ Connect
Show more providers
3

选择 OpenAI Compatible,填写 base URL 和密钥,然后保存服务商并选择 Grok 4.5。

Display name

LLM Gate

Provider API

OpenAI Compatible

Base URL

https://api.llm-gate.tech/v1

API key

••••••••••••••••••••••••••••••••••••••••••••••

Optional. Leave empty if you manage auth via headers.

4

开始第一个任务。

KILO CODE

Welcome to Kilo

Choose how you want to work

REVIEW FIRST

Kilo pauses and shows you its plan as it works.

  • Asks before editing files or running commands.
  • Shows full conversation details, including reasoning.

HIGH AUTONOMY

Fewer interruptions, streamlined interface.

  • Edits files and runs commands in the workspace without asking.
  • Details stay collapsed until you expand them.

You can change these options anytime in Settings.

New Worktree

Type a message, @ to mention files... (Enter to send, Shift+Enter for new line)

CodeAuto Free
Kilo Code 文档

下一步