⌨️CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION
Also known as CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION environment variable
It caps how many web searches one session can run.
Think of it like
It is like a cap on trips to the shop. One job gets only so many.
Example
Lucy's research job ran for hours and searched hundreds of times. She sets a cap of 50, and Claude writes up what it found when it hits it.
Why it matters
Searches cost money and time. A cap stops a long job from searching without end.
Definition
Example code
bash
export CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION=50
claudeCommon mistake
Key takeaways
- 1Default 200. Per session.
- 2At the cap. Claude wraps up.
- 3Raise, not remove. 0 is ignored.