Skip to content

Support offline mode with local models #1219

Closed
Closed

Description

@skylab-styx-venus

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

Activity

  1. added
    area:models
    on Apr 6, 2026
  2. examon commented on Apr 7, 2026

    @examon

    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.

  3. MorganMarshall commented on Apr 26, 2026

    @MorganMarshall

    I'm tired of setting environment variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:models

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions