Skip to content
BENIBIX Learn

CLAUDE_CODE_PLUGIN_CACHE_DIR

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_PLUGIN_CACHE_DIR=/srv/claude-plugins

It moves the whole plugins folder, not just the cache.

Think of it like

It is like you move the whole shelf, not just one box on it.

Example

Jack's home folder has little space, and plugins fill it. He moves the plugins folder to a bigger disk.

Why it matters

Plugins and their marketplaces can grow large. This lets them live where there is room.

Definition

CLAUDE_CODE_PLUGIN_CACHE_DIR moves the folder that holds all your plugins. By default it is in ~/.claude/plugins. The name says cache, but it moves the whole plugins folder. The cache and the stores you get plugins from both sit under it.

Example code

bash
export CLAUDE_CODE_PLUGIN_CACHE_DIR=/srv/claude-plugins
claude
Keep plugins on a shared disk.
The plugins folder is the one this moves.

Common mistake

Pointing it at a cache folder inside the plugins folder. It wants the plugins folder itself.

Key takeaways

  1. 1
    Whole plugins folder. Not just cache.
  2. 2
    Default. ~/.claude/plugins.
  3. 3
    Holds marketplaces. And the cache.