What probably matters to youSection of the release
Unclear Other parts of Claude Code also read this variable, and it is not clear what it changes there.
What
Claude Code now reads a new environment variable, CLAUDE_CODE_DISABLE_WEB_FETCH. An environment variable is a named value you set in your shell or system before starting Claude Code. When this one is set, the WebFetch tool is turned off. WebFetch is the tool Claude uses to download a web page and read it.
Why
It gives you, or an administrator, a simple way to stop Claude Code from fetching web pages.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up CLAUDE_CODE_DISABLE_WEB_FETCH, on Tools reference.On Claude Code v2.1.285 or later, set [`CLAUDE_CODE_DISABLE_WEB_FETCH`](/docs/en/env-vars#variables) to `1` to turn WebFetch off.tools-referencesee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtOther parts of Claude Code also read this variable, and it is not clear what it changes there.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_DISABLE_WEB_FETCH, on Tools reference.
Anthropic's release notes agreeAdded CLAUDE_CODE_DISABLE_WEB_FETCH environment variable to turn off the WebFetch tool
The name it cites is new in this buildNew in this build: CLAUDE_CODE_DISABLE_WEB_FETCH