github / github/copilot-cli

Support custom model endpoint in Copilot CLI (like VS Code)

オープン
#4,003 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:models
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Proposed solution

Title: Support custom model endpoint in Copilot CLI (like VS Code)

VS Code's Language Models panel allows configuring custom endpoints
for local or private models. Copilot CLI should have the same capability.

This would enable:
- Local model development and testing
- Enterprise private model deployment
- Integration with Ollama, LLaMA.cpp, etc.

Image

Copilot CLI currently only supports GitHub's official models (Claude, GPT-5), but VS Code's Copilot extension supports custom model endpoints through the Language Models API.

I need to use a local model (running on my machine) or a custom API endpoint with Copilot CLI, just like I can in VS Code. This would enable:

1. **Local model development** - Test custom models locally before deployment
2. **Private/Enterprise models** - Use organization's private LLM endpoints
3. **Cost control** - Run models locally instead of using API quotas
4. **Integration with local tools** - Connect to Ollama, LLaMA.cpp, vLLM, or other local inference servers

## Proposed solution

Add support for custom model endpoints in Copilot CLI, similar to VS Code's Language Models panel:

```bash
copilot /model-config
# or
copilot --model-endpoint http://localhost:8000
```
Configuration in ~/.copilot/config.json:

```JSON

{
"customModels": [
{
"name": "my-local-model",
"endpoint": "http://localhost:8000/v1",
"apiKey": "optional-key"
}
]
}
```
Then select it in the /model picker just like official models.

### Example prompts or workflows

_No response_

### Additional context

VS Code already has this feature via Language Models API
Many users want to use local models for privacy/cost reasons
OpenAI-compatible API format is now standard (Ollama, vLLM, etc.)
This would make Copilot CLI feature-parity with VS Code in model selection

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reviewing the existing /model picker and configuration handling, then compare the proposed ~/.copilot/config.json customModels shape with the VS Code Language Models API described in the issue. Done means Copilot CLI can configure and select a local or private endpoint, including the OpenAI-compatible services named here such as Ollama, vLLM, or LLaMA.cpp.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ollama, shell, vscode
領域
ai, api, cli
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。