Grok API

Grok API for VS Code extensions

Updated:

Grok API connects to VS Code through an extension — Cline, Continue, Roo Code, or Kilo Code. All four call Grok over an OpenAI-compatible API, so one GrokAPI key is enough: Grok 4.5 and Grok 4.6 become available inside the editor, billed per token, with no subscription and at half the official rates.

Before you start

Create an account and issue an API key — the setup below starts from the key in your dashboard.

Create an account

Three values to connect

The same three values work in all four extensions.

FieldValueWhere it comes from
Base URLhttps://api.llm-gate.tech/v1Fixed.
API keysk-lg-…Issued in your GrokAPI dashboard.
Model IDgrok-4.6Any current ID: grok-4.5 or grok-4.6.

Which extension to choose

ExtensionInstallsWhat it is good at
Cline4,909,518The largest install base and the shortest path: the OpenAI Compatible provider is picked in the extension UI, with nothing to edit by hand. The default choice for a first install.
Continue3,869,096The configuration is a config.yaml file, so it can be versioned with the project and give the chat, edit, and apply roles different models. Pick it when a whole team needs identical settings.
Roo Code1,907,585A Cline fork with per-task agent behaviour. Development stopped on May 15 and its own docs point to ZooCode and Cline, so it only makes sense on installs that already run.
Kilo Code1,399,331The endpoint is saved as a named provider you can switch between in one click — handy when Grok sits next to other models or several keys.

Open a setup guide

What's next