[BUG] Plugins are installed and uninstalled globally even when using multiple CLAUDE_CONFIG_DIR directories

Resolved 💬 2 comments Opened Apr 10, 2026 by LeaVerou Closed Apr 10, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I'm using multiple local "profiles" via different CLAUDE_CONFIG_DIR settings (same account). Although installed plugins are supposed to be installed within the config dir, installing or uninstalling a plugin in one profile affects all others.

What Should Happen?

Installed plugins should be separate per config dir.

Error Messages/Logs

Steps to Reproduce

  1. Copy ~/.claude to ~/.claude-foo
  2. In ~/.zshrc add:
alias claude-foo='CLAUDE_CONFIG_DIR=~/.claude-foo command claude'
alias claude-default='CLAUDE_CONFIG_DIR=~/.claude command claude'
  1. Run claude-foo.
  2. Run /plugin
  3. Install a plugin, e.g. frontend-design
  4. exit
  5. Run claude-default
  6. Run /plugin, go to Installed
  7. Surprise! frontend-plugin is there now.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.98

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗