Improvement

September 11, 20252 Minute Read

Bring Your Own Key (BYOK) support for JetBrains IDEs and Xcode in public preview

Bring Your Own Key (BYOK) support is now in public preview for GitHub Copilot Chat in JetBrains IDEs and Xcode! If you already have an API key from a supported model provider, you can connect it in just a minute and start using their models directly in JetBrains IDEs or Xcode. Supported providers include Anthropic, Azure, Google Gemini, Groq, OpenAI, and OpenRouter. BYOK support for GitHub Copilot Chat in Eclipse is coming soon.

What BYOK unlocks

Using your own language model API key offers several advantages:

  • Model flexibility: Access a wide range of models beyond the built-in options.
  • Experimentation: Try out new models and features as they become available.
  • Greater control: Choose the models you prefer, with fewer limitations on rate limits or usage policies.

Try it out

To use BYOK, install the latest GitHub Copilot plugin for JetBrains or Xcode. You will also need to have a valid Copilot license.

In JetBrains IDEs:

  1. Open the Copilot chat and click Manage Models in the model picker.
  2. Choose your provider and click Add Models.
  3. Enter your API key and required details, then click Save.
  4. Select the models under your key and save again — they’ll appear in the model picker.
  5. Enable the ones you want to use in Copilot chat.

In Xcode:

  1. Open the Copilot chat and select Manage Models from the Model picker.
  2. Choose your provider (e.g., Anthropic, OpenAI, Azure).
  3. Enter the API key and endpoint URL (if needed).
  4. Click Add to continue.
  5. Once saved, it will list available AI models in the “Model Settings” page. Enable the ones you want to use.

Share your feedback

We value your feedback! Share your experience through the following channels:

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

Bring Your Own Key (BYOK) support for JetBrains IDEs and Xcode in public preview - GitHub Changelog