Claude Code Release Notes
Claude Code v2.1.5 Release Notes
Claude Code v2.1.5 adds CLAUDE_CODE_TMPDIR environment variable for custom temp directory configuration.
January 12, 2026 • 2 min read • By Claude World
Claude Code v2.1.5 is now available, bringing an important environment configuration feature for users who need custom temp directory locations.
What’s New
Custom Temp Directory
This release introduces the CLAUDE_CODE_TMPDIR environment variable, allowing users to override the temp directory used for Claude Code’s internal temp files.
This feature is particularly useful for:
- Containerized environments: When running in Docker or Kubernetes and needing to write temp files to specific mount points
- Restricted systems: Environments where the default
/tmpdirectory has size or permission limitations - Enterprise environments: Organizations that need centralized temp file management or specific partition placement
- Development and debugging: Easy tracking and inspection of temp files generated by Claude Code
Usage
Set the environment variable to point to your desired directory:
export CLAUDE_CODE_TMPDIR=/path/to/custom/temp
Or specify it at launch time:
CLAUDE_CODE_TMPDIR=/my/temp/dir claude
How to Update
Update to Claude Code v2.1.5:
npm update -g @anthropic-ai/claude-code
Or use your preferred package manager. Restart Claude Code after updating to ensure all changes take effect.