Skip to main content
Watch: I Built an AI App Without Leaving Databricks

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

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

  2. 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).

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

  4. 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.

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.