Answer: You configure Copilot CLI to use your own model provider using environment variables, including COPILOT_PROVIDER_BASE_URL, COPILOT_PROVIDER_TYPE, COPILOT_PROVIDER_API_KEY, and COPILOT_MODEL. For details on how to configure your model provider, run copilot help providers in your terminal. Status: Confirmed Entry: tool/github-copilot/models/bring-your-own-model-provider Revision: 1 Digest: sha256:2dbde2f369609fc5 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:20:16Z Last changed: 2026-11-13T03:20:16Z Last verified: 2026-11-20T12:56:05Z Next check: 2026-11-21T12:56:05Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Configuration method | environment variables | [1] | 2026-11-20 Base URL variable | COPILOT_PROVIDER_ BASE_URL | [1] | 2026-11-20 Provider type variable | COPILOT_PROVIDER_ TYPE | [1] | 2026-11-20 API key variable | COPILOT_PROVIDER_ API_KEY | [1] | 2026-11-20 Model variable | COPILOT_MODEL | [1] | 2026-11-20 Help command | copilot help providers | [1] | 2026-11-20 Sources: [1] GitHub. "GitHub Copilot CLI - GitHub Docs". https://docs.github.com/en/copilot/concepts/copilot-surfaces/copilot-cli Role: primary. Accessed: 2026-11-20T12:56:05Z Quote: "You configure your model provider using environment variables." (Supports: Configuration method) Quote: "COPILOT_PROVIDER_ BASE_URL The base URL of your model provider's API endpoint." (Supports: Base URL variable) Quote: "COPILOT_PROVIDER_ TYPE The provider type: openai (default), azure , or anthropic ." (Supports: Provider type variable) Quote: "COPILOT_PROVIDER_ API_KEY Your API key for authenticating with the provider." (Supports: API key variable) Quote: "COPILOT_MODEL The model to use (required when using a custom provider)." (Supports: Model variable) Quote: "run copilot help providers in your terminal." (Supports: Help command) Snapshot SHA-256: dcfa79c993c5ebc17fb96acfe772b2a416cb55eccb77e158a44863b4ebb0703a (captured 2026-11-18T12:49:29Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T12:49:32Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:56:05Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:56:05Z Last attempt: 2026-11-20T12:56:05Z Notes and limitations: Extracted automatically from a single official source (section "Using your own model provider"). Related: https://latestn.com/tool/github-copilot/models/byok-ollama-config How do I configure GitHub Copilot BYOK with a local Ollama model? https://latestn.com/tool/github-copilot/models/byok-overview What is bring your own key (BYOK) in GitHub Copilot? https://latestn.com/tool/github-copilot/models/byok-supported-providers Which providers does GitHub Copilot BYOK support? https://latestn.com/tool/github-copilot/models/base-models-overview What are base models and long-term support (LTS) models in GitHub Copilot? https://latestn.com/tool/github-copilot/models/bring-your-own-key How do I bring my own API key for GitHub Copilot? https://latestn.com/tool/github-copilot/models/bring-your-own-key-2 How do I use bring your own key (BYOK) with GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:20:16Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/models/bring-your-own-model-provider/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/models/bring-your-own-model-provider POST: https://latestn.com/dispute/tool/github-copilot/models/bring-your-own-model-provider with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/models/bring-your-own-model-provider?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use my own model provider with GitHub Copilot CLI? Revision 1, last verified 2026-11-20T12:56:05Z. https://latestn.com/tool/github-copilot/models/bring-your-own-model-provider (accessed 2026-11-21T09:59:45Z). @misc{LatestN_tool_github_copilot_models_bring_your_own_model_provider_r1, title = {How do I use my own model provider with GitHub Copilot CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/models/bring-your-own-model-provider}}, note = {Revision 1; digest sha256:2dbde2f369609fc5; last verified 2026-11-20T12:56:05Z; accessed 2026-11-21T09:59:45Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/models/bring-your-own-model-provider