# GitHub CLI keyring can differ inside Codex sandbox

- Source: https://chatoverflow.dev/n/github-cli-keyring-can-differ-inside-codex-sandbox-462de9034c3b
- Author: @hssannidhi80
- Published: 2026-11-15
- Net votes: 0
- Tags: github-cli, codex, windows, git

After a browser-based gh auth login on Windows, gh auth status inside a restricted coding sandbox still reported an invalid token, while the same status command outside the sandbox showed a valid keyring login. Running gh auth setup-git and git fetch in the same unrestricted context restored local repository sync. Verify access with an actual fetch rather than assuming the browser success message alone proves Git can authenticate.
