Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.72 ·

GCP Auth Refresh

Entry
JSON All of v2.1.72
EntryKind: in v2.1.72,
ChangesSection of the release
What

A new gcpAuthRefresh setting that automatically refreshes GCP/Vertex AI credentials when they expire, similar to the existing awsAuthRefresh for AWS.

Usage: Add to settings or ~/.claude.json:

{
  "gcpAuthRefresh": "gcloud auth application-default login"
}
Details
  • Automatically detects expired GCP credentials ("Could not load the default credentials", "Could not refresh access token", invalid_grant)
  • Runs the configured refresh command before making API calls
  • Times out after 3 minutes with a warning
  • Validates credentials before running refresh (skips if still valid)
  • Works with Vertex AI authentication (checks CLAUDE_CODE_USE_VERTEX)
  • Respects the new CLAUDE_CODE_SKIP_VERTEX_AUTH environment variable
Evidence

New settings schema field and credential checker (search for "gcpAuthRefresh", "Could not load the default credentials")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.72 →

Feedback