Answer: Set the environment variables COPILOT_PROVIDER_GHES_HOST, COPILOT_PROVIDER_GHES_TOKEN, and COPILOT_OFFLINE before starting Copilot CLI. The GitHub Enterprise Server provider is only active when offline mode is enabled. Status: Confirmed Entry: tool/github-copilot/install-and-setup/connect-copilot-cli-client-ghes Revision: 1 Digest: sha256:6f54b3815c861132 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:21:41Z Last changed: 2026-11-13T03:21:41Z Last verified: 2026-11-20T12:58:22Z Next check: 2026-11-21T12:58:22Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Host variable | COPILOT_PROVIDER_ GHES_HOST | [1] | 2026-11-20 Token variable | COPILOT_PROVIDER_ GHES_TOKEN | [1] | 2026-11-20 Offline mode variable | COPILOT_OFFLINE | [1] | 2026-11-20 Offline mode requirement | The GitHub Enterprise Server provider is only active when offline mode is enabled. | [1] | 2026-11-20 Sources: [1] GitHub. "Set up GitHub Copilot CLI for GitHub Enterprise Server - GitHub Enterprise Server 3.23 Docs". https://docs.github.com/en/copilot/copilot-on-ghes/set-up-copilot-cli Role: primary. Accessed: 2026-11-20T12:58:22Z Quote: "COPILOT_PROVIDER_ GHES_HOST Yes The hostname of your GitHub Enterprise Server instance." (Supports: Host variable) Quote: "COPILOT_PROVIDER_ GHES_TOKEN Yes A personal access token for the GitHub Enterprise Server instance." (Supports: Token variable) Quote: "COPILOT_OFFLINE Yes Enables offline mode." (Supports: Offline mode variable) Quote: "The GitHub Enterprise Server provider is only active when offline mode is enabled." (Supports: Offline mode requirement) Snapshot SHA-256: 2f0e11c1aefefd6dcb384433f3401ee98dd710e5de17c3be8b628d7a1d2d456e (captured 2026-11-20T12:58:21Z) 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]. Cross-check: not-available at 2026-11-20T12:58:22Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:58:22Z Last attempt: 2026-11-20T12:58:22Z Notes and limitations: Extracted automatically from a single official source (section "Configuring your Copilot CLI client (end user)"). Related: https://latestn.com/tool/github-copilot/install-and-setup/container-deployments How do I deploy the GitHub Copilot SDK in Kubernetes or Azure Container Instances with persistent storage? https://latestn.com/tool/github-copilot/install-and-setup/copilot-agents-prerequisites What prerequisites do I need before using Copilot agents on GitHub? https://latestn.com/tool/github-copilot/install-and-setup/copilot-app-prerequisites What are the prerequisites for installing the GitHub Copilot app? https://latestn.com/tool/github-copilot/install-and-setup/choose-sdk-setup-path Which GitHub Copilot SDK setup path should I choose for my use case? https://latestn.com/tool/github-copilot/install-and-setup/cli-quickstart How do I get started with GitHub Copilot CLI? https://latestn.com/tool/github-copilot/install-and-setup/configure-local-cli-binary How do I configure the GitHub Copilot SDK to use a local CLI binary? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:21:41Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/install-and-setup/connect-copilot-cli-client-ghes/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/install-and-setup/connect-copilot-cli-client-ghes POST: https://latestn.com/dispute/tool/github-copilot/install-and-setup/connect-copilot-cli-client-ghes with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/install-and-setup/connect-copilot-cli-client-ghes?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I connect my GitHub Copilot CLI client to a GitHub Enterprise Server instance? Revision 1, last verified 2026-11-20T12:58:22Z. https://latestn.com/tool/github-copilot/install-and-setup/connect-copilot-cli-client-ghes (accessed 2026-11-21T09:54:59Z). @misc{LatestN_tool_github_copilot_install_and_setup_connect_copilot_cli_client_ghes_r1, title = {How do I connect my GitHub Copilot CLI client to a GitHub Enterprise Server instance?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/install-and-setup/connect-copilot-cli-client-ghes}}, note = {Revision 1; digest sha256:6f54b3815c861132; last verified 2026-11-20T12:58:22Z; accessed 2026-11-21T09:54:59Z} } 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/install-and-setup/connect-copilot-cli-client-ghes