← Claude Code Hub
Nov 29, 2026 · 5 min read ✦ Tip #294

Claude Code web search limit (Did no searches): the setting that raises it

Claude Code's web search runs on a budget: 200 calls per session, shared with subagents, refilled at about 100 an hour. What you see when it runs out, and the setting that raises it.

Two Claude Code sessions looking up Bun 1.4 changes: with the budget spent, the second search shows "Did no searches" and Claude answers from what it already had; with CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION set to 500 in the env block of settings.json, the same search runs

TL;DR If you see Did no searches, the budget is spent: /clear resets it right away. Before a research session, add "CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION": "500" to the env block of your settings.json.

Did no searches under a Web Search line means the session's web search budget is spent, not that the search failed. It's 200 calls by default, shared by the main conversation and its subagents. Since v2.1.290 an interactive session refills them at about 100 an hour; before, they ended at 200. With the budget empty, Claude Code doesn't send the search and tells Claude to carry on with what it has.

What you see when it runs out

An interactive session on Claude Code v2.1.332, with CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION=2 so the cap hits on the third call (output trimmed):

● Web Search("bun latest version")
  ⎿  Did 1 search in 5s
● Web Search("deno latest version")
  ⎿  Did 1 search in 5s
● Web Search("node latest lts version")
  ⎿  Did no searches
● I ran the first two searches, but the third ("node latest lts version") didn't run.
  The session's search budget was used up.

Instead of results, Claude gets this notice (it was asked to quote it verbatim):

Web search was not performed: this session's web search budget is used up (limit: 2 WebSearch
calls shared by every agent in this session; the budget refills at about 100 calls per hour, so
searching becomes possible again later in the session). Do not pause or wait for the refill:
continue with the information already gathered and say so in your answer; do not work around the
limit by querying search engines with curl or wget from Bash, by querying them in a browser or
through a computer-use tool, or by searching or fetching through a third-party reader, proxy or
archive service.

Two things follow. Claude won't wait for the refill or search some other way: no curl, no browser. And the answer is built only on the searches that did run. Claude said so in every test, but it's one sentence in a long answer, easy to miss at the bottom of a research report.

How it refills

The budget is a count of calls used. The refill hands calls back one at a time: at 100 an hour, one every 36 seconds. Once you hit the cap you don't wait an hour, but you don't get your pace back either: research that needs 50 more searches takes 30 minutes. With the cap at 2, two minutes after running out two searches ran again and the third was refused again.

Where it runs Budget Default refill
Interactive terminal session 200 calls per session, subagents included About 100 an hour, one every 36 s
claude -p and the Agent SDK 200 calls per turn None
After /clear Back to 0 (tried) Same rate
Quit, then claude --continue Back to 0 (tried) Same rate

In claude -p the notice changes and points to a follow-up message:

Web search was not performed: this turn's web search budget is used up (limit: 1 WebSearch call
per turn, shared by every agent in it). [...] If more searches are genuinely needed, tell the user
they can send a follow-up message after this reply to continue the search.

How to get your searches back

1. Right now: /clear

It resets the count. Tried with the cap at 1 and the refill off: after /clear, the next search ran. You lose the conversation's context. To keep it, quit and come back with claude --continue: the count lives in the process's memory, so the resumed conversation starts with a full budget (also tried). Every way back into a conversation is in the resume sessions tip.

2. Before a research session: raise the cap

In the project's .claude/settings.json or your ~/.claude/settings.json:

{
  "env": {
    "CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION": "500"
  }
}

Claude Code reads it from the env block: with the same file and the value set to "1", the second search in claude -p was refused. It takes a positive whole number with no upper bound; anything else is ignored and the cap goes back to 200, so you can raise the cap but not remove it. For a single session, CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION=500 claude.

3. Change the refill rate

CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR sets how many calls come back per hour. It takes digits only, and 0 turns the refill off: the notice then says it does not refill. In claude -p the default is already 0, so a long pipeline turn that searches a lot needs this variable or a higher cap.

Who spends the budget

Subagents draw from the same count. In claude -p with the cap at 1, Claude ran one search and launched a subagent for another: the subagent's search was refused: "my earlier search had used it", as Claude put it. Five subagents researching in parallel at 40 searches each spend the session's 200 in one go, and a sixth works without the web. If you run research like that through workflows, raise the cap before you launch it.

It counts calls, not queries: the docs say one WebSearch call can run up to eight backend searches, and in the binary each call takes a single unit.

Official docs: Session search limit

Requirements

  • Claude Code v2.1.212 or later for CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION; v2.1.290 for the refill and CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR. Tested on v2.1.332, on Linux, with claude -p and an interactive session.

Found this useful? See more of wmedia.es in your Google results.

Add wmedia.es as a preferred source on Google
FREE GUIDE

From the terminal to Desktop, as a guide.

Moving from the terminal to Claude Code Desktop is easy to start and easy to leave half done. 8 pages to keep beside you: day one, the map of the window, the shortcuts and your first cloud routine.

  • 1. Day one import your sessions
  • 2. The window map and shortcuts
  • 3. Conversations which to open and two prompts
  • 4. Panels which to use for what
  • 5. Routines your first in the cloud
Are you a professional Web developer?

You'll receive the guide by email · Unsubscribe anytime

of 8
#

Wmedia · 8 pages
FREE GUIDE · 8 pages · 2 prompts

From the terminal to Desktop, as a guide.

Moving from the terminal to Claude Code Desktop is easy to start and easy to leave half done. 8 pages to keep beside you: day one, the map of the window, the shortcuts and your first cloud routine.

Are you a professional Web developer? · Unsubscribe anytime

Moving from the terminal to Claude Code Desktop?