Toolbox

Runtime privacy internals

Maintainer notes on the telemetry and data-exfiltration controls baked into the image, including the Claude Code env-var matrix (what is set, what is deliberately not, and why).

Claude Code env-var matrix

The image sets:

Host-side (not baked — set per-shell by sessionplan.shellEnv): CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX=<workspace basename>. The upstream default is the machine hostname, which inside the container is the container name (SessionPlan.Hostname) — every Remote Control session on claude.ai web/mobile would be named after the container rather than the workspace, carrying the toolbox- prefix and, on a workspace session, the path hash.

DISABLE_TELEMETRY is intentionally NOT set (it was part of the original lockdown): upstream documents that it also turns off feature-flag fetching, which drops the flag-gated features (artifact comments, MCP tasks, account skill and plugin sync, idle compaction, …) and Remote Control auto-connect, and Remote Control itself once the organization requires Trusted Devices — first reported in anthropics/claude-code#58383. It carries product analytics, not training data: the model-improvement opt-out is the claude.ai account-level privacy setting ("Help improve Claude"), and admin usage analytics (claude.ai/analytics) are collected server-side regardless of any client flag.

The CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC umbrella flag is likewise NOT set, for a stronger documented reason: it turns off feature-flag fetching too, and makes Remote Control unavailable outright. Baking it into the image was also correlated with intermittent OAuth re-login prompts on long-lived shells. The granular switches above cover the privacy part of what it bundles.

CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES is likewise NOT set. → Claude progress summaries left on

Remote Control (claude --remote-control, pairs the session with claude.ai web/mobile) is outbound-HTTPS-only — no inbound ports, so it works inside the container without -p bindings or the loopback bridge. The /config toggle "Enable Remote Control for all sessions" persists in the ~/.claude bind and survives container recreates.

When a plugin is refreshed Claude Code prompts for /reload-plugins. Bumping the CLI itself is a Dockerfile concern: CLAUDE_CODE_VERSION + image rebuild (Renovate-driven). On such a bump, docker-ci's claude-env-changes job comments the env vars the upstream changelog range names, and the lines that touch a variable this section covers: the cue to revisit this matrix. Informational only; the script is .github/scripts/claude-env-changes.py.