> ## Documentation Index
> Fetch the complete documentation index at: https://clawdbot.openclaw-doc-zh.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Brave Search

# Brave Search API

OpenClaw 默认使用 Brave Search 作为 `web_search` 提供方。

## 获取 API key

1. 在 [https://brave.com/search/api/](https://brave.com/search/api/) 创建 Brave Search API 账号。
2. 在控制台选择 **Data for Search** 套餐并生成 API key。
3. 将 key 写入配置（推荐），或在网关环境中设置 `BRAVE_API_KEY`。

## 配置示例

```json5 theme={null}
{
  tools: {
    web: {
      search: {
        provider: "brave",
        apiKey: "BRAVE_API_KEY_HERE",
        maxResults: 5,
        timeoutSeconds: 30,
      },
    },
  },
}
```

## 说明

* Data for AI 套餐 **不兼容** `web_search`。
* Brave 提供免费层级与付费方案；当前限制请查看 Brave API 门户。

完整 web\_search 配置见 [Web tools](/docs/tools/web)。
