settings.json

forceLoginGatewayUrl

string記述場所管理者設定のみ

ログイン時に Cloud ゲートウェイの URL を事前入力し、編集をロックするための設定です。

記述例

{
  "forceLoginGatewayUrl": "https://claude-gateway.example.com"
}

使い方・用途

  • 管理者設定でのみ有効です。
  • forceLoginMethod: "gateway" と併用することで、組織のゲートウェイへ直接ログインを誘導します。
英語原文(公式ドキュメントより)

Pre-fills and locks the gateway URL on the /login Cloud gateway screen. Either this key or forceLoginMethod: "gateway" surfaces that screen; set both so the URL is filled in. Honored only at the managed policy tier; ignored in user and project settings. See https://code.claude.com/docs/en/claude-apps-gateway#set-the-gateway-url

関連ドキュメント

関連する変更履歴

v2.1.265(1件)

Changed
managed settings に forceLoginGatewayUrl が設定された端末を、forceLoginMethod: gateway と同様に、起動時から Claude アプリゲートウェイのセッションとして扱うよう変更。残っている claude.ai のログインや API キーは使用しない。
英語原文を表示
Changed machines with forceLoginGatewayUrl in managed settings to be Claude apps gateway sessions from startup, like forceLoginMethod: "gateway"; a leftover claude.ai login or API key is not used

変更前

managed settings に forceLoginGatewayUrl を設定しても、claude.ai へのログインや API キーが残っている端末では起動時にそれらが使われ、ゲートウェイ画面への誘導が保証されていなかった。

変更後

managed settings に forceLoginGatewayUrl が設定された端末では、起動時から Claude アプリゲートウェイのセッションとして動作する。forceLoginMethod: gateway を指定した場合と同じ挙動になり、残っている claude.ai のログイン情報や API キーは使われない。

ユーザーへの恩恵

開発者は認証情報の残骸に左右されず、起動時に確実にゲートウェイ経由のログインへ誘導できる。