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.300(1件)

Changed
Claude Desktop の Code タブにおいて、forceLoginGatewayUrl がセッションのホスト名を処理する Anthropic 運用のゲートウェイを指定している場合にマネージド設定を適用するように変更した。そのゲートウェイは起動時に到達可能である必要がある
英語原文を表示
Changed Claude Desktop's Code tab to apply managed settings when forceLoginGatewayUrl names an Anthropic-operated gateway that serves the session's hostname; that gateway must be reachable at start

変更後

Claude Desktop の Code タブで、Anthropic が運用するゲートウェイがセッションのホスト名を提供している場合に、管理設定が適用されるため、Code タブでも組織のポリシーが確実に反映される。

v2.1.296(1件)

Fixed
マネージド設定で forceLoginMethod が gateway に設定され、forceLoginGatewayUrl が指定されていないマシンにおいて、保存済みの Claude アプリゲートウェイのサインインが無視される問題を修正した(2.1.295 でのリグレッション)
英語原文を表示
Fixed a saved Claude apps gateway sign-in being ignored on machines whose managed settings set forceLoginMethod to gateway with no forceLoginGatewayUrl (regression in 2.1.295)

v2.1.295(1件)

Added
管理設定がないマシンのユーザー設定で forceLoginMethod: 'gateway' と forceLoginGatewayUrl をサポート:/login がその Claude apps gateway で開く
英語原文を表示
Added support for forceLoginMethod: "gateway" and forceLoginGatewayUrl in your own user settings on machines with no managed settings, so /login opens on that Claude apps gateway

変更後

管理設定が配布されていないマシンでも、各自の ~/.claude/settings.json に forceLoginMethod: 'gateway' と forceLoginGatewayUrl を設定できるようになり、/login を実行するとそのまま Claude アプリのゲートウェイ画面にURL入力済みの状態でアクセスできる。

v2.1.265(1件)

Changed
管理対象設定に 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

変更後

管理者が forceLoginGatewayUrl を設定したマシンでも、起動時から必ず Claude アプリのゲートウェイで認証されるようになり、以前の claude.ai ログインや API キーが残っていてもそれが使われなくなるため、組織のポリシーどおりのログイン状態を確実に保てる。