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
Describe the feature or problem you'd like to solve
Add ability to use Copilot CLI in air gapped environments with locally running models
Proposed solution
Copilot CLI cannot be used in air gapped or offline environments. While, the SDK offers the ability to add custom providers, it still expects larger GitHub connectivity.
I'd like support for an entirely offline mode that allows me to use the native Copilot CLI experience with a custom model that I am running locally.
This provides several benefits:
Complete control of my data as I control the model and can turn off connectivity to GitHub
Teams that develop code with GitHub connectivity can deploy code to offline environments and use the CLI's great features to support offline production deployments using a local model
The SDK is great, but I want offline support natively in the CLI as it's a fantastic terminal UI
Example prompts or workflows
No response
Additional context
No response
Reacted by Austin Hale, Stephen Daudell, prawel, Jesse Sanford, Sebastian Zalewski, Justin Conabree, WinInsider, Weitian Leung, José Luis, Chris Hatton and 8 more
This is supported as of v1.0.13. You can set COPILOT_OFFLINE=true to run the CLI in fully offline/air-gapped mode, and use COPILOT_PROVIDER_BASE_URL to point the CLI at a local model provider such as Ollama or vLLM. If this does not address your use case, please feel free to reopen the issue with details.
Reacted by Stephen Daudell, Giorgi Chakhidze, Doron Cohen and Techno Tim
Activity
examon commentedon Apr 7, 2026
This is supported as of v1.0.13. You can set
COPILOT_OFFLINE=trueto run the CLI in fully offline/air-gapped mode, and useCOPILOT_PROVIDER_BASE_URLto point the CLI at a local model provider such as Ollama or vLLM. If this does not address your use case, please feel free to reopen the issue with details.MorganMarshall commentedon Apr 26, 2026
I'm tired of setting environment variables