Skip to content

Feature: Support Brave Search LLM Context API as web_search provider option #14992

@mystickcal

Description

@mystickcal

Summary

Brave just launched their LLM Context API (Feb 12, 2026) — a new endpoint that returns pre-extracted, relevance-scored web content optimized for LLM consumption, rather than traditional URLs and snippets.

OpenClaw currently uses the standard Brave Web Search endpoint (/res/v1/web/search). Adding support for the new LLM Context endpoint (/res/v1/llm/context) would significantly improve the quality of web_search results for AI grounding.

Why This Matters

  • Better grounding data: Returns actual page content (text chunks, tables, code blocks, structured data) instead of just URLs and snippets — no need for a separate web_fetch step
  • Same API key & pricing: $5/1K requests, same as current web search. Uses the same Brave API subscription
  • Proven quality: Brave's internal testing shows their chatbot (using open-weight Qwen3 + LLM Context data) outperforms ChatGPT, Perplexity, and Google AI Mode in head-to-head comparisons
  • Sub-600ms latency: Only ~130ms overhead on top of normal search at p90
  • Token budget control: Built-in maximum_number_of_tokens parameter (1024-32768) lets you control context size per query
  • Goggles support: Custom source re-ranking/filtering works with LLM Context

Proposed Implementation

Add a new search mode or provider option, e.g.:

{
  "tools": {
    "web": {
      "search": {
        "provider": "brave",
        "mode": "llm-context"
      }
    }
  }
}

Or auto-detect: when web_search is called, use the LLM Context endpoint instead of (or in addition to) the standard web search endpoint, since it returns richer data at the same price point.

Endpoint

GET https://api.search.brave.com/res/v1/llm/context?q={query}

Same X-Subscription-Token header auth as current web search.

Response Format

Returns grounding.generic[] with url, title, and snippets[] (actual extracted text chunks), plus sources metadata with hostnames and dates. Also supports poi and map fields for local queries.

Context

Brave's blog specifically mentions OpenClaw: "These will help the 200,000+ developers that recently signed up for the Brave API through the release of OpenClaw." They also released Brave Search API Skills for developer tools including ClaudeCode.

Environment

  • OpenClaw 2026.2.9
  • Brave Search API (existing subscription)

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions