Turning off non-essential traffic in Claude Code: CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC

Coding with AIClaude Code·· 11 views· 2 min read

Besides the AI requests, which come to our API, Claude Code contacts other services for things that are not part of your work, such as telemetry and automatic updates. CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC turns that traffic off. It is optional.

What stops happening

According to the Claude Code documentation, with the variable set:

What What changes for you
Automatic updates You update Claude Code by hand, with claude update.
Telemetry and error reports They are no longer sent.
The /feedback command It is turned off.
Release notes They no longer show.
Availability checks and feature flag fetching The features that depend on them, such as Remote Control, become unavailable.

Remote Control is already turned off when ANTHROPIC_BASE_URL points to an address other than the model maker's, such as ours. With All in One AI, you lose nothing there.

What does not change

AI requests still go to the address in ANTHROPIC_BASE_URL, our API. The model, the price, the credits and the Coding Plan points stay the same.

Turning it on

export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
claude

In settings.json, under the env key: "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1". It is the last line of the docs example. See saving the setup in settings.json.

Undoing it

Setting 0 or false does not bring the traffic back. According to the Claude Code documentation, these values turn it off too. To undo it, remove the variable: unset CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC in the terminal, or delete the line from settings.json.
Without automatic updates, update now and then with claude update. Check your version with claude --version.

Want to code with AI in Claude Code? Visit the Coding with AI page.

See Coding with AI

SEE ALSO

Using Claude Code with All in One AI: the variables, the model and common errors

Saving the Claude Code setup in settings.json so you do not set the variables every time

ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY: which one to use in Claude Code

Coding with AI in All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $6.60/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.