[BUG] Claude defaults to `.claude` despite having set `CLAUDE_CONFIG_DIR`

Resolved 💬 3 comments Opened Jun 1, 2026 by Naros Closed Jul 4, 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?

When using /plugin install to install a Plugin, claude wants to install it into ~/.claude despite the fact the environment variable for CLAUDE_CONFIG_DIR is set to ~/.claude-work.

What Should Happen?

It should honor the current config directory setting when specifying user-scope.

Error Messages/Logs

Failed to install: Source path does not exist: ~/.claude/plugins/marketplaces/...

Steps to Reproduce

  1. Set CLAUDE_CONFIG_DIR to any non ~/.claude directory
  2. Start claude
  3. Type /plugin install and pick the fronend-design plugin
  4. Select user scope

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.156

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

I've also tried from Konsole as well as IDEA terminals.

View original on GitHub ↗

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