# DISABLE_TELEMETRY

> Any value stops the usage data sent home.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** DO_NOT_TRACK

## Think of it like

It is like you tick the box that says do not send me surveys.

## Definition

DISABLE_TELEMETRY stops the usage data Claude Code sends home. Any value turns it on, even 0 or false. To send data again, unset it. It also stops the fetch of feature flags. DO_NOT_TRACK=1 does the same, but there 0 means send.

## Example

Jack's company does not allow tools to report usage. He sets this in managed settings, so no laptop sends it.

## Example code

```bash
export DISABLE_TELEMETRY=1
claude
```

Send no usage data to Anthropic.

## Why it matters

Some firms must keep tools from reporting home. This is the switch for that.

## Common mistake

Setting it to 0 to turn telemetry back on. Any value keeps it off. Unset it.

## Three principles

- **Any value opts out.** Even 0.
- **Unset to turn back on.** Not 0.
- **DO_NOT_TRACK.** Same, but 0 means on.

## Related terms

- [CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC](https://learn.benibix.com/term/ai/claude-code-disable-nonessential-traffic-variable)
- [CLAUDE_CODE_ENABLE_TELEMETRY](https://learn.benibix.com/term/ai/claude-code-enable-telemetry-variable)
- [/privacy-settings Command](https://learn.benibix.com/term/ai/privacy-settings-command)

## Told apart from

- [CLAUDE_CODE_ENABLE_TELEMETRY vs DISABLE_TELEMETRY](https://learn.benibix.com/compare/claude-code-enable-telemetry-variable-vs-disable-telemetry-variable): People think the ENABLE and DISABLE telemetry switches are the on and off of one thing. They are two roads. The first sends logs and stats to a tool you run. The second stops the usage data Claude Code sends home. You can set both. Your own team sees it all, and nothing goes home.
- [DISABLE_TELEMETRY vs CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC](https://learn.benibix.com/compare/disable-telemetry-variable-vs-claude-code-disable-nonessential-traffic-variable): People think DISABLE_TELEMETRY stops all that Claude Code sends home. It stops only usage data and flags. Crash reports, updates, release notes and /feedback still go out. The NONESSENTIAL_TRAFFIC switch stops all of those at once. Only calls to the model are left. Use the first for privacy, and the second for a locked network.

![Two separate roads: usage data to Anthropic, and OpenTelemetry to your own collector.](https://learn.benibix.com/diagrams/env-telemetry-flows.svg)

---

Source: https://learn.benibix.com/term/ai/disable-telemetry-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
