⌨️CLAUDE_CODE_TMPDIR
Also known as CLAUDE_CODE_TMPDIR=/var/tmp
It moves the folder where Claude Code keeps scratch files.
Think of it like
It is like you choose which drawer holds your scrap paper.
Example
Jack's server has a tiny /tmp that fills up. He points this at a bigger disk.
Why it matters
A full or locked temp folder can break tools in strange ways.
Definition
Example code
bash
export CLAUDE_CODE_TMPDIR=/var/tmp
claudeCommon mistake
Key takeaways
- 1Moves scratch files. Claude Code's own.
- 2Adds its own folder. Per user.
- 3Not project settings. Shell or user.