Does Claude Code send telemetry? What it sends and how to turn it off
What Claude Code sends besides your prompts (metrics, error reports, feedback, surveys, updates) and the exact settings that turn each one off.
Claude Code runs on your machine, but it isn't silent. To answer you it has to send your prompts and what it reads to the model. Next to that, it sends a few other things by default: usage metrics, error reports, feedback when you ask for it, a survey now and then, and update checks. None of it is hidden. Anthropic documents every one, along with the variable that turns it off. This post lists what goes out, which switch stops it, and what can't be switched off because it is the work itself.
#What does Claude Code send besides your prompts?
Anthropic's data usage page names each flow. On a Claude subscription or the Claude API, the defaults are:
| What | What's in it | Default | Turn it off |
|---|---|---|---|
| Metrics | Latency, reliability and usage patterns. Never your code, prompts or file paths | On | DISABLE_TELEMETRY=1 |
| Error reports | Error messages and stack traces from Claude Code's own internals, with secrets, paths and emails redacted first | On for Pro, Max and Ultra sign-ins on recent versions | DISABLE_ERROR_REPORTING=1 |
/feedback, /bug, /share | A copy of your conversation, code included, only when you send one | Available | DISABLE_FEEDBACK_COMMAND=1 |
| Session quality survey | "How is Claude doing this session?": your rating only | On | CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY=1 |
| Auto-updates and release notes | Version checks and downloads | On | DISABLE_AUTOUPDATER=1 |
| WebFetch safety check | The hostname of a URL Claude is about to fetch, checked against a blocklist | On | skipWebFetchPreflight: true in settings |
Two details matter more than they look:
- Metrics and error reports go to Anthropic and to third-party services (logging infrastructure and an error tracker), over TLS. That's why some teams want them off, even though the docs say metrics carry no code or prompts.
- Feedback is the only path that carries your code, and only when you choose to send it. Transcripts sent with
/feedback,/bugor/shareare kept for 5 years.
After the survey you may see a second question: "Can Anthropic look at your session transcript?" Only Yes uploads anything: the transcript, subagent transcripts and the session log, with known key and token patterns redacted, kept for up to 6 months. No sends nothing.
#Which one switch turns all of it off?
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC. Set it and Claude Code stops auto-updates, telemetry, error reporting, the /feedback command, Claude-drafted feedback, release notes, the PR status badge checks, availability checks, and the survey. It also stops feature-flag fetching.
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
Watch out for three things:
- Any non-empty value turns it on.
DISABLE_TELEMETRY,DISABLE_ERROR_REPORTINGandCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIConly check whether they're set.0orfalsestill opts out. To undo, unset them. - Some features need feature flags. With nonessential traffic or telemetry off, Claude Code skips the feature-flag fetch, and Remote Control can become unavailable. If you need Remote Control, set
DISABLE_ERROR_REPORTINGandDISABLE_FEEDBACK_COMMANDinstead, which don't touch flags. - Two things aren't covered. The WebFetch hostname check has its own setting (
skipWebFetchPreflight). Auto-install of the official plugin marketplace has its own variable (CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL).
DO_NOT_TRACK=1, the convention many developer CLIs share, works too. It has the same effect as DISABLE_TELEMETRY, and unlike the variables above, 0 leaves telemetry on.
#How do you make it permanent?
A shell export only lasts as long as your shell setup. Put the variables in the env block of your user settings, ~/.claude/settings.json, and every session and every process Claude Code starts gets them:
{
"env": {
"DISABLE_TELEMETRY": "1",
"DISABLE_ERROR_REPORTING": "1",
"DISABLE_FEEDBACK_COMMAND": "1",
"CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY": "1"
}
}
Or the one-line version:
{
"env": {
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
}
}
A value in env overrides the same variable exported in your shell. User settings apply at startup and again when you save a change. A project's .claude/settings.json can set them too, but it only applies once you trust the folder. Project settings can't set a few variables, such as where Claude Code writes its own files, but values that turn telemetry off are allowed.
If you'd rather keep updates but control them, DISABLE_AUTOUPDATER=1 stops background updates and leaves claude update working. DISABLE_UPDATES=1 blocks both, for teams that ship Claude Code through their own channel.
#How does a team enforce it?
With managed settings. An admin deploys a managed-settings.json file, an MDM policy, or server-managed settings from the claude.ai admin console, and nothing in a developer's own files overrides a managed key. On a Mac the file lives at:
/Library/Application Support/ClaudeCode/managed-settings.json
On Linux it's /etc/claude-code/managed-settings.json. The same env block goes inside. Each developer can run /status to see the "Setting sources" line, which names the managed source that applies to them.
Teams on Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry start from quieter defaults: metrics, error reports and /feedback reports are off there unless a host platform turns metrics on. The survey and the WebFetch check still run on every provider.
#What still has to go to Anthropic?
The work itself. To answer you, Claude Code sends your prompts and the model's outputs over the network, encrypted in transit with TLS 1.2 or later. "The model's context" means everything Claude reads to do the task:
- the files it opens,
- the output of the commands it runs,
- your CLAUDE.md and the instruction files it loads,
- tool definitions and the system prompt.
No telemetry switch changes that, because without it there's no answer. What happens to that data on Anthropic's side (training, retention, zero data retention) depends on your account type. That's a separate question, covered in Is Claude Code private?. Keeping secrets out of what Claude reads is covered in Claude Code and API keys.
#What is OpenTelemetry monitoring, and is it on?
It's a different kind of telemetry: the kind you collect for yourself. Claude Code can export metrics, events and traces through OpenTelemetry to a collector your organization runs, for usage, cost and tool activity across a team. It's off unless someone sets it up:
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_METRICS_EXPORTER=otlp
export OTEL_LOGS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
Even then, prompt text is <REDACTED> in events unless OTEL_LOG_USER_PROMPTS=1 is set. Bash commands, file paths and tool inputs stay out unless OTEL_LOG_TOOL_DETAILS=1 is set. A repository's own settings can't turn these exporters on or point them somewhere else; that takes your shell, user settings or managed settings. If you didn't set it up and your company didn't deploy it, it isn't running.
#How can you check what Claude Code sends?
Don't take anyone's word for it, ours included:
- Look at what applies.
/statusshows the setting sources, andclaude --debuglogs which settings and variables were read, including ones Claude Code dropped. - Watch the network. A per-app firewall like Little Snitch or LuLu shows every host a process connects to. With nonessential traffic off, you should see the model API and little else. How to see what a Mac app sends home walks through it.
- Read the transcript. Everything sent to the model in a session is also written to
~/.claude/projects/<project>/<session>.jsonlon your disk, in plain text.
#In Relais
Relais is a Mac app built on Claude Code, and it adds nothing to the list above. The app has no analytics, no telemetry and no crash reporting of its own, and the website sets no cookies and loads no analytics, ads or trackers. Relais starts the Claude Code on your Mac, under your own Claude account, and sends nothing to Anthropic itself. Claude Code sends what it always sends, under your account and Anthropic's terms. Sessions are plain Claude Code sessions in ~/.claude/projects, and your user, project and local settings load in them, so the env block from this post applies in Relais too.
Your code, files and transcripts stay on your Mac. API keys live in the macOS Keychain, in the Vault, and reach agents as environment variables, never printed. What reaches Relais's server is your account (email, name and subscription status; Mollie handles the card) and update checks. If you join a team, your messages, pages, presence and what you choose to share go too. A Token burn page goes up only if you share one. See how Relais keeps your work private, the privacy policy, and what to check before you install an AI coding tool.