Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>Grok for GitHub Copilot ChatNew to Visual Studio Code? Get it now.
Grok for GitHub Copilot Chat

Grok for GitHub Copilot Chat

Griko Nibras

|
31 installs
| (1) | Free
Use xAI Grok models in GitHub Copilot Chat with xAI OAuth.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Grok and GitHub Copilot

Grok for GitHub Copilot Chat

Use xAI Grok models directly from the GitHub Copilot Chat model picker in Visual Studio Code.

Visual Studio Marketplace version Visual Studio Marketplace installs CI status MIT license

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

  1. 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.
  2. 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.
  3. 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.

Documentation

  • Setup, settings, and troubleshooting
  • OAuth and security
  • Development and releases

Unofficial project; not affiliated with xAI, GitHub, or Microsoft. xAI account limits and charges still apply. Licensed under MIT.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft