Remarque
Support to use your own provider (BYOK) in the GitHub application Copilot is in préversion publique and subject to change.
You can configure the GitHub application Copilot to use your own LLM provider, also called BYOK (Bring Your Own Key), instead of GitHub-hosted models.
Remarque
This article is for users who want to configure their own LLM provider API key on their local machine. To set up custom models for users in an organization or enterprise, see Utilisation des clés API de votre fournisseur LLM avec Copilot and Utilisation des clés API de votre fournisseur LLM avec Copilot.
Supported providers
GitHub application Copilot supports these model providers:
- OpenAI
- Azure OpenAI
- Microsoft Foundry
- Anthropic
- Ollama
- Foundry Local
- LM Studio
- Any OpenAI-compatible HTTP endpoint
Prerequisites
- The GitHub application Copilot is installed. For setup steps, see Prise en main de l’application GitHub Copilot.
- You have an API key for your model provider.
Add a model provider
- Open the GitHub application Copilot.
- Open app settings, then click Model providers.
- Click Add provider.
- Select your provider.
- Enter the provider details. This varies by provider but may include the display name, base URL, and API key.
- Click Add provider to save the provider.
After you add a provider, its models appear in the model picker alongside GitHub-hosted models. You can select the model and use it in a session. For more information, see Travailler avec les sessions de l’agent dans l’application GitHub Copilot.
Keys are stored in the system credential store and are never displayed in the UI.