Token导航 LogoToken导航

Agent Skill · 研究检索

brave-api-search(brave API 搜索)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

brave-api-search 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为执行命令;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 542。

总安装 246,819周安装 10,494GitHub Stars 1下载 86,471核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
3.0.2

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:brave-api-search(brave API 搜索)
来源仓库:https://github.com/broedkrummen/brave-api-search
安装命令:
openclaw skills install brave-api-search
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install brave-api-search

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

使用 Brave Search API 进行实时网络搜索与智能答案提取。支持文档、事实与时事查询,注重隐私保护。brave-api-search 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适合需要高可信度搜索结果的研究与写作场景。使用时需配置 API 密钥并遵守调用频率限制。

安装前请核实权限范围及是否会触发外部网络请求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install brave-api-search;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

brave-api-search 怎么安装?

在终端执行 openclaw skills install brave-api-search。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

brave-api-search 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

brave-api-search 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 openclaw skills install brave-api-search 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

brave-api-search 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

brave-api-search 用的人多吗?

公开数据是累计安装 246,819 次,近一周安装 10,494 次,下载 86,471 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

brave-api-search 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
brave-api-search

brave API 搜索 · 本页

246,8191执行命令MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
brave-api-search
description
Real-time web search, autosuggest, and AI-powered answers using the official Brave Search API. Use for searching documentation, facts, current events, or any web content. Supports AI grounded answers with citations and query autosuggest. Requires BRAVE_SEARCH_API_KEY and BRAVE_ANSWERS_API_KEY.
license
MIT
metadata
author
Broedkrummen
version
4.2.0

Brave API Search v4.2.0 — Significant Update

Real-time web search, autosuggest, spellcheck, and AI-powered answers using the official Brave Search API. Four tools:

  • brave_search — web results with titles, URLs, descriptions, optional AI summary
  • brave_suggest — query autosuggestions as users type with optional rich metadata
  • brave_spellcheck — spell correction and "Did you mean?" suggestions
  • brave_answers — AI-grounded answers with inline citations powered by live web search

| NEW — v4.2.0: Full entity extraction via enable-entities flag

Setup

Set your Brave API keys in a local .env file (recommended):

# .env (do not commit)
BRAVE_SEARCH_API_KEY=your_key_here
BRAVE_ANSWERS_API_KEY=your_key_here
AUTOSUGGEST_API_KEY=your_key_here   # optional, for autosuggest only
BRAVE_SPELLCHECK_API_KEY=your_key_here   # optional, for spellcheck only

Get your keys at: https://api-dashboard.search.brave.com

Key routing:

  • brave_search → BRAVE_SEARCH_API_KEY
  • brave_answers → BRAVE_ANSWERS_API_KEY
  • brave_suggest → AUTOSUGGEST_API_KEY → BRAVE_AUTOSUGGEST_API_KEY → BRAVE_SEARCH_API_KEY (tries in order)
  • brave_spellcheck → BRAVE_SPELLCHECK_API_KEY → BRAVE_SEARCH_API_KEY (tries in order)
Note: brave_answers uses streaming by default. Streaming is required for citations, entities, and research mode.

When to Use This Skill

Use brave_search when:

  • Searching for current information, news, or recent events
  • Looking up documentation or technical references
  • Need ranked results with URLs to follow up on
  • Want an AI summary of search results

Use brave_suggest when:

  • Power autocomplete in search interfaces
  • Help users formulate better queries faster
  • Need query completions as users type
  • Want rich metadata (titles, descriptions, images) for suggestions

Use brave_answers when:

  • Need a synthesized answer with cited sources
  • Researching topics that benefit from multiple sources
  • Want AI-grounded responses with inline citations
  • Deep research mode needed (multi-search)

Don't use this skill for:

  • Questions already answered from context or memory
  • Tasks that don't require external information

Tools

brave_search

Web search returning ranked results with titles, URLs, and descriptions.

brave_search --query "latest Node.js release" --count 5
brave_search --query "TypeScript generics" --extra-snippets true
brave_search --query "current weather Copenhagen" --freshness pd
brave_search --query "React Server Components" --summary true

Parameters:

  • query (required) — Search query, supports operators: site:, "exact phrase", -exclude
  • count — Results to return (1-20, default: 10)
  • country — 2-letter country code (default: us)
  • freshness — Date filter: pd (24h), pw (7 days), pm (31 days), py (1 year)
  • extra-snippets — Include up to 5 extra text excerpts per result (default: false)
  • summary — Fetch Brave AI summarizer result (default: false)
  • offset — Pagination offset for next page results

Returns: Formatted list of results with title, URL, description, optional AI summary, and a hint for next page if more_results_available.

brave_suggest

Query autosuggest API providing intelligent query autocompletion as users type.

brave_suggest --query "hello"
brave_suggest --query "pyt" --count 5 --country US
brave_suggest --query "einstein" --rich true

Parameters:

  • query (required) — Partial query to get suggestions for
  • count — Number of suggestions (1-10, default: 5)
  • country — 2-letter country code (default: US)
  • rich — Include enhanced metadata: titles, descriptions, images, entity detection (default: false, requires paid Autosuggest plan)

Returns: List of query suggestions, optionally with rich metadata. Results are cached for 60 seconds.

Best Practices:

  • Implement debouncing (150-300ms) to avoid excessive API calls as users type
  • Load suggestions asynchronously without blocking the UI

brave_spellcheck

Spell checking and query correction for search queries.

brave_spellcheck --query "articifial inteligence"
brave_spellcheck --query "hello" --country US

Parameters:

  • query (required) — Query to check for spelling errors
  • country — 2-letter country code (default: US)

Returns: "Did you mean:" suggestion, or confirms no correction needed. Uses dedicated BRAVE_SPELLCHECK_API_KEY if available, falls back to BRAVE_SEARCH_API_KEY.

brave_answers

AI-powered answers grounded in live web search with inline citations.

brave_answers --query "How does React Server Components work?"
brave_answers --query "Compare Postgres vs MySQL for OLAP" --enable-research true
brave_answers --query "Latest Python release notes" --enable-citations true
brave_answers --query "Who is Albert Einstein" --enable-entities true

Parameters:

  • query (required) — Question or topic to research
  • country — Target country for search context (default: us)
  • enable-citations — Include inline source citations (default: true)
  • enable-research — Multi-search deep research mode (default: false)
  • enable-entities — Include entity information in responses (default: false, streaming required)
  • stream — Enable streaming output (default: true — required for citations/entities/research)

Returns: AI answer with cited sources extracted from the response, plus token usage and cost breakdown.

⚠️ Citations, entities, and research mode require streaming (--stream true, which is the default). If you disable streaming with --stream false, citations and entity data will not be available.

Streaming mode output:

  • Text streams progressively to stdout
  • Entities streamed inline as <enum_item> tags are parsed
  • Entities mentioned section printed at the end (v4.2.0)
  • Sources printed at the end (sorted by citation number)
  • Token usage and cost breakdown included

Non-streaming fallback: Use --stream false for simpler output at the cost of losing citations and entity data.

Pricing & Limits

Brave pricing is credit-based and can change. Do not assume a fixed free request count.

Current public guidance (verify in Brave dashboard/docs before production use):

  • Monthly trial credits may be offered (e.g. $5 in monthly credits)
  • Search and Answers consume credits differently
  • Rich suggestions require a paid Autosuggest plan
  • Answers may also include token-based costs
  • QPS limits depend on your plan tier

Always check your live limits and usage in:

  • https://api-dashboard.search.brave.com
  • https://brave.com/search/api/

Technical Details

Architecture

The skill uses a shared utils.js module containing:

  • parseArgs() — CLI argument parser
  • fetchWithRetry() — fetch with exponential backoff retry on 429 and 5xx
  • createCache() — in-memory TTL cache (used by brave_suggest)

brave_search.js

The core search script with the following optimizations:

  • Parallel summary fetch: When --summary is enabled, the summary key is extracted from the search response and fetched in parallel with the search results
  • Pagination hint: Response includes a hint for the next page offset when more_results_available is true
  • Rate limit handling: Retries on 429 (honors Retry-After header) and 5xx (exponential backoff)

brave_answers.js v4.2.0

The AI answers script supports two modes:

  • Streaming (default): Progressive output with real-time entity extraction, deduplicated citations, token usage, and cost breakdown
  • Non-streaming: Full citation and entity extraction from batch response via parseCitations() and parseEntities()

Key changes in v4.2.0:

  • Entity extraction: Streaming mode parses <enum_item> tags incrementally — entity names are streamed inline as they are parsed, and a consolidated Entities mentioned section is printed at the end with URL and citation count per entity
  • Citation deduplication: Duplicate source URLs are deduplicated so each source is cited only once (sorted by citation number)
  • Non-streaming mode (v4.2.0): Full parseCitations() and parseEntities() applied to the batch response content, so citations and entities are extracted even without streaming

brave_suggest.js

The autosuggest script with the following optimizations:

  • In-memory cache: 60-second TTL cache keyed by query|count|country|rich — deduplicates rapid successive calls
  • Key fallback chain: AUTOSUGGEST_API_KEY → BRAVE_AUTOSUGGEST_API_KEY → BRAVE_SEARCH_API_KEY

brave_answers streaming

When streaming is enabled (stream: true):

  • SSE chunks are parsed in real-time
  • Citations are collected and printed at end (sorted by citation number)
  • Entity items (<enum_item>) are parsed incrementally — streamed inline and collected for the Entities mentioned section
  • Usage block (<usage>) parsed and displayed with token counts and total cost

Security & Packaging Notes

  • This skill only calls Brave official endpoints under https://api.search.brave.com/res/v1.
  • It requires BRAVE_SEARCH_API_KEY and BRAVE_ANSWERS_API_KEY (keep them in .env, not inline in commands/chats).
  • Optionally accepts AUTOSUGGEST_API_KEY or BRAVE_AUTOSUGGEST_API_KEY for autosuggest.
  • It does not request persistent/system privileges and does not modify system config.
  • All scripts are Node.js 18+ native (no external dependencies).

平台分布

OpenClaw

83.27%
按下载量换算72,004

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install brave-api-search 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills