# CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC

> Any value cuts each call Claude Code can do without.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

## Think of it like

It is like you unplug all the gadgets in the house. Only the fridge stays on.

## Definition

CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC stops each call Claude Code can do without. That means updates, usage data, crash reports, /feedback, release notes and flags. Any value turns it on, even 0. Calls to the model still go out. A few things that need flags stop, such as Remote Control.

## Example

Jack's firewall allows only the model's address. Every other call failed slowly. He sets this, and Claude Code stops trying them.

## Example code

```bash
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
claude
```

Keep only the calls to the model.

## Why it matters

On a locked network, it ends slow failed calls. It is also the one switch for a strict privacy rule.

## Common mistake

Expecting Remote Control to keep working. It needs feature flags, which this turns off.

## Three principles

- **One switch for all.** Updates, telemetry, reports.
- **Model calls stay.** Essential.
- **Some features stop.** Remote Control.

## Related terms

- [DISABLE_TELEMETRY](https://learn.benibix.com/term/ai/disable-telemetry-variable)
- [DISABLE_ERROR_REPORTING](https://learn.benibix.com/term/ai/disable-error-reporting-variable)
- [DISABLE_AUTOUPDATER](https://learn.benibix.com/term/ai/disable-autoupdater-variable)

## Told apart from

- [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.

![DISABLE_TELEMETRY stops one kind of traffic. NONESSENTIAL_TRAFFIC stops them all.](https://learn.benibix.com/diagrams/env-nonessential-traffic.svg)

---

Source: https://learn.benibix.com/term/ai/claude-code-disable-nonessential-traffic-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.
