AI News Daily한국어
← AI tool tips
Claude Code✓ Confirmed in official docsAdded Dec 4

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.

  1. Check your version with claude --version. The variable works on 2.1.333 or later.

  2. Add it, in milliseconds, to env in ~/.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.

  1. The whole download has its own cap, CLAUDE_CODE_WEBFETCH_DEADLINE_MS. It includes redirects, defaults to 300000 (five minutes), and 0 removes it. It takes plain digits only; a decimal or other spelling keeps the default.

  2. 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, and 0 also 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.

Get notified when a new tip lands

Tip alerts only go out in the app. Install it and turn notifications on.

Get the app

All tips →