Setup guide - Documented by GitHub Copilot
Use OpenAI in GitHub Copilot
GitHub Copilot includes OpenAI models as GA options in its model picker, including GPT-6.1 Sol, GPT-6 Astra, GPT-6 Sol, GPT-6 Luna and the GPT-5.6 family. Which ones you see depends on your plan and client. VS Code can also add more models from providers such as OpenAI through Manage Models.
Last verified 4 steps2 official sources
Steps
- Step 1.
VS Code: open Copilot Chat from the chat icon in the title bar, then at the bottom of the chat view select the CURRENT-MODEL dropdown and click the OpenAI model you want.
- Step 2.
Visual Studio: View > GitHub Copilot Chat, then pick from the CURRENT-MODEL dropdown at the bottom right (Visual Studio 2022 17.12 or later).
- Step 3.
JetBrains: open GitHub Copilot Chat from the status bar icon, pick a model from the CURRENT-MODEL dropdown, and optionally set a Thinking Effort for reasoning models.
- Step 4.
VS Code, adding more models: in the chat view click the CURRENT-MODEL dropdown, click Manage Models, click the provider (for example OpenAI), enter the API key or model ID when prompted and press Enter, then select the models and click OK.
Caveats
- Copilot lists models by display name, not API id.
- Copilot Student and Copilot Free users get models through auto model selection only.
- Copilot Business users need their organization to allow model switching. Using your own key on Business or Enterprise requires the Bring Your Own Language Model Key in Select IDEs policy.
- Minimum IDE versions apply, for example GPT-6 Astra needs VS Code 1.136.1 and GPT-6.1 Sol needs Visual Studio 17.14.19.
- GPT-5.4 nano is only available in the Codex Visual Studio Code extension (Copilot Pro+ only), not in Copilot Chat.
More setup guides
Same tool, other providers
Related reading
- Codex Training Setting Re-Enabled? Two Switches to CheckDevelopers report Codex model training turning itself back on. What OpenAI documents, the second "Include environments" switch most people miss, and a five-minute check.
- OpenAI Pando: The Git Backend Built for Codex-Scale PushesOpenAI built Pando, a Git-compatible backend, after Codex flooded its monorepo with pushes. What it changed, the trade-offs, and what it means for your agent fleet.
- GPT-6.1 Terra: $1/$5 Pricing, Benchmarks, and When to Pick ItGPT-6.1 Terra is OpenAI's new $1/$5 per million token model: 50.3% on Terminal-Bench 4.0 (vendor-reported), half Sol's price, and who should route to it.
- Codex CLI 0.164: /presets and Inline /model FlagsCodex CLI 0.164.0 adds ten /presets slots, inline /model and /permissions arguments, and credential masking for remote commands. What to try and what to check.
- Codex Reset: Banked vs Automatic vs Paid, and When to Use EachCodex has three kinds of usage reset - banked, automatic and paid - and they move your weekly refresh date in different ways. What OpenAI documents, the 80% rule, and what to do Monday.
- OpenAI Models on Google Cloud: What Changes for DevelopersOpenAI and Google Cloud put GPT-6 Astra, GPT-6.1 Sol and GPT-6 Luna into Model Garden in private preview, with Codex pointed at Gemini inference. What is live, what is "coming soon", and what to do before general availability.
FAQ
How do I use OpenAI in GitHub Copilot?
GitHub Copilot includes OpenAI models as GA options in its model picker, including GPT-6.1 Sol, GPT-6 Astra, GPT-6 Sol, GPT-6 Luna and the GPT-5.6 family. Which ones you see depends on your plan and client. VS Code can also add more models from providers such as OpenAI through Manage Models.
Which OpenAI model ids work in GitHub Copilot?
The official docs read for this guide list GPT-6.1 Sol, GPT-6 Astra, GPT-6 Sol, GPT-6 Luna, GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna, GPT-5.5, GPT-5.4, GPT-5.4 mini, GPT-5.3-Codex and GPT-5 mini.
Is this an official OpenAI and GitHub Copilot setup?
GitHub Copilot documents this setup in its own docs. It was last checked against 2 official pages on October 17, 2026.
Sources
Last verified against 2 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.