You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Adding your API Keys with GitHub Copilot - Bring Your Own Key(BYOK)
2
+
3
+
4
+
Copilot for Xcode supports **Bring Your Own Key (BYOK)** integration with multiple model providers. You can bring your own API keys to integrate with your preferred model provider, giving you full control and flexibility.
5
+
6
+
Supported providers include:
7
+
- Anthropic
8
+
- Azure
9
+
- Gemini
10
+
- Groq
11
+
- OpenAI
12
+
- OpenRouter
13
+
14
+
15
+
## Configuration Steps
16
+
17
+
18
+
To configure BYOK in Copilot for Xcode:
19
+
20
+
- Open the Copilot chat and select “Manage Models” from the Model picker.
21
+
- Choose your preferred AI provider (e.g., Anthropic, OpenAI, and Azure).
22
+
- Enter the required provider-specific details, such as the API key and endpoint URL (if applicable).
| Anthropic | Sign in to the [Anthropic Console](https://console.anthropic.com/dashboard) to generate and retrieve your API key. |
28
+
| Gemini (Google) | Sign in to the [Google Cloud Console](https://aistudio.google.com/app/apikey) to generate and retrieve your API key. |
29
+
| Groq | Sign in to the [Groq Console](https://console.groq.com/keys) to generate and retrieve your API key. |
30
+
| OpenAI | Sign in to the [OpenAI’s Platform](https://platform.openai.com/api-keys) to generate and retrieve your API key. |
31
+
| OpenRouter | Sign in to the [OpenRouter’s API Key Settings](https://openrouter.ai/settings/keys) to generate your API key. |
32
+
| Azure | Sign in to the [Azure AI Foundry](https://ai.azure.com/), go to your [Deployments](https://ai.azure.com/resource/deployments/), and retrieve your API key and Endpoint after the deployment is complete. Ensure the model name you enter matches the one you deployed, as shown on the Details page.|
33
+
34
+
35
+
- Click "Add" button to continue.
36
+
- Once saved, it will list available AI models in the Models setting page. You can enable the models you intend to use with GitHub Copilot.
37
+
38
+
> [!NOTE]
39
+
> Please keep your API key confidential and never share it publicly for safety.
0 commit comments