
GitHub Copilot CLIでローカルモデルを検出Discover local models in GitHub Copilot CLI
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- GitHub Copilot CLI 1.0.94-0では、/modelから稼働中のOllamaにある対応モデルを検出できます。
- 利用者は提供元と接続先を確認して追加し、CLIを再起動せず現在のセッションで使えるため、ローカルモデルの選択が容易になります。
- GitHub Copilot CLI 1.0.94-0 adds /model discovery for compatible models on a running Ollama service.
- Users can verify and activate an installed model without restarting the CLI.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (github.blog) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (github.blog).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
ローカルモデル
GitHub Copilot CLI 1.0.94-0では、既存の作業フローを離れずに、ローカルモデルを選びやすくなった。稼働中のローカルOllamaインスタンスから対応モデルを検出し、CLIを再起動することなく現在のセッションで利用できる。
/modelで検出
モデルの検出には「/model」を使用する。選択画面には、Ollamaで検出された対応モデルに加え、設定済みのモデルとGitHub Copilotが提供するクラウドモデルも表示される。これにより、ローカルで動作している候補を、ほかの利用可能なモデルと並べて確認しながら選択できる。ただし、検出されただけでモデルが自動的に追加されるわけではない。
追加とセッション
検出されたモデルを選ぶと、利用者はその提供元と接続先を確認できる。その後、「Add and use for this session」を確定すれば、モデルを追加して現在のセッションで使用する。「Add without switching」を選べば、現在使っているモデルを切り替えずに追加できる。現在のセッションで利用を始める際に、GitHub Copilot CLIを再起動する必要はない。
利用条件と接続
この操作は、Ollamaの実行環境をインストールしたり、モデルをダウンロードしたりするものではない。Ollamaと対象モデルは、あらかじめインストールされている必要がある。また、利用するモデルにはツール呼び出しとストリーミングへの対応が求められる。提供元への接続に失敗した場合は、選択画面に説明とともに表示され、確認が必要な箇所を特定しやすくなる。
Choose a local model
GitHub Copilot CLI now makes it easier to choose a local model without leaving an existing workflow. Starting with CLI version 1.0.94-0, the /model command can discover supported models from a running local Ollama instance, allowing an installed model to be selected within the current session.
Discover supported models
The /model picker shows compatible models discovered through Ollama alongside configured models and cloud models provided by GitHub Copilot. This puts the available choices in one place rather than requiring users to leave the CLI workflow to identify a local option.
Discovery does not automatically add any model. Ollama must already be installed and running, and the model itself must already be installed. The discovery flow neither installs a runtime nor downloads models.
Models also need to support tool calling and streaming. A locally installed model that does not meet those requirements is not supported by this flow.
Add and use
After choosing a discovered model, users can review its provider and endpoint before confirming how it should be added. The picker offers “Add and use for this session,” which activates the model for the current session, and “Add without switching,” which adds it without making it the active choice.
A selected model can be used in the current session without restarting GitHub Copilot CLI. This keeps model discovery, verification, addition, and activation within the same running workflow.
Provider connection failures
If a provider connection fails, the problem appears directly in the picker. The picker also provides an explanation, helping users identify what requires attention before the provider or model can be used.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPokoターミナルで作業中、ローカルモデルを使いたいときは何が変わるの?CLIを閉じなくていいのかな。If I want to use a local model while working in the terminal, what changes? Can I keep the CLI open?
- TECHガイドTECH GuideGitHub Copilot CLI 1.0.94-0では、/modelで稼働中のOllamaにある対応モデルを探し、再起動せず今のセッションで使えます。In GitHub Copilot CLI 1.0.94-0, /model can find compatible models on a running Ollama service and use one in your current session without a restart.
- ポコPoko前は/modelから見つけられなかったの?見つけたモデルは自動で追加されるのかな。So /model couldn’t discover them before? And does a model get added automatically once it’s found?
- TECHガイドTECH Guideこの記事では、検出は1.0.94-0からです。ただし自動追加はされず、提供元と接続先を確認して追加方法を選びます。Discovery starts with version 1.0.94-0. It doesn’t add models automatically—you review the provider and endpoint, then choose how to add the model.
- ポコPokoじゃあ、作業を止めずに、接続先を確かめてローカルモデルを選べるのが大きな収穫なんだね。So the big win is choosing a local model without stopping my work, while still checking where it connects.
- TECHガイドTECH Guideそうだね。次は、Ollamaとモデルが導入済みで、ツール呼び出しとストリーミングに対応しているかに注目です。Right. Next, check that Ollama and the model are already installed, and that the model supports tool calling and streaming.





