10 pages for tmpdir.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
quickstart
Claude Developer Platform · in the page
agents-and-tools/agent-skills/quickstart
…PIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -o "${TMPDIR:-/tmp}/renewable_energy.pptx" fi ``` ```bash CLI # Extract the file ID. The code execution tool runs the Skill's c…
mid-conversation-effort-example
Claude Developer Platform · in the page
build-with-claude/mid-conversation-effort-example
…le, readFile, rename, writeFile } from "node:fs/promises"; import { tmpdir } from "node:os"; import { join } from "node:path"; import Anthropic from "@anthropic-ai/sdk"; const client = new A…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…irectory 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. | | `upload…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…ent, cookies, or credentials off-origin * Deleting files in `/tmp`, `$TMPDIR`, or another shared scratch or cache directory by wildcard, glob, or age filter rather than by a specific named path * Incl…
Test plugins with evals
Claude Code CLI · in the page
plugin-evals
…ur shell's `PATH`, `HOME` set to the run's temporary home directory, `TMPDIR`, and a few constants such as `TERM=dumb`. Nothing else from your shell reaches it, and neither do the case's `EVAL_*` vari…
Choose a sandbox environment
Claude Code CLI · in the page
sandbox-environments
…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` is a symlink…
Configure the sandboxed Bash tool
Claude Code CLI · in the page
sandboxing
…esystem isolation](#disable-filesystem-isolation), Claude Code sets `$TMPDIR` to this directory for sandboxed commands, so tools that write temporary files work without extra configuration. Unsandbox…
All settings
Claude Code CLI · in the page
settings-reference
…ode 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. * Windows…
Security
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/security
…** `eval "$(mcpdo private)"` creates a fresh `0700` directory under `$TMPDIR/mcp-conn-<uid>/` and exports `MCP_INSPECTOR_DAEMON_DIR` and `MCP_INSPECTOR_DAEMON_TOKEN` into that shell, so the shell gets…
Security
Model Context Protocol · in the page
docs/draft/tools/inspector/security
…** `eval "$(mcpdo private)"` creates a fresh `0700` directory under `$TMPDIR/mcp-conn-<uid>/` and exports `MCP_INSPECTOR_DAEMON_DIR` and `MCP_INSPECTOR_DAEMON_TOKEN` into that shell, so the shell gets…