You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom model providers (COPILOT_PROVIDERS_CONFIG / COPILOT_PROVIDER_*) are ignored in --host-environment and --server modes #5371
Custom BYOK model providers configured via COPILOT_PROVIDERS_CONFIG (providers.json) or COPILOT_PROVIDER_* environment variables work in interactive TUI and -p prompt modes, but are ignored when running copilot --experimental --host-environment <name> or copilot --server. Remote sessions created from GitHub Mobile/Web only expose and use built-in GitHub Copilot models instead of the configured custom provider.
Affected version
@github/copilot1.0.106-9 (Linux ARM64 / x64)
Steps to reproduce the behavior
Configure a custom OpenAI-compatible provider in /tmp/providers.json:
Create a session on my-host from GitHub Mobile/Web and send a prompt.
Check ~/.copilot/session-state/<id>/events.jsonl: gateway/my-model is never listed in the model picker, and turns execute against "providerId": "copilot" instead of the custom provider.
Expected behavior
--host-environment and --server modes should load COPILOT_PROVIDERS_CONFIG / COPILOT_PROVIDER_* into created sessions so custom provider models appear in the remote session model picker and are used for inference.
Additional context
Setting COPILOT_PROVIDER_BASE_URL, COPILOT_PROVIDER_API_KEY, and COPILOT_MODEL via environment variables exhibits the same behavior: respected in interactive/-p mode, ignored in --host-environment and --server modes.
Activity