Files
bot/docs/zh-CN/brave-search.md
zooqueen 071e3f1082 rebrand: openclaw -> hanzo bot across entire codebase
Automated rebrand of all openclaw references to hanzo bot:
- Package: openclaw -> @hanzo/bot
- Binary: openclaw -> hanzo-bot
- Config: ~/.openclaw -> ~/.hanzo/bot
- Docker: ghcr.io/hanzoai/bot
- Env vars: OPENCLAW_* -> BOT_*
- Bundle IDs: ai.hanzo.bot.*
- Product name: Hanzo Bot
2026-03-19 13:52:32 -07:00

1.5 KiB

read_when, summary, title, x-i18n
read_when summary title x-i18n
你想使用 Brave Search 进行 web_search
你需要 BRAVE_API_KEY 或套餐详情
用于 web_search 的 Brave Search API 设置 Brave Search
generated_at model provider source_hash source_path workflow
2026-02-03T07:43:09Z claude-opus-4-5 pi cdcb037b092b8a10609f02acf062b4164cb826ac22bdb3fb2909c842a1405341 brave-search.md 15

Brave Search API

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

获取 API 密钥

  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 配置。