How to change how long Claude Code's WebFetch waits on a silent site
Starting with Claude Code 2.1.336 (December 3), WebFetch gives up after 30 seconds with no data from a site and reports something like No data for 30s. It used to wait a minute or more. If you often read slow sites, change the limit with an environment variable.
-
Check your version with
claude --version. The variable works on 2.1.333 or later. -
Add it, in milliseconds, to
envin~/.claude/settings.json. This sets 45 seconds.
{
"env": {
"CLAUDE_CODE_WEBFETCH_SILENCE_MS": "45000"
}
}
0 turns the limit off. With 0 or a value above 60000, a fetch can still time out after 60 seconds with no data.
-
The whole download has its own cap,
CLAUDE_CODE_WEBFETCH_DEADLINE_MS. It includes redirects, defaults to 300000 (five minutes), and0removes it. It takes plain digits only; a decimal or other spelling keeps the default. -
If a page you fetch again doesn't show a recent change, that's the cache. WebFetch reuses a fetched page for 15 minutes (900000). Change it with
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS; the value is read once per launch, and0also keeps the default.
WebFetch refuses localhost and any hostname without a dot, such as an intranet server. For those, ask Claude to run curl through the Bash tool.
Sources
Get notified when a new tip lands
Tip alerts only go out in the app. Install it and turn notifications on.