Support custom model endpoint in Copilot CLI (like VS Code)
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
### 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.
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
Guía de contribución
Línea de trabajo
Empieza revisando el /model picker existente y el manejo de la configuración; después, compara la forma propuesta de customModels en ~/.copilot/config.json con la VS Code Language Models API descrita en el issue. Se considerará terminado cuando Copilot CLI pueda configurar y seleccionar un endpoint local o privado, incluidos los servicios compatibles con OpenAI mencionados aquí, como Ollama, vLLM o LLaMA.cpp.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- ollama, shell, vscode
- Área
- ai, api, cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100