環境変数

CLAUDE_CODE_PLUGIN_CACHE_DIR

プラグインのルートディレクトリを上書きします(マーケットプレイスやキャッシュはこの下のサブディレクトリに配置されます)。

使い方・用途

  • コンテナイメージ作成時にプラグインを特定のディレクトリ(/opt/claude-seed など)に直接インストールして固めたい場合に利用します。
  • OS 固有のパス制限(Windows の OneDrive 同期フォルダなど)を回避するために、保存先を明示的に変更できます。
英語原文(公式ドキュメントより)

Override the plugins root directory. Despite the name, this sets the parent directory, not the cache itself: marketplaces and the plugin cache live in subdirectories under this path. Defaults to ~/.claude/plugins

関連する変更履歴

v2.1.72 (1件)

Fixed
Windows でのプラグインインストール失敗やキャッシュパスの不具合など、プラグイン周りの複数の問題を修正
英語原文を表示
Fixed several plugin issues: installation failing on Windows with EEXIST error in OneDrive folders, marketplace blocking user-scope installs when a project-scope install exists, CLAUDE_CODE_PLUGIN_CACHE_DIR creating literal ~ directories, and plugin.json with marketplace-only fields failing to load

変更前

Windows の OneDrive 同期フォルダでの EEXIST エラーや、キャッシュディレクトリのチルダ(~)がリテラルとして扱われる問題、特定のスコープでのインストール重複など、プラグイン利用において複数の障壁がありました。

変更後

OS 固有のパス処理やスコープの優先順位、plugin.json の読み込みロジックが修正され、安定性が向上しました。

ユーザーへの恩恵

OS やインストール環境を問わず、プラグインによる機能拡張が確実に動作するようになります。