Setup guide - Documented by Continue
Use Grok in Continue
Continue has an xai provider: add a model entry with provider: xai, a Grok model id and your xAI API key in config.yaml.
Last verified 2 steps3 official sources
Steps
- Step 1.
Get an API key from the xAI Console (https://console.x.ai/).
- Step 2.
Add an xai model to your Continue config (YAML). Replace <MODEL_ID> with a current xAI id such as grok-4.7.
YAMLname: My Config version: 0.0.1 schema: v1 models: - name: <MODEL_NAME> provider: xai model: <MODEL_ID> apiKey: <YOUR_XAI_API_KEY>
Caveats
- Continue's page uses a <MODEL_ID> placeholder and links an advanced example for grok-code-fast-1, which xAI retired on May 15, 2026 (it now redirects to grok-build-0.1). The model ids here come from docs.x.ai/developers/models.
- The JSON config format is marked deprecated in Continue's docs; use YAML.
More setup guides
Same tool, other providers
Related reading
- GPT-6 Sol vs Claude Opus 5.5 vs Grok 4.7: The September 2026 Price WarGPT-6 Sol vs Claude Opus 5.5 vs Grok 4.7 pricing: verified per-token rates, cost-per-task math and a decision guide for the September 2026 price war.
- Grok Bot's Core Primitive: Every Bot Gets a ComputerGrok Bot gives every Bot a persistent cloud computer with a browser and terminal. Why that one primitive explains routines, Bot teams, and always-on work.
- Grok Bot's Meta Controls: Oversight as a Product PrimitiveGrok Bot's meta controls make agent oversight a product primitive: approval gates, a chief-of-staff structure and escalation learning, not a settings page.
- Grok Bot Has the Right Shape: Four Primitives, Nothing ElseGrok Bot ships four primitives that compose - a text thread, its own cloud computer, a chief of staff over Bots, and show-it-once routines - and nothing else.
- Grok Bot Routines: Automations Without Automation-BuildingGrok Bot routines let you demonstrate a job once, correct it in plain language and hand the Bot the schedule. How it works and how approval gates keep it safe.
- Grok 4.6: xAI's Agent-Focused Update Matches GPT-5.6 Sol at the Same $2/$6 PriceGrok 4.6 release guide: xAI's agent-focused update matches GPT-5.6 Sol on the AA index at the same $2/$6 pricing, and runs in Cursor and OpenCode.
FAQ
How do I use Grok in Continue?
Continue has an xai provider: add a model entry with provider: xai, a Grok model id and your xAI API key in config.yaml.
Which Grok model ids work in Continue?
The official docs read for this guide list grok-4.7, grok-4.6, grok-4.5, grok-4.3 and grok-build-0.1. Requests go to https://api.x.ai/v1.
Is this an official Grok and Continue setup?
Continue documents this setup in its own docs. It was last checked against 3 official pages on October 17, 2026.
Sources
Last verified against 3 official pages.
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.