Answer: You can set environment variables including COPILOT_ALLOW_ALL, COPILOT_ASSISTED_APPROVAL, COPILOT_MODEL, COPILOT_HOME, COPILOT_AUTO_UPDATE, COPILOT_GITHUB_TOKEN, GH_TOKEN, GITHUB_TOKEN, and GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS to configure the CLI's behavior when running programmatically. Status: Confirmed Entry: tool/github-copilot/settings/environment-variables-2 Revision: 3 Digest: sha256:8008907e9763d7ed (changes whenever the content changes) Timeline: Created: 2026-11-14T13:11:35Z Last changed: 2026-11-18T13:09:20Z (GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS: — → true) Last verified: 2026-11-20T13:13:18Z Next check: 2026-11-21T13:13:18Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of COPILOT_ALLOW_ALL | true | [1] | 2026-11-20 COPILOT_ASSISTED_APPROVAL | true | [1] | 2026-11-20 COPILOT_MODEL | gpt-6-astra | [1] | 2026-11-20 COPILOT_HOME | ~/.copilot | [1] | 2026-11-20 COPILOT_AUTO_UPDATE | false | [1] | 2026-11-20 COPILOT_GITHUB_TOKEN | highest precedence | [1] | 2026-11-20 GH_TOKEN | second precedence | [1] | 2026-11-20 GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS | true | [1] | 2026-11-20 Sources: [1] GitHub. "GitHub Copilot CLI programmatic reference - GitHub Docs". https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-programmatic-reference Role: primary. Accessed: 2026-11-20T13:13:18Z Quote: "COPILOT_ALLOW_ALL Set to true for full permissions" (Supports: COPILOT_ALLOW_ALL) Quote: "COPILOT_ASSISTED_ APPROVAL Set to true to turn on assisted permissions for a non-interactive run" (Supports: COPILOT_ASSISTED_APPROVAL) Quote: "COPILOT_MODEL Set the model (for example, gpt-6-astra , claude-haiku-4.5 )" (Supports: COPILOT_MODEL) Quote: "COPILOT_HOME Set the directory for the CLI configuration file ( ~/.copilot by default)" (Supports: COPILOT_HOME) Quote: "COPILOT_AUTO_ UPDATE Set to false to disable automatic updates" (Supports: COPILOT_AUTO_UPDATE) Quote: "COPILOT_GITHUB_ TOKEN Authentication token (highest precedence)" (Supports: COPILOT_GITHUB_TOKEN) Quote: "GH_TOKEN Authentication token (second precedence)" (Supports: GH_TOKEN) Quote: "GITHUB_COPILOT_ PROMPT_MODE_EXTENSIONS Set to true to allow project extensions to load for a prompt or direct workflow run." (Supports: GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS) Snapshot SHA-256: b602b79754b43eac1a94d06d2449530ec8c83c8b0e37ab167e33ac5d861f6624 (captured 2026-11-18T13:09:20Z) 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:20Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:13:18Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:13:18Z Last attempt: 2026-11-20T13:13:18Z Notes and limitations: Extracted automatically from a single official source (section "Environment variables"). Related: https://latestn.com/tool/github-copilot/settings/exclude-content-repository How do I exclude content from GitHub Copilot for my repository? https://latestn.com/tool/github-copilot/settings/extension-location Where can I place a GitHub Copilot CLI extension file so it gets loaded? https://latestn.com/tool/github-copilot/settings/find-and-store-skills How do I find and store agent skills for GitHub Copilot? https://latestn.com/tool/github-copilot/settings/enable-telemetry How do I enable telemetry in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/settings/enable-voice-input How do I enable voice input in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/settings/environment-variables How do I set GitHub Copilot SDK options using environment variables? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:09:20Z | changed | GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS: — → true | [1] 2026-11-18T13:09:20Z | changed | GITHUB_TOKEN: third precedence → — | [1] 2026-11-16T12:57:32Z | changed | GITHUB_TOKEN: GITHUB_TOKEN → third precedence | [1] 2026-11-16T12:57:32Z | changed | GH_TOKEN: GH_TOKEN → second precedence | [1] 2026-11-16T12:57:32Z | changed | COPILOT_GITHUB_TOKEN: COPILOT_GITHUB_ TOKEN → highest precedence | [1] 2026-11-16T12:57:32Z | changed | COPILOT_AUTO_UPDATE: COPILOT_AUTO_ UPDATE → false | [1] 2026-11-16T12:57:32Z | changed | COPILOT_HOME: COPILOT_HOME → ~/.copilot | [1] 2026-11-16T12:57:32Z | changed | COPILOT_MODEL: COPILOT_MODEL → gpt-6-astra | [1] 2026-11-16T12:57:32Z | changed | COPILOT_ASSISTED_APPROVAL: COPILOT_ASSISTED_ APPROVAL → true | [1] 2026-11-16T12:57:32Z | changed | COPILOT_ALLOW_ALL: COPILOT_ALLOW_ALL → true | [1] 2026-11-14T13:11:35Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/settings/environment-variables-2/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/settings/environment-variables-2 POST: https://latestn.com/dispute/tool/github-copilot/settings/environment-variables-2 with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/settings/environment-variables-2?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Which environment variables can I set for GitHub Copilot CLI? Revision 3, last verified 2026-11-20T13:13:18Z. https://latestn.com/tool/github-copilot/settings/environment-variables-2 (accessed 2026-11-21T09:52:30Z). @misc{LatestN_tool_github_copilot_settings_environment_variables_2_r3, title = {Which environment variables can I set for GitHub Copilot CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/settings/environment-variables-2}}, note = {Revision 3; digest sha256:8008907e9763d7ed; last verified 2026-11-20T13:13:18Z; accessed 2026-11-21T09:52:30Z} } 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/settings/environment-variables-2