Claude Code DISABLE_TELEMETRY Also Turns Off Feature Flags
DISABLE_TELEMETRY stops more than analytics: it also stops feature-flag fetching. Four variables do this and 16 features need it. Find which one is set.
If a command or feature went missing after you set DISABLE_TELEMETRY=1, the cause is in the variable's own row in the official env-vars doc: it also turns off feature-flag fetching. The last sentence of that row:
Also disables feature-flag fetching.Claude Code switches some features on with feature flags it fetches from Anthropic. When fetching is off, features that depend on a flag are unavailable.
[1] Four variables turn fetching off. The doc names them at the top of "Features that need feature-flag fetching":
| Variable | Value that turns it on | What the doc says |
|---|---|---|
DISABLE_TELEMETRY | any non-empty value | 0 or false still opts out. Unset it to turn telemetry back on |
DO_NOT_TRACK | 1 | Same effect as DISABLE_TELEMETRY. A standard boolean, so 0 leaves telemetry on |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC | any non-empty value | Disables auto-updates, telemetry, error reporting, /feedback, release notes and other nonessential traffic. 0 or false still disables |
CLAUDE_CODE_DISABLE_FEATURE_FLAGS | 1 | Turns off fetching only (telemetry logging stays on). Requires v2.1.319 or later |
The older name DISABLE_GROWTHBOOK still works for CLAUDE_CODE_DISABLE_FEATURE_FLAGS, and the doc says it is the only name v2.1.124 through v2.1.318 read.
Two kinds of session skip the fetch with no variable set: a session on a third-party provider (Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform, Microsoft Foundry; a host platform that embeds Claude Code and sets CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST is the exception), and a Claude apps gateway session.
[2] With fetching off, the doc lists 16 things you can't do. In the doc's order, in the words you see on screen:
| # | Unavailable | Condition or note in the doc |
|---|---|---|
| 1 | Remote Control | Sessions with fetching off. Differences by variable in [3] |
| 2 | Messaging sessions on other machines | When Remote Control is unavailable. Sessions on the same machine still work |
| 3 | claude import and /import | |
| 4 | /skill-doctor and its report in the /plugin Stats tab | |
| 5 | /restart | Pro, Max and Ultra plans |
| 6 | Syncing skills and plugins from your claude.ai account into terminal sessions | |
| 7 | Turning on the "You should know" mod | |
| 8 | The advisor tool | Exception: v2.1.300 or later on Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed) |
| 9 | MCP tasks | |
| 10 | Turning on Code Mode | |
| 11 | Reading or replying to comments on an artifact | |
| 12 | Having Claude read another organization's public artifact | |
| 13 | The PowerShell tool by default | claude.ai and Console accounts on Windows with Git Bash. Shell commands go through Git Bash unless CLAUDE_CODE_USE_POWERSHELL_TOOL=1. Without Git Bash the tool stays on |
| 14 | Claude-drafted feedback | Turned on through a fetched flag |
| 15 | Treating large pastes as pasted rather than typed text | The content behind a [Pasted text #N] placeholder reaches Claude unmarked |
| 16 | Excluding MCP tools whose input schema the API would reject |
[3] Remote Control depends on which variable you set ("Requirements" in the Remote Control doc):
| Variable set | Remote Control |
|---|---|
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, CLAUDE_CODE_DISABLE_FEATURE_FLAGS | Unavailable. Unset it in both your shell and the env block of settings.json |
Only DISABLE_TELEMETRY or DO_NOT_TRACK | Available, unless your organization requires Trusted Devices (then unset the variable). Needs v2.1.283 or later, or v2.1.304 or later in the Claude Desktop app |
[4] A report says a model is missing from the model list. The issue is titled "DISABLE_TELEMETRY hides Fable 5.2 from the /model picker because feature flags are ignored". The author put the variable in the env block of settings.json, saw the Fable row show 5.1 in /model, and saw 5.2 once it was removed. The issue was open on 11/16. This article did not reproduce it, and the 16 items above don't mention the model list. Issue: https://github.com/anthropics/claude-code/issues/108726
[5] Find which variable is set. First the shell:
$ env | grep -E '^(DISABLE_TELEMETRY|DO_NOT_TRACK|CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC|CLAUDE_CODE_DISABLE_FEATURE_FLAGS|DISABLE_GROWTHBOOK)='If you see DO_NOT_TRACK=0, ignore it: with 0, telemetry stays on. Then the env block in three settings files:
$ grep -nE 'DISABLE_TELEMETRY|DO_NOT_TRACK|DISABLE_NONESSENTIAL_TRAFFIC|DISABLE_FEATURE_FLAGS|DISABLE_GROWTHBOOK' ~/.claude/settings.json .claude/settings.json .claude/settings.local.json"DO_NOT_TRACK": "0" doesn't count here either. A file that prints No such file was not checked. With CLAUDE_CONFIG_DIR, user settings live in that folder instead of ~/.claude. Organization-managed settings are not covered by this command.
[6] If you need a feature, remove the variable and restart Claude Code. Back up the settings file first, and to undo, copy the .bak back:
$ cp ~/.claude/settings.json ~/.claude/settings.json.bakThe docs don't describe a way to keep telemetry off while keeping flags on. The only direction they describe is CLAUDE_CODE_DISABLE_FEATURE_FLAGS, which turns off fetching alone.
[7] If no variable is set and a flag feature is still missing, it may be the first session. In the first session after an install, or after an upgrade to a version that adds a feature, a flag-gated feature can be missing; Claude Code saves the flags it fetches then, so the next session has it. These setups act like a first session every time:
- A clean environment on every run, such as a CI container with no flags saved earlier.
ANTHROPIC_AUTH_TOKENwith no API key, whileANTHROPIC_BASE_URLpoints at a host other than Anthropic's, such as an LLM gateway. There is no credential to fetch flags with.
For gateway limit problems see Claude Code "spend limit reached" behind a gateway. If auto-updates stopped (CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC also disables them), see Claude Code auto-update failed and claude doctor.