Skip to content

Brave Search

OpenClaw 使用 Brave Search 作为 web_search 的默认提供商。

  1. https://brave.com/search/api/ 创建 Brave Search API 账户
  2. 在控制面板中,选择 Data for Search 套餐并生成 API 密钥。
  3. 将密钥存储在配置中(推荐),或在 Gateway 网关环境中设置 BRAVE_API_KEY
{
plugins: {
entries: {
brave: {
config: {
webSearch: {
apiKey: "BRAVE_API_KEY_HERE",
},
},
},
},
},
tools: {
web: {
search: {
provider: "brave",
maxResults: 5,
timeoutSeconds: 30,
},
},
},
}

Brave 的提供商专属搜索配置现在位于 plugins.entries.brave.config.webSearch.*。旧的 tools.web.search.apiKey 仅作为兼容层暂时保留。

  • Data for AI 套餐与 web_search 兼容。
  • Brave 提供免费层级和付费套餐;请查看 Brave API 门户了解当前限制。

请参阅 Web 工具 了解完整的 web_search 配置。