環境変数

CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL

1 を設定すると、公式プラグインマーケットプレイスの自動登録が無効になる。Claude Code はマーケットプレイスを登録しようとする時点、通常はマシンの初回対話起動時にこの変数を読み取る。その時点で変数が設定されていると、Claude Code は登録を永久にスキップする。後で変数を削除してもスキップは取り消されない。マーケットプレイスをいつでも登録するには、claude plugin marketplace add anthropics/claude-plugins-official を実行する。

使い方・用途

  • 企業の管理下にある環境で、開発者のマシンに公式プラグインマーケットプレイスを勝手に登録させたくない場合に使う。
  • 管理ポリシーの env ブロックで配布し、マシン初回の対話起動時に claude-plugins-official の自動登録を恒久的にスキップさせる場合に使う。
  • 組織側でプラグインの入手元を strictKnownMarketplaces や blockedMarketplaces による許可・拒否リストに限定する運用と組み合わせる場合に使う。
英語原文(公式ドキュメントより)

Set to 1 to disable automatic registration of the official plugin marketplace. Claude Code reads the variable when it is about to register the marketplace, usually during a machine's first interactive launch. If the variable is set at that point, Claude Code skips the registration permanently. Unsetting the variable later doesn't undo the skip. Run claude plugin marketplace add anthropics/claude-plugins-official to register the marketplace at any time