11.1 — What Claude Code sends (and doesn't send)
The first legitimate question when you introduce Claude Code to a team: what data leaves your machine? The answer is transparent and verifiable.
Claude Code is a local client that communicates with the Anthropic API. Three categories of data are sent: your prompts (what you type and the history of the current conversation), the content of files read (only those Claude consults with its read tools, such as Read or Grep, to accomplish a task), and the outputs of executed commands (result of git diff, test output, etc.). This data constitutes the context the model needs to respond. On top of that, at the start of each session, Claude Code sends your CLAUDE.md files (the project's and ~/.claude/CLAUDE.md), the index of the project's auto memory, and a snapshot of the git state (branch, recent commits). Everything travels encrypted over TLS 1.2 or later.
What is not sent by default: your entire codebase at startup (no global scan), your system environment variables, your SSH keys, or, without your approval, the content of directories outside the project. The context size is limited (1M tokens on current models), Claude Code couldn't send gigabytes even if it wanted to.
Claude Code also sends usage metrics (latency, reliability) that contain no code, no prompts and no file paths. They are on by default on the Anthropic API, off by default on Bedrock, Vertex and Foundry, and DISABLE_TELEMETRY=1 turns them off. CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 turns off all non-essential traffic at once.
The flow is visible in real time. Each tool call (Read, Bash, Grep) shows up in the interface. In Manual mode, reads inside your working directory run without asking, but every file edit and every shell command outside a built-in list of read-only commands waits for your approval. Since v2.1.283, however, interactive sessions start in auto mode, where a classifier approves actions on your behalf (see 11.4). When you close your session, the next conversation starts from scratch, apart from CLAUDE.md and auto memory. The transcript still stays on your machine, in plaintext under ~/.claude/projects/, for 30 days by default (cleanupPeriodDays), so you can resume the session.
┌─────────────┐ ┌──────────────────┐
│ Your machine│ ───────► │ Anthropic API │
│ │ Sent: │ │
│ - prompts │ 1. Prompts │
│ - files │ 2. Files read │
│ - terminal │ 3. Command outputs │
└─────────────┘ └──────────────────┘
✗ No global scan
✗ No system env variables
✗ No SSH keys
✗ No code in telemetry
Key takeaways
• Sent: prompts, files read and command outputs, plus your CLAUDE.md files, project memory and git state at startup.
• No global repo scan at startup, Claude reads on demand.
• Every action is visible. In Manual mode, edits and commands wait for your approval. In auto mode, a classifier decides.
• Each session starts from scratch, but the transcript stays in plaintext under ~/.claude/projects/ (30 days by default).
