Grok API for VS Code extensions
Connect Grok 4.5 to Cline, Continue, Roo Code, or Kilo Code through the same OpenAI-compatible GrokAPI endpoint.
Before you begin
Create a GrokAPI account and project key. Use the same base URL and model ID in every extension, replacing only the placeholder API key.
Create an accountCline
Cline includes an OpenAI Compatible provider that is configured from the extension settings.
- 1Install Cline from the VS Code Marketplace and open its settings.
- 2Choose OpenAI Compatible as the API Provider.
- 3Enter the base URL, API key, and model ID shown below.
- 4Save the settings and start a new task.
Configuration
API Provider: OpenAI Compatible
Base URL: https://api.llm-gate.tech/v1
API Key: sk-grok-YOUR_API_KEY
Model ID: grok-4.5Continue
Continue stores custom model definitions in config.yaml.
- 1Install Continue and open its configuration.
- 2Add the model block below to config.yaml.
- 3Replace the placeholder API key and save the file.
- 4Select Grok 4.5 in the model picker.
config.yaml
name: GrokAPI
version: 0.0.1
schema: v1
models:
- name: Grok 4.5
provider: openai
model: grok-4.5
apiBase: https://api.llm-gate.tech/v1
apiKey: sk-grok-YOUR_API_KEY
roles:
- chat
- edit
- applyRoo Code
Existing Roo Code installations can connect through the OpenAI Compatible provider.
- 1Open Roo Code settings and select OpenAI Compatible.
- 2Enter the GrokAPI base URL and API key.
- 3Set the model ID to grok-4.5.
- 4Save the configuration.
Configuration
API Provider: OpenAI Compatible
Base URL: https://api.llm-gate.tech/v1
API Key: sk-grok-YOUR_API_KEY
Model ID: grok-4.5Kilo Code
Kilo Code supports custom OpenAI-compatible providers with their own endpoint and model list.
- 1Install Kilo Code and open Settings.
- 2Go to Providers and add a custom provider.
- 3Choose OpenAI Compatible and enter the values below.
- 4Save the provider and select Grok 4.5.
Configuration
Provider: OpenAI Compatible
Base URL: https://api.llm-gate.tech/v1
API Key: sk-grok-YOUR_API_KEY
Model ID: grok-4.5
Display name: Grok 4.5