在 Kilo Code 中配置 Grok
更新于:
在 Kilo Code 中接入 Grok:通过 Grok API Dev 配置不到 5 分钟。
开始之前
先创建账号并生成 API 密钥——下面的配置从控制台中的密钥开始。
创建账号从 VS Code Marketplace 安装 Kilo 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
打开 Settings,进入 Providers 并添加 custom provider。
Popular providers
Anthropic
Direct access to Claude models, including Pro and Max
DeepSeek
DeepSeek models for reasoning and coding tasks
OpenAI
GPT and Codex models with API key or ChatGPT login
Gemini models for fast, structured responses
OpenRouter
Access all supported models from one provider
Vercel AI Gateway
Unified access to AI models with smart routing
Custom providerCUSTOM
Add a custom provider by base URL.
选择 OpenAI Compatible,填写 base URL 和密钥,然后保存服务商并选择 Grok 4.5。
Display name
Provider API
Base URL
API key
Optional. Leave empty if you manage auth via headers.
开始第一个任务。
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)