You can choose which model Copilot uses for each GitHub Desktop feature, such as commit message generation and conflict resolution.
You can also configure GitHub Desktop でのCopilot to use your own LLM provider (BYOK) instead of GitHub-hosted models. This lets you connect to OpenAI-compatible endpoints, Azure OpenAI, or Anthropic, including locally running models such as Ollama.
Prerequisites
- You must be signed in to a GitHub account with access to GitHub Desktop でのCopilot.
- If your access is managed by an organization or enterprise, GitHub Desktop でのCopilot must be enabled for your account.
- You have an API key or bearer token from a supported LLM provider, or you have a local model running, such as Ollama.
- You have the base URL and at least one model identifier for the provider you want to use.
メモ
Custom LLM providers in GitHub Desktop require access to GitHub Desktop でのCopilot. To use your own LLM models with Copilot CLI (コパイロット CLI), see GitHub Copilot CLI での独自の LLM モデルの使用.
Supported provider types
GitHub Desktop supports three custom provider types:
| Provider type | Compatible services |
|---|---|
| OpenAI / OpenAI-compatible | OpenAI, Ollama, vLLM, Foundry Local, and any other endpoint that is compatible with the selected API format. |
| Azure | Azure OpenAI Service. |
| Anthropic | Anthropic Claude models. |
Configuring your provider
You configure your model provider by adding a custom provider in GitHub Desktop settings.
-
メニュー バーで [GitHub Desktop] を選んでから、[Settings] をクリックします。
![Mac のメニュー バーのスクリーンショット。 開かれた [GitHub Desktop] ドロップダウン メニューで、カーソルが [Settings] をポイントしており、それが青色で強調されています。](/assets/cb-152198/images/help/desktop/mac-choose-settings.png)
-
In the left sidebar, click Copilot.
-
[プロバイダー] タブ を クリックします。
-
[ プロバイダーの追加] をクリックします。
-
[ 名前] に、LLM プロバイダーの名前を入力します。
-
[ 種類] で、プロバイダーの種類を選択します。
-
[ ベース URL] に、モデル プロバイダーの API エンドポイントのベース URL を入力します。
ベース URL は、HTTPS URL、またはローカル コンピューターを指す HTTP URL である必要があります。
-
OpenAI/OpenAI 互換を選択した場合は、[API 形式] で、プロバイダーが想定する API 形式を選択します。
- OpenAI Chat Completions API を使用するプロバイダーの場合は、Chat completions (default) を選択します。
- OpenAI Responses API を使用するプロバイダーの応答 (GPT-5 シリーズ) を選択します。
-
Azureを選択した場合は、Azure API バージョンで、デプロイの API バージョンを入力します。
-
必要に応じて、[ 要求のタイムアウト (秒)] に、プロバイダーが応答するまで待機 GitHub Desktop 秒数を入力します。
-
[ 認証] で、認証方法を選択します。
- API キーを選択して API キーで認証します。
- ベアラー トークンで認証するには、ベアラー トークンを選択します。
- 資格情報を必要としないエンドポイントの場合にのみ、[ なし] を選択します。
-
API キーまたはベアラー トークンを選択した場合は、必要な資格情報を入力します。
-
プロバイダーに少なくとも 1 つのモデルを追加します。 詳細については、「 プロバイダーへのモデルの追加」を参照してください。
-
追加をクリックします。
-
[ファイル] メニューを使用し、 [オプション] をクリックします。
![Windows の [GitHub Desktop] メニュー バーのスクリーンショット。 展開された [File] ドロップダウン メニューの [Options] 項目が、オレンジ色の枠線で囲まれています。](/assets/cb-10737/images/help/desktop/windows-choose-options.png)
-
In the left sidebar, click Copilot.
-
[プロバイダー] タブ を クリックします。
-
[ プロバイダーの追加] をクリックします。
-
[ 名前] に、LLM プロバイダーの名前を入力します。
-
[ 種類] で、プロバイダーの種類を選択します。
-
[ ベース URL] に、モデル プロバイダーの API エンドポイントのベース URL を入力します。
ベース URL は、HTTPS URL、またはローカル コンピューターを指す HTTP URL である必要があります。
-
OpenAI/OpenAI 互換を選択した場合は、[API 形式] で、プロバイダーが想定する API 形式を選択します。
- OpenAI Chat Completions API を使用するプロバイダーの場合は、Chat completions (default) を選択します。
- OpenAI Responses API を使用するプロバイダーの応答 (GPT-5 シリーズ) を選択します。
-
Azureを選択した場合は、Azure API バージョンで、デプロイの API バージョンを入力します。
-
必要に応じて、[ 要求のタイムアウト (秒)] に、プロバイダーが応答するまで待機 GitHub Desktop 秒数を入力します。
-
[ 認証] で、認証方法を選択します。
- API キーを選択して API キーで認証します。
- ベアラー トークンで認証するには、ベアラー トークンを選択します。
- 資格情報を必要としないエンドポイントの場合にのみ、[ なし] を選択します。
-
API キーまたはベアラー トークンを選択した場合は、必要な資格情報を入力します。
-
プロバイダーに少なくとも 1 つのモデルを追加します。 詳細については、「 プロバイダーへのモデルの追加」を参照してください。
-
追加をクリックします。
Adding models to your provider
Add the models you want to use from your provider. Each model you add appears in the model picker alongside GitHub-hosted models.
-
In the Add Custom Provider or Edit Custom Provider dialog, under Models, click Add Model.
-
Under Display Name, type the friendly name shown in the Copilot model picker.
-
Under Model Identifier, type the exact model name your provider expects.
-
Under Reasoning Effort, select the reasoning level for the model.
For non-reasoning models, or to let the provider choose, leave Default (provider's choice) selected.
-
Click Add.
Reviewing provider responsibilities
When you use your own LLM provider, GitHub Desktop sends prompts and repository context to that provider instead of GitHub. Check your provider's data handling and retention policies before adding credentials.
Always review generated commit messages and conflict-resolution suggestions before committing. For more information, see GitHub Copilot機能の責任ある使用.