Use xAI Grok models directly from the GitHub Copilot Chat model picker in Visual Studio Code.
This extension is a native VS Code LanguageModelChatProvider. It authenticates with xAI, discovers available models, and streams responses from api.x.ai into Copilot Chat without a local proxy.
Highlights
Browser/PKCE and device-code xAI sign-in with token refresh
Live Grok model discovery
Streaming text and reasoning
Agent mode tool calls and image inputs
Usage and cost metadata when returned by xAI
Quick start
Install Grok for GitHub Copilot Chat. You need VS Code 1.125 or newer, GitHub Copilot Chat, and an xAI account with API access or an eligible subscription.
Run Grok: Sign In to xAI from the Command Palette and complete authorization in your browser. Use Grok: Sign In to xAI with Device Code if the browser callback is unavailable.
Open Copilot Chat, select Manage Models, enable xAI Grok, then choose a Grok model.
Use Grok: Manage xAI Connection to test the connection, refresh models, inspect logs, or sign out.