Skip to content
BENIBIX Learn

DISABLE_TELEMETRY

AI⌨️ Claude CodeConfiguration

Also known as DO_NOT_TRACK

Any value stops the usage data sent home.

Think of it like

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

Example

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

Why it matters

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

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 code

bash
export DISABLE_TELEMETRY=1
claude
Send no usage data to Anthropic.
This switch closes the upper road.

Common mistake

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

Key takeaways

  1. 1
    Any value opts out. Even 0.
  2. 2
    Unset to turn back on. Not 0.
  3. 3
    DO_NOT_TRACK. Same, but 0 means on.

Compare