xAI Grok
Use Grok in your coding tools
Step-by-step setup for Grok in 10 coding tools: Aider, Cline, Codex CLI, Continue, GitHub Copilot, Goose, Kilo Code, OpenCode, Roo Code and Zed. Every step comes from official docs, read on .
Grok setup guides
- Documented by AiderUse Grok in AiderAider documents xAI directly: export XAI_API_KEY and run aider with an xai/<model> name. The documented examples are Grok 3; current ids use the same xai/ prefix.api.x.ai4 steps
- Documented by ClineUse Grok in ClineCline lists xAI (Grok) as a built-in API provider: pick it in Cline settings, paste an xAI API key, and choose a Grok model.api.x.ai5 steps
- Documented by Codex CLIUse Grok in Codex CLICodex CLI has no built-in xAI provider, but its documented custom model_providers config (Responses wire API only) can point at xAI's documented Responses endpoint at https://api.x.ai/v1 with XAI_API_KEY.api.x.ai3 steps
- Documented by ContinueUse Grok in ContinueContinue has an xai provider: add a model entry with provider: xai, a Grok model id and your xAI API key in config.yaml.api.x.ai2 steps
- Documented by GitHub CopilotUse Grok in GitHub CopilotGrok 4.5, 4.6 and 4.7 (provider xAI) are GA built-in Copilot models on Pro, Pro+, Max, Business and Enterprise, available in VS Code, Visual Studio, JetBrains, Eclipse, Xcode and Copilot CLI. VS Code can also reach the xAI API directly via BYOK Custom Endpoint.api.x.ai4 steps
- Documented by GooseUse Grok in Goosegoose ships a built-in xAI provider configured with XAI_API_KEY (and optional XAI_HOST). Select it with goose configure or the Desktop Models tab, or set GOOSE_PROVIDER/GOOSE_MODEL.api.x.ai4 steps
- Documented by Kilo CodeUse Grok in Kilo CodeKilo Code supports xAI two ways: OAuth with a SuperGrok or X Premium subscription, or a pay-as-you-go xAI API key, in the VS Code extension and the CLI.api.x.ai5 steps
- Documented by OpenCodeUse Grok in OpenCodeOpenCode has a built-in xAI provider. Connect with /connect (SuperGrok subscription via device-code OAuth, or a pay-as-you-go xAI API key), then pick a Grok model with /models.api.x.ai5 steps
- Documented by Roo CodeUse Grok in Roo CodeRoo Code has a native xAI provider: choose xAI in API Provider, paste an xAI API key into the xAI API Key field, and select a Grok model.api.x.ai5 steps
- Documented by ZedUse Grok in ZedZed has a native xAI provider for the Zed Agent: enter an xAI API key in Agent Settings (or set XAI_API_KEY), and add custom Grok model ids under language_models.x_ai.api.x.ai3 steps
No verified Grok guide yet for Claude Code and Cursor. We only publish a pairing once official docs cover it.
Newsletter
New models, set up the day they ship
One email per week. New model releases, the coding tools that support them and how to wire them up.