Answer: You configure local model servers and custom providers by creating a providers.json file (by default at ~/.copilot/providers.json) containing providers and models arrays, then restarting Copilot CLI. For a local model served by llama-server, set the provider type to "local_model" with baseUrl as a path to a .gguf file; for OpenAI-compatible servers like Ollama, use type "openai" with the server's base URL. Status: Confirmed Entry: tool/github-copilot/models/configure-providers-local-model Revision: 3 Digest: sha256:7703c2198b9eec6b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:31:44Z Last changed: 2026-11-19T13:06:54Z (required provider fields: — → name and baseUrl) Last verified: 2026-11-20T13:13:12Z Next check: 2026-11-21T13:13:12Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config file | providers.json | [1] | 2026-11-20 default location | ~/.copilot/providers.json | [1] | 2026-11-20 location override env var | COPILOT_PROVIDERS_CONFIG | [1] | 2026-11-20 local model type | local_model | [1] | 2026-11-20 local model baseUrl | a path to a .gguf model file | [1] | 2026-11-20 required provider fields | name and baseUrl | [1] | 2026-11-20 example model selection | copilot --model local/qwen3:8b | [1] | 2026-11-20 Sources: [1] GitHub. "GitHub Copilot CLI configuration directory - GitHub Docs". https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference Role: primary. Accessed: 2026-11-20T13:13:12Z Quote: "providers.json Defines a registry of bring-your-own-key (BYOK) providers and models" (Supports: config file) Quote: "By default, this file is located at ~/.copilot/providers.json ." (Supports: default location) Quote: "Override its location with the COPILOT_PROVIDERS_CONFIG environment variable." (Supports: location override env var) Quote: ""local_model" for a local model served by llama-server ." (Supports: local model type) Quote: "With "type": "local_model" , this can instead be a path to a .gguf model file." (Supports: local model baseUrl) Quote: "Only name and baseUrl are always required." (Supports: required provider fields) Quote: "For example, run copilot --model local/qwen3:8b ." (Supports: example model selection) Snapshot SHA-256: 7a5eb1885e5d22e29b49aece5b4d97e6e0d48dd08af73c632824aa821cfba22a (captured 2026-11-18T13:09:12Z) 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-18T13:09:13Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:13:12Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:13:12Z Last attempt: 2026-11-20T13:13:12Z Notes and limitations: Extracted automatically from a single official source (section "providers.json"). Related: https://latestn.com/tool/github-copilot/models/custom-models What are custom models in GitHub Copilot and how do I use them? https://latestn.com/tool/github-copilot/models/delegate-task-specific-model How do I delegate a focused task to a specific model with a custom agent in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/models/enable-custom-models-enterprise How do I enable custom models for GitHub Copilot in my enterprise? https://latestn.com/tool/github-copilot/models/cloud-agent-supported-models Which AI models can I use with the GitHub Copilot cloud agent? https://latestn.com/tool/github-copilot/models/configure-ai-model-access How do I configure which AI models are available in GitHub Copilot? https://latestn.com/tool/github-copilot/models/configure-model-access-individual-plan How do I configure access to AI models in GitHub Copilot for an individual plan? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:06:54Z | changed | required provider fields: — → name and baseUrl | [1] 2026-11-19T13:06:54Z | changed | restart requirement: restart Copilot CLI → — | [1] 2026-11-19T13:06:54Z | changed | example baseUrl: http://127.0.0.1:11434/v1 → — | [1] 2026-11-19T13:06:54Z | changed | local model baseUrl: .gguf → a path to a .gguf model file | [1] 2026-11-13T13:00:37Z | changed | restart requirement: — → restart Copilot CLI | [1] 2026-11-13T13:00:37Z | changed | example model selection: — → copilot --model local/qwen3:8b | [1] 2026-11-13T13:00:37Z | changed | example baseUrl: — → http://127.0.0.1:11434/v1 | [1] 2026-11-13T13:00:37Z | changed | model selection example: copilot --model local/qwen3:8b → — | [1] 2026-11-13T13:00:37Z | changed | required provider fields: name and baseUrl → — | [1] 2026-11-13T03:31:44Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/models/configure-providers-local-model/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/configure-providers-local-model POST: https://latestn.com/dispute/tool/github-copilot/models/configure-providers-local-model with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/models/configure-providers-local-model?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure a local model server or custom providers in GitHub Copilot CLI? Revision 3, last verified 2026-11-20T13:13:12Z. https://latestn.com/tool/github-copilot/models/configure-providers-local-model (accessed 2026-11-21T09:55:02Z). @misc{LatestN_tool_github_copilot_models_configure_providers_local_model_r3, title = {How do I configure a local model server or custom providers in GitHub Copilot CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/models/configure-providers-local-model}}, note = {Revision 3; digest sha256:7703c2198b9eec6b; last verified 2026-11-20T13:13:12Z; accessed 2026-11-21T09:55:02Z} } 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/configure-providers-local-model