Configuration Path Ignored: CLAUDE_HOME Environment Variable Not Respectedwha
Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 6 comments · opened Jun 5, 2025 · closed Jun 5, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator)
responded on this thread — see the highlighted reply below.
Bug Description
Claude does not respect CLAUDE_HOME configuration
echo $CLAUDE_HOME
/Users/aaron/.local/share/claude
However claude still makes $HOME/.claude and stores all the files there
Environment Info
- Platform: macos
- Terminal: WarpTerminal
- Version: 1.0.11
- Feedback ID: ce1e4711-1cca-4ab7-8811-8e25b87cde40
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:892:11)\n at execSync (node:child_process:964:15)\n at JZ (file:///Users/aaron/.local/share/claude/node_modules/@anthropic-ai/claude-code/cli.js:683:2402)\n at file:///Users/aaron/.local/share/claude/node_modules/@anthropic-ai/claude-code/cli.js:582:11763\n at Q (file:///Users/aaron/.local/share/claude/node_modules/@anthropic-ai/claude-code/cli.js:526:17069)\n at LU (file:///Users/aaron/.local/share/claude/node_modules/@anthropic-ai/claude-code/cli.js:582:10909)\n at HG (file:///Users/aaron/.local/share/claude/node_modules/@anthropic-ai/claude-code/cli.js:582:10355)\n at lO2 (file:///Users/aaron/.local/share/claude/node_modules/@anthropic-ai/claude-code/cli.js:2042:4758)","timestamp":"2025-06-05T14:27:40.533Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:482:14)\n at Socket.emit (node:events:507:28)\n at Socket.emit (node:domain:489:12)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-06-05T14:27:41.139Z"}]
6 Comments
Did you mean to use
CLAUDE_CONFIG_DIRinstead ofCLAUDE_HOME?I've set both to the same effect Claude doesn't respect XDG...
So what are we meant to use,
CLAUDE_CONFIG_DIR? If only there was some standardized way to define such a config dir...I'm not happy that claude polluted my user directory, even though all my
XDG_...*env vars are correctly set and defined, and I would have expected it adhere to those.@rboyce-ant I don't believe closing this issue outright without at the very least commenting why it's being closed was the most constructive action here...
any update?
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.