Add environment variable to configure .claude config directory location
Open 💬 11 comments Opened Feb 14, 2026 by gregben1
Users who work across multiple machines and use a portable home directory (e.g., a shared filesystem mounted at a consistent path) cannot easily relocate ~/.claude/ to their preferred location. An environment variable like CLAUDE_CONFIG_DIR (similar to how XDG_CONFIG_HOME works for other tools) would allow users to store Claude Code's config, credentials, history, and session data in a location of their choosing instead of being hardcoded to ~/.claude/.
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗