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.1 Terra, 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.
- GPT-5.5, GPT-5.4, GPT-5.4 mini and GPT-5 mini retired from Copilot on 2026-10-19; the suggested alternatives are the latest GPT Sol model (for GPT-5.5 and GPT-5.4) and the latest GPT Luna model (for the mini models).
More setup guides
Same tool, other providers
Related reading
- Droid vs Codex (2026): Factory vs OpenAI for Terminal Coding AgentsFactory Droid vs OpenAI Codex compared on models, pricing, headless CI, multi-agent work, extensibility and openness, with a clear recommendation for each kind of developer.
- The One Number That Predicts What AI Can Do NextOpenAI's chief scientist Jakub Pachocki says perplexity, how well a model predicts the next token, tracks every big jump in AI, and wants every lab to publish it.
- Codex CLI 0.171: codex exec --remote, Workspace On by DefaultCodex CLI 0.171.0 adds codex exec --remote to run headless sessions on an existing app server, turns on the TUI workspace by default and picks GPT-6.2 Sol.
- GPT-6.2 Astra and Sol: Pricing, Benchmarks and What to SwitchGPT-6.2 Astra costs $8/$40 per MTok (20% under GPT-6 Astra), Sol stays $2/$10. Vendor-reported benchmarks, cache rates, Codex setup and who should switch.
- Codex CLI 0.169: codex exec Trust, Side Chats and Model ProvidersCodex CLI 0.169.0 keeps project config and MCP servers off in untrusted directories under codex exec, adds --trust, side-chat tabs and a model provider picker.
- 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.
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.1 Terra, 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.1 Terra, GPT-6 Astra, GPT-6 Sol, GPT-6 Luna, GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna and GPT-5.3-Codex.
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 November 8, 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.