settings.json

gcpAuthRefresh

型string記述場所どの設定ファイルでも可

GCP認証情報の期限切れやロード失敗時に、認証を更新するために実行するコマンドを指定します。

記述例

{
  "gcpAuthRefresh": "gcloud auth application-default login"
}

使い方・用途

  • Google Cloud(Vertex AI等)を利用する際、ブラウザベースの認証フロー(gcloud auth等)を自動的にトリガーして認証を継続させたい場合に使用します。
  • コマンドの出力はユーザーに表示されますが、対話的な入力はサポートされません。
  • コマンドは3分以内に完了する必要があります。
英語原文(公式ドキュメントより)

Command to run when GCP credentials are expired or cannot be loaded. The command's output is displayed to the user but interactive input is not supported; it times out after three minutes. See https://code.claude.com/docs/en/google-vertex-ai#advanced-credential-configuration

関連する変更履歴

v2.1.288(1件)

Fixed
別の Claude Code プロセスがサインイン中にノート PC がスリープから復帰した際、gcpAuthRefresh/awsAuthRefresh のブラウザサインイン画面がもう一つ開く問題を修正した
英語原文を表示
Fixed a second gcpAuthRefresh/awsAuthRefresh browser sign-in opening when a laptop wakes from sleep while another Claude Code process is signing in

v2.1.286(1件)

Fixed
gcpAuthRefresh や awsAuthRefresh の認証情報が期限切れになったとき、複数の Claude Code プロセスや IDE 拡張機能がそれぞれログイン用ブラウザを開いてしまう問題を修正した
英語原文を表示
Fixed several Claude Code processes and IDE extensions each opening a login browser when gcpAuthRefresh or awsAuthRefresh credentials expire

v2.1.281(1件)

Fixed
Claude Code の終了時やリフレッシュのタイムアウト時に、gcpAuthRefresh/awsAuthRefresh のログインプロセスが動き続け(Windows では localhost のコールバックポートを保持し続け)る問題を修正した
英語原文を表示
Fixed gcpAuthRefresh/awsAuthRefresh login processes being left running (and holding their localhost callback port on Windows) when Claude Code exits or the refresh times out

関連ドキュメント

v2.1.261(1件)

Fixed
Google 認証情報のチェックに時間がかかった際、認証情報が有効であるにもかかわらず gcpAuthRefresh が起動時にブラウザを開く問題を修正した。
英語原文を表示
Fixed gcpAuthRefresh opening a browser at startup when the Google credential check was slow, even though the credential was still valid