Answer: To set an AI credit session limit in non-interactive mode, pass --max-ai-credits=NUMBER to the copilot command, for example: copilot -p "YOUR PROMPT" --max-ai-credits NUMBER. Status: Confirmed Entry: tool/github-copilot/pricing-and-limits/set-session-limit-non-interactive Revision: 3 Digest: sha256:bfb1b12851db0dd3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:24:54Z Last changed: 2026-11-19T12:57:23Z (example command: — → copilot -p "YOUR PROMPT" --max-ai-credits NUMBER) Last verified: 2026-11-20T13:03:37Z Next check: 2026-11-21T13:03:37Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of flag | --max-ai-credits=NUMBER | [1] | 2026-11-20 example command | copilot -p "YOUR PROMPT" --max-ai-credits NUMBER | [1] | 2026-11-20 Sources: [1] GitHub. "Setting an AI credit session limit in GitHub Copilot CLI - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/set-session-limit Role: primary. Accessed: 2026-11-20T13:03:37Z Quote: "To set a limit, pass --max-ai-credits=NUMBER ." (Supports: flag) Quote: "copilot -p "YOUR PROMPT" --max-ai-credits NUMBER" (Supports: example command) Snapshot SHA-256: 9b498ba138b4a26529aa28622cb8b7d7f0e494dfbee2b7db40f19fe22ba4dcaf (captured 2026-11-18T12:58:00Z) 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-18T12:58:00Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:03:37Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:03:37Z Last attempt: 2026-11-20T13:03:37Z Notes and limitations: Extracted automatically from a single official source (section "Setting a limit in non-interactive mode"). Related: https://latestn.com/tool/github-copilot/pricing-and-limits/set-spending-controls How do I set spending controls for GitHub Copilot in my enterprise? https://latestn.com/tool/github-copilot/pricing-and-limits/set-universal-user-budget How do I set a universal user-level budget for GitHub Copilot? https://latestn.com/tool/github-copilot/pricing-and-limits/set-up-budget-controls How do I set up budget controls for GitHub Copilot? https://latestn.com/tool/github-copilot/pricing-and-limits/set-ai-credits-limits How do I set AI credits limits for GitHub Copilot automations? https://latestn.com/tool/github-copilot/pricing-and-limits/set-budget-cap-pilot-costs How do I set a budget to cap GitHub Copilot pilot costs? https://latestn.com/tool/github-copilot/pricing-and-limits/set-session-limit-interactive How do I set an AI credit session limit in GitHub Copilot CLI during an interactive session? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:57:23Z | changed | example command: — → copilot -p "YOUR PROMPT" --max-ai-credits NUMBER | [1] 2026-11-19T12:57:23Z | changed | flag: — → --max-ai-credits=NUMBER | [1] 2026-11-19T12:57:23Z | changed | Example command: copilot -p "YOUR PROMPT" --max-ai-credits NUMBER → — | [1] 2026-11-19T12:57:23Z | changed | Flag: --max-ai-credits=NUMBER → — | [1] 2026-11-17T13:20:08Z | changed | Limit duration: the duration of Copilot's work on the task → — | [1] 2026-11-13T03:24:54Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/pricing-and-limits/set-session-limit-non-interactive/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/pricing-and-limits/set-session-limit-non-interactive POST: https://latestn.com/dispute/tool/github-copilot/pricing-and-limits/set-session-limit-non-interactive with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/pricing-and-limits/set-session-limit-non-interactive?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set an AI credit session limit in GitHub Copilot CLI in non-interactive mode? Revision 3, last verified 2026-11-20T13:03:37Z. https://latestn.com/tool/github-copilot/pricing-and-limits/set-session-limit-non-interactive (accessed 2026-11-21T09:59:52Z). @misc{LatestN_tool_github_copilot_pricing_and_limits_set_session_limit_non_interactive_r3, title = {How do I set an AI credit session limit in GitHub Copilot CLI in non-interactive mode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/pricing-and-limits/set-session-limit-non-interactive}}, note = {Revision 3; digest sha256:bfb1b12851db0dd3; last verified 2026-11-20T13:03:37Z; accessed 2026-11-21T09:59:52Z} } 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/pricing-and-limits/set-session-limit-non-interactive