Примечание.
Support to use your own model provider in the GitHub приложение Copilot is in Публичный предварительный просмотр and subject to change.
You can configure the GitHub приложение Copilot to use your own LLM provider, also called BYOK (Bring Your Own Key), instead of GitHub-hosted models. You can set up your model provider when you first open the app or later in app settings.
You must sign in with a GitHub account to use the app, but you do not need a Copilot plan if you use your own model provider. If you do have a Copilot plan, you can use both your own model provider and GitHub-hosted models in the same app.
Примечание.
This article is for users who want to configure their own LLM provider settings on their local machine. To set up custom models for users in an organization or enterprise, see Использование API-ключей провайдера LLM с Copilot and Использование API-ключей провайдера LLM с Copilot.
Supported providers
GitHub приложение Copilot supports these model providers:
- OpenAI
- Azure OpenAI
- Microsoft Foundry
- Anthropic
- Ollama
- Foundry Local
- LM Studio
- Any OpenAI-compatible HTTP endpoint
Prerequisites
- The GitHub приложение Copilot is installed. For setup steps, see Начало работы с GitHub приложение Copilot.
- You have any required credentials, such as API key, for your model provider.
Set up a model provider
If you are setting up the app for the first time and do not have a Copilot plan, you can choose to set up your own model provider during onboarding.
To add or update a model provider later:
- Open the GitHub приложение 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 Работа с сессиями агентов в приложении GitHub приложение Copilot.
Provider credentials are stored in the system credential store and are never displayed in the UI.