Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.72 Home All releases olderv2.1.71 v2.1.73newer
Claude Code v2.1.72

GCP Auth Refresh

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 →