CLAUDE_CODE_WEB_FETCH_AGENT
A Claude Code environment variable, read out of the shipped bundle. It has been in the build since v2.1.232, including the newest one read.
What it is
The built-in web-fetch agent refuses observer and worktree roles and just runs locally.
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.232.
Presence across releases
| Releases | Reading | Declared type | Default |
|---|---|---|---|
| 2.1.245 – 2.1.250 5 releases | never mined | — | — |
| 2.1.232 – 2.1.243 12 releases | in the build | triBool | — |
A row reading never mined is a release with no archived bundle behind it. Nothing was read out of it, so nothing here says whether the name was in it. A declared type or a default is only ever what that release's own bundle stated.
Changelog entries naming it
-
v2.1.236Web fetch agent switch moved into per-host state
The web fetch agent decision moved per session; it still defaults off unless you set the variable.
named in this entry
-
v2.1.232Guards keep the web-fetch agent out of observer and worktree roles
The built-in web-fetch agent refuses observer and worktree roles and just runs locally.
named in this entry
-
v2.1.232Web-fetch quoting rules moved to one shared constant
Quoting rules for fetched pages now live in one shared block used by both fetch paths.
named in this entry
-
v2.1.232A built-in "web-fetch" subagent that takes over page fetching, off by default
A built-in web-fetch agent can take over page fetching and summarise pages, off by default.
named in this entry
-
v2.1.232Web fetching can be routed through a built-in agent
Fetches can be handed to a dedicated agent, but the server flag defaults off.
named in this entry
-
v2.1.232WebFetch can save binary responses to disk
Fetches can save PDFs and other binaries to disk when the fetch agent is on.
named in this entry
Documentation pages
None of Anthropic's documentation pages this site has a copy of carries this name.
Names beside it
Every environment variable in the inventory starting claude_code_web, up to twelve of them.
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MSYou can set how long WebFetch keeps pages cached, in milliseconds. 2.1.233
CLAUDE_CODE_WEBFETCH_PROXY_PATHNo description from anybody. 2.1.166
CLAUDE_CODE_WEBFETCH_USE_CCR_PROXYNo description from anybody. 2.1.169
CLAUDE_CODE_WEBSEARCH_USE_CCR_PROXYNo description from anybody. 2.1.182
CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTORNo description from anybody. 2.1.138
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the environment variable does. All environment variables.