What
The optimistic tool-search path now logs a single debug line naming its mode and the ENABLE_TOOL_SEARCH value, and refuses outright when ANTHROPIC_BASE_URL points at something other than a first-party Anthropic host.
Details
- The refusal message tells you to set
ENABLE_TOOL_SEARCH=true(orauto, orauto:N) if your proxy forwards tool_reference blocks. - The explanation is emitted once, not per request.
Evidence
is not a first-party Anthropic host. Set ENABLE_TOOL_SEARCH=true (or auto / auto:N) if your proxy forwards tool_reference blocks.
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundleENABLE_TOOL_SEARCHANTHROPIC_BASE_URL
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up ANTHROPIC_BASE_URL, on Claude Code changelog.
* Fixed every turn failing with HTTP 400 on third-party Anthropic-compatible endpoints (`ANTHROPIC_BASE_URL`) since 2.1.265: a regex in the Artifact tool's input schema that those endpoints rejectchangelog see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up ANTHROPIC_BASE_URL, on Claude Code changelog.