kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

[FEATURE]: Support provider-hosted (native) web search for Anthropic, opt-in alternative to Exa/Parallel

Open ehudc opened this issue 4 months ago • 1 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem

The built-in websearch tool is provider-independent and always executes locally against Exa/Parallel. On the Anthropic provider this means search queries egress to Exa or Parallel (often unauthenticated) even when the model itself runs on an Anthropic API key.

For orgs with a strict "no egress beyond Anthropic + its disclosed subprocessors" policy, this makes web search unusable.

Source: packages/core/src/tool/websearch.ts explicitly notes it's "a provider-independent local tool backed by Exa or Parallel. Provider-hosted web search tools are separate and execute at the model provider."

Request

Add a config option to route web search through the model provider's native server-side search when available, instead of Exa/Parallel. For Anthropic, this means sending the web_search server tool (e.g. web_search_20250305, or the newer web_search_20260209 with dynamic filtering) in the request tools array, so the search executes at Anthropic (covered by Anthropic's subprocessor/DPA).

Something like: "websearch": { "provider": "native" } // vs "exa" | "parallel"

Why this is a small change

Impact

Unblocks web search for security/compliance-constrained, BYOK-Anthropic users who today must disable search entirely. Ideally generalize to native Google/OpenAI search for provider parity.

ehudc avatar Jul 28 '26 18:07 ehudc

To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please reopen it or create a fresh new one.

github-actions[bot] avatar Sep 27 '26 06:09 github-actions[bot]