Skip to content

feat: support CLAUDE_CONFIG_DIR for user-scope Claude Code installs#622

Merged
platinummonkey merged 1 commit into
mainfrom
feat/claude-config-dir-619
Jun 29, 2026
Merged

feat: support CLAUDE_CONFIG_DIR for user-scope Claude Code installs#622
platinummonkey merged 1 commit into
mainfrom
feat/claude-config-dir-619

Conversation

@platinummonkey

@platinummonkey platinummonkey commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Respect the CLAUDE_CONFIG_DIR environment variable for user-scope Claude Code installs. When set, skills and agents install to \$CLAUDE_CONFIG_DIR/skills/ and \$CLAUDE_CONFIG_DIR/agents/ instead of ~/.claude/. Project-scope installs are unaffected.

Closes #619.

Changes

  • Add claude_code_config_dir_from_env() to read CLAUDE_CONFIG_DIR from the environment
  • Thread an optional config-dir override through resolve_relative and the *_with_home functions
  • 7 new tests; all existing tests updated for the new parameter
  • README updated

Claude Code honours the CLAUDE_CONFIG_DIR environment variable to override
the default ~/.claude configuration directory, allowing multiple accounts
to run side-by-side. Pup now respects this variable when resolving
user-scope install paths for the claude-code platform.

When CLAUDE_CONFIG_DIR is set, skills install to /skills/
and agents to /agents/ instead of ~/.claude/skills/ and
~/.claude/agents/. Project-scope installs are unaffected.

Closes #619
@platinummonkey platinummonkey requested a review from a team as a code owner June 26, 2026 20:07
@platinummonkey platinummonkey merged commit 4bff619 into main Jun 29, 2026
6 checks passed
@platinummonkey platinummonkey deleted the feat/claude-config-dir-619 branch June 29, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Claude Code - Support CLAUDE_CONFIG_DIR instead of assuming ~/.claude

2 participants