settings.json

remote.defaultEnvironmentId

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

CLI から作成するクラウド セッションのデフォルトのクラウド環境を選択します。

既定値: unset, so Claude Code uses the Anthropic-hosted environment when your list has one, and otherwise the first environment in your list that isn't a [Remote Control bridge environment](/docs/en/cloud-environments#the-default-environment), or the first environment when every one is a bridge environment

記述例

{
  "remote": {
    "defaultEnvironmentId": "env_0123abcd"
  }
}

使い方・用途

  • デフォルト値は未設定(リストに環境がある場合は Anthropic ホスト環境、それ以外は最初の環境)
  • /remote-env コマンドで環境を選択すると、ユーザー設定に保存されます
  • 管理設定など、より優先度の高い設定レイヤーで上書きされる可能性があります
  • v2.1 以降で利用可能
英語原文(公式ドキュメントより)

Pick the default [cloud environment](/docs/en/cloud-environments) for cloud sessions you create from the CLI, such as with claude --cloud. Claude Code writes this key to your user settings when you pick an environment with [/remote-env](/docs/en/cloud-environments#select-an-environment-from-the-cli).