Skip to content

fix: respect CLAUDE_CONFIG_DIR env var for custom config locations - #14

Merged
Michaelliv merged 1 commit into
mainfrom
fix/claude-config-dir
Feb 26, 2026
Merged

Michaelliv merged 1 commit into
mainfrom
fix/claude-config-dir

Conversation

@Michaelliv

Copy link
Copy Markdown
Owner

Users with multi-account Claude Code setups use CLAUDE_CONFIG_DIR to separate configurations. cq now checks this env var and uses it as the base config path, falling back to ~/.claude when not set.

Changes

  • New claudeConfigDir() helper that checks CLAUDE_CONFIG_DIR first, falls back to ~/.claude
  • cq doctor shows which config dir is in use and prints actual paths instead of hardcoded ~/.claude
  • Watcher uses the same helper for project lookup

Tested

  • Default (no env var): uses ~/.claude as before
  • CLAUDE_CONFIG_DIR=/tmp/fake: correctly reports missing dir
  • CLAUDE_CONFIG_DIR=~/.claude: finds all projects

Closes #11

Users with multi-account Claude Code setups use CLAUDE_CONFIG_DIR to
separate configurations. cq now checks this env var and uses it as the
base config path, falling back to ~/.claude when not set.

Closes #11
@Michaelliv
Michaelliv merged commit e0ba718 into main Feb 26, 2026
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.

cq fails to find conversations when CLAUDE_CONFIG_DIR is set (multi-account setup)

1 participant