BYOK: Support multiple external models/providers
Describe the feature or problem you'd like to solve
The GitHub Copilot app supports configuring multiple external models/providers, while Copilot CLI currently supports only a single BYOK provider/model configuration.
Proposed solution
Extend the current configuration: COPILOT_PROVIDER_BASE_URL COPILOT_PROVIDER_API_KEY COPILOT_MODEL to support multiple provider/model profiles and allow switching between them. The goal is to make Copilot CLI usable as a single agent harness across multiple model providers.
Example prompts or workflows
No response
Additional context
Some organizations require model/provider independence and therefore prefer a model-agnostic harness rather than provider-specific tools such as Codex or Claude Code.
Copilot CLI is a strong candidate for this role and competes with multi-provider tools such as OpenCode. However, supporting multiple configured providers is important for organizations adopting Copilot CLI strategically.
In our case, this capability would help justify Copilot CLI as a long-term, provider-independent solution; without it, we would likely need to consider replacing it with a multi-provider alternative.
Thanks for the report. We've shipped fixes in this area since this was filed (most recently in Copilot CLI v1.0.100), and we believe this may now be resolved. Could you retest on the latest release (Copilot CLI v1.0.103) and let us know whether you still see it? If we don't hear back in a couple of weeks, we may close this issue — you can always reopen it.
Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.
@patniko I just tested this on copilot CLI version 1.0.116-1 and it requires me to populate COPILOT_MODEL or provide the cli arg when opening copilot, and none of the other models from the configured provider show up in /models.
We should be able to configure the provider URL and API key (if needed), and copilot CLI should discover available models just like the other copilot experiences do.