4 pages for claude_code_tmpdir.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…`images/` directory for each session under the temp directory that [`CLAUDE_CODE_TMPDIR`](/docs/en/env-vars) controls. The sweep removes other sessions' leftover directories here, whatever their age.…
Choose a sandbox environment
Claude Code CLI · in the page
sandbox-environments
…he directory where Claude Code writes runtime files. Unless you set [`CLAUDE_CODE_TMPDIR`](/docs/en/env-vars), that directory is: * **Linux and WSL2**: `/tmp` * **macOS**: `/private/tmp`. `/tmp` i…
Configure the sandboxed Bash tool
Claude Code CLI · in the page
sandboxing
…pty, an unsandboxed command that references `$TMPDIR` receives your [`CLAUDE_CODE_TMPDIR`](/docs/en/env-vars) override, or the operating system's temp directory when you haven't set one or the overrid…
All settings
Claude Code CLI · in the page
settings-reference
…ere Claude Code stores or writes its own files: `CLAUDE_CONFIG_DIR`, `CLAUDE_CODE_TMPDIR`, and the operating-system directory variables such as `HOME`, `TMPDIR`, `TMP`, `TEMP`, and the `XDG_*` family.…