Skip to main content
AI News

GitHub CLI Adds Expiring OAuth Tokens: Check Git, Scripts, and Extensions First

Automatic refresh is opt-in from v2.103.0, but cached-token workflows can break

ENHE AI5 min7 views

GitHub announced an opt-in public preview of expiring, automatically refreshing OAuth credentials for GitHub CLI on October 21, 2026, beginning with version 2.103.0. Users can enable the behavior with gh auth login --expiring or a global configuration setting. Git over HTTPS should use gh auth setup-git, and Git 2.46 or newer is recommended to avoid caching credentials beyond their lifetime. This article focuses on AI coding tools, scripts, and extensions that capture gh auth token output once and reuse it. It provides an inventory, migration, and verification sequence so users can gain a shorter exposure window without unexpectedly breaking long-running automation.

More topic tags (6)
AI NewsAuto PublishingSEOOAuthGitHub CLIgh auth
GitHub CLI Adds Expiring OAuth Tokens: Check Git, Scripts, and Extensions First

Key takeaways

Opt-in expiring credentials start with v2.103.0.
Workflows that cache gh auth token output can break.
Git over HTTPS should use the gh credential helper.

By ENHE AI · 2026-10-22 · AI-assisted drafting and editorial checks.

Direct answer: find every token cache before opting in

Expiring tokens shorten the useful life of a leaked access token, but they break scripts and extensions that read once and reuse forever. Search for gh auth token, environment exports, and credential copies before enabling the preview in a low-risk repository.

Confirmed version and behavior

Starting with GitHub CLI v2.103.0, users can enable the preview with gh auth login --expiring or set gh config set expiring_credentials enabled for future sign-ins.

GitHub CLI stores an expiring access token with a rotating refresh token and refreshes it when needed. A leaked access token becomes unusable within hours instead of remaining valid indefinitely.

Recording inputs, outcomes, and fallbacks for a real task is more reliable than a feature list. Image: Unsplash.
Recording inputs, outcomes, and fallbacks for a real task is more reliable than a feature list. Image: Unsplash.

Four checks before enabling

Upgrade to v2.103.0 or newer and use gh auth status to record the current account and host. Do not copy credentials into the report.

Search scripts and extensions for gh auth token followed by storage or copying into another tool. Change those workflows to read a fresh value each time.

For Git over HTTPS, run gh auth setup-git and prefer Git 2.46 or newer so expiring credentials are not cached beyond their lifetime.

In a low-risk repository, complete a pull, push, and one AI coding tool call, then inspect expiry state with gh auth status. Leave the preview or keep the previous sign-in path if any step fails.

Compatibility and fallback

The feature is opt-in and backward compatible. Servers that cannot issue refreshable credentials fall back to a normal nonexpiring token. It is available on github.com and ghe.com, while GHES support begins with version 3.23.

Why AI coding users should care

AI coding agents and extensions often combine several Git operations into long tasks, which can hide a read-once token assumption. Validation should cover task start, mid-run refresh, and final push rather than only successful login.

FAQ

Must I sign in again every day?

No. GitHub says gh refreshes automatically, though workflows still need handling for refresh failure or account revocation.

Do existing manual tokens change automatically?

No. Existing sign-ins and manually supplied tokens keep their current behavior unless the preview is enabled.

Related tools and reading

These pages support the same task, workflow, or risk boundary.

Conclusion

Fix every long-lived cache first, then validate a full low-risk workflow. The security gain matters only if automation does not silently break.

What this means for everyday users

AI coding agents and extensions often combine several Git operations into long tasks, which can hide a read-once token assumption. Validation should cover task start, mid-run refresh, and final push rather than only successful login.

Related reading

How to Choose AI Agent Tools: Permissions, Logs, Review, and Sandboxes

Choosing an AI agent tool should start with controllability, not with a polished demo. CISA's May 1, 2026 guidance on careful adoption of agentic AI services highlights cybersecurity risks and safe design, deployment, and operation in IT environments. Ordinary users and small teams can use four criteria before connecting a tool to real work: whether permissions are granular, whether tool calls are logged, whether important actions require human confirmation, and whether the product supports sandbox testing. These criteria help users compare AI agents as workflow components rather than treating them as ordinary chatbots or standalone demos in everyday team workflows before rollout.

GitHub Models Is Retired as Copilot CLI and AI Credit Migration Moves Into Execution

GitHub Models was fully retired on July 30, 2026. The playground, model catalog, inference API, and bring-your-own-key access are no longer available, including for customers with active usage. ENHE's July 3 page had already documented the announced retirement date; this update changes the event from a future plan to a confirmed production state and adds migration checks. GitHub points users who need direct model access toward Microsoft Foundry and users building AI workflows on GitHub toward GitHub Copilot. Teams should inventory endpoints, keys, billing ownership, rate limits, model behavior, and rollback paths before replacing the retired service. The Copilot CLI and AI credit guidance remains relevant for governed automation.

GitHub Copilot Local Sandboxing Is Generally Available

GitHub made local sandboxing generally available on October 7, 2026 for GitHub Copilot CLI, the GitHub Copilot app, and VS Code sessions that use Agent Host. The feature applies operating-system controls to agent-run commands so users can restrict filesystem paths, network access, Git credentials, and supported local tools. GitHub's documentation also sets important boundaries: local sandboxing is off by default, CLI and app settings are separate, remote MCP servers are not sandboxed, and some in-process file tools enforce policy on a best-effort basis rather than through the operating-system sandbox. This guide focuses on verification rather than the toggle itself: enable the feature, test denied reads and writes, test blocked network access, confirm credential masking, inspect MCP placement, and configure fail-closed behavior where the organization requires enforcement.

From Chat Boxes to Personal AI Companions: AI Assistants Are Entering the Desktop Execution Era

AI assistants are moving from answering questions toward continuing real tasks. AI agents, MCP tool ecosystems, personal memory, and local workbenches are pushing this shift together. For users, the real value is not another chat box, but less repeated context setup and more continuity from thinking to doing.

ZONOS3-Mini Opens Its Weights: Check Device, License, and Voice Consent Before Local Narration

Zyphra released ZONOS3-Mini on November 9, 2026. The open-weight speech model uses about 100 million active parameters and 800 million total parameters, carries an Apache 2.0 license, and is presented for browser, phone, local-device, and server execution paths. This article provides a local narration acceptance card: verify the licenses for code, weights, and dependencies; record device, runtime, and time to first audio; test ordinary text, numbers, proper names, and longer sentences separately; and require proof that any reference voice is authorized. Vendor latency and benchmark figures remain source claims, not independent evidence for a specific device. No model files, cloned voices, or audio were produced in this run.

ChatGPT Will Retire Advanced and Standard Voice: Run a Migration Check Before December 11

OpenAI says Advanced Voice and Standard Voice will retire on December 11, 2026. Ordinary voice conversations will then default to GPT-Live, and Advanced Voice inside custom GPTs is deprecated on the same date. This guide provides a migration rehearsal rather than assuming the default switch is equivalent. Inventory devices, languages, headsets, custom GPTs, video, and screen sharing; then run one fixed script covering startup, interruption, numbers, names, background noise, and a longer exchange. Record feature gaps and rollback routes for each surface. Live video and screen sharing remain on Advanced Voice until GPT-Live supports them, so a visible voice button alone does not prove migration is complete.