Setup guide - Documented by GitHub Copilot
Use Gemini in GitHub Copilot
GitHub Copilot offers Gemini 3.7 Flash, Gemini 3.8 Flash and Gemini 4 Argon (all GA) in its chat model picker. VS Code can also add Gemini models via Manage Models with your own provider key.
Last verified 3 steps5 official sources
Steps
- Step 1.
Built-in models (VS Code): open Copilot Chat, then at the bottom of the chat view, select the CURRENT-MODEL dropdown menu, then click the AI model of your choice (for example Gemini 3.8 Flash or Gemini 4 Argon).
- Step 2.
Copilot Business/Enterprise: an enterprise or organization owner can enable or disable access to AI models for members. Individual plans can use models directly without configuring access or managing policies.
- Step 3.
Bring your own key (VS Code): in the Copilot chat view, click the CURRENT-MODEL dropdown menu, click Manage Models, click the provider whose model(s) you want to add (GitHub lists Gemini as an example provider), enter the API key or model ID when prompted and press Enter, then select the model(s) you want to add and click OK.
Caveats
- Model ids here are GitHub's display names from its model release status table, not raw Gemini API ids. Gemini 3.7 Flash appears in Copilot but not on Google's current models page.
- Per GitHub's supported-clients table, these three Gemini models are available in Copilot CLI, VS Code, Visual Studio, Eclipse, Xcode and JetBrains, but not on github.com (dotcom: false).
- "Copilot Free and Copilot Student only have access to auto model selection."
- For BYOK on Copilot Business or Enterprise, the "Bring Your Own Language Model Key in Select IDEs" policy must be enabled.
- Changing the chat model does not affect the model used for Copilot inline suggestions.
More setup guides
Same tool, other providers
Related reading
- Gemini 2.5 Pro and Gemini 3 Flash Deprecated in GitHub Copilot: What to Switch ToGemini 2.5 Pro and Gemini 3 Flash are deprecated in GitHub Copilot. What GitHub suggests instead, the October follow-up deprecations, and how to migrate.
- Gemini Trains on Your Chats Unless Keep Activity Is OffA Tell HN says paying for Gemini does not stop chat training. What Google documents about Keep Activity, human review and 3-year retention, and what developers should do before pasting code.
- Gemini 4 Carbon: Benchmarks, Pricing, and AccessGemini 4 Carbon is Google's new frontier model: 59 on the AA Intelligence Index, $2/$10 intro pricing, but cyber-defender access only. What builders do now.
- AI API 429, 529 and 503 Errors: Retry Rules That Match the DocsWhich 429, 529 and 503 errors to retry across OpenAI, Claude, Gemini and Bedrock, how to read Retry-After, and a typed wrapper that skips quota errors.
- AI Model Shutdown Dates 2026-2027: Calendar and Migration PlanEvery scheduled AI model API shutdown through mid 2027 by month: GPT-4o on Jan 14, whisper-1 on Feb 26, Claude Sonnet 4.5 on Nov 30, plus how to migrate.
- Gemini Live and TTS Preview Models Retire November 17: Moving to Gemini 3.8 Live and 3.8 Flash TTSThe Gemini API shuts down two Live API preview models and three TTS preview models on November 17, 2026. Replacement ids, what changes in the session config and TTS request, prices before and after, and the code change.
FAQ
How do I use Gemini in GitHub Copilot?
GitHub Copilot offers Gemini 3.7 Flash, Gemini 3.8 Flash and Gemini 4 Argon (all GA) in its chat model picker. VS Code can also add Gemini models via Manage Models with your own provider key.
Which Gemini model ids work in GitHub Copilot?
The official docs read for this guide list Gemini 3.7 Flash, Gemini 3.8 Flash and Gemini 4 Argon.
Is this an official Gemini and GitHub Copilot setup?
GitHub Copilot documents this setup in its own docs. It was last checked against 5 official pages on October 17, 2026.
Sources
Last verified against 5 official pages.
- raw.githubusercontent.comhttps://raw.githubusercontent.com/github/docs/main/content/copilot/reference/ai-models/supported-models.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/github/docs/main/data/tables/copilot/model-release-status.yml
- raw.githubusercontent.comhttps://raw.githubusercontent.com/github/docs/main/data/tables/copilot/model-supported-clients.yml
- raw.githubusercontent.comhttps://raw.githubusercontent.com/github/docs/main/content/copilot/how-tos/copilot-in-your-ide/chat-with-copilot/change-the-chat-model.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/github/docs/main/content/copilot/how-tos/copilot-on-github/set-up-copilot/configure-access-to-ai-models.md
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.