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:
- Local model development - Test custom models locally before deployment
- Private/Enterprise models - Use organization's private LLM endpoints
- Cost control - Run models locally instead of using API quotas
- 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:
copilot /model-config
# or
copilot --model-endpoint http://localhost:8000
Configuration in ~/.copilot/config.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
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:
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:
Proposed solution
Add support for custom model endpoints in Copilot CLI, similar to VS Code's Language Models panel:
copilot /model-config # or copilot --model-endpoint http://localhost:8000Configuration in ~/.copilot/config.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