Unclear What the variable does when set, and which values it accepts, is not stated.
What
CLAUDE_CODE_ENDPOINT_SERVES_WEB_SEARCH is a new environment variable, a named setting handed to a program when it starts. It sits in a list next to CLAUDE_CODE_DISABLE_WEB_FETCH and CLAUDE_CODE_WEBFETCH_MCP_TOOL, and several parts of Claude Code refer to it.
Why
By its name, it would let you tell Claude Code that a custom endpoint, meaning an address other than the default one Claude Code sends requests to, provides web search.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What the variable does when set, and which values it accepts, is not stated.