Set up Brave Search API for OpenClaw web_search. Use when user needs to configure Brave API, get Brave API key, enable web search, or fix "missing_brave_api_key" error.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install brave-api-setup或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install brave-api-setup⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/brave-api-setup/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: brave-api-setup description: Set up Brave Search API for OpenClaw web_search. Use when user needs to configure Brave API, get Brave API key, enable web search, or fix "missing_brave_api_key" error. metadata: openclaw: requires: bins: ["node"] triggers: - Brave Search - brave api - web_search - missing_brave_api_key - search API ---
Automates Brave Search API key extraction and OpenClaw configuration.
| File | Description | |------|-------------| | SKILL.md | This document | | scripts/apply-api-key.js | Applies API key to OpenClaw config (Node.js) |
browser tool)web_search in OpenClawmissing_brave_api_keybrowser(action="navigate", profile="openclaw",
targetUrl="https://api-dashboard.search.brave.com/app/keys")
Take snapshot, find the reveal button, click it:
browser(action="act", kind="click", ref="<eye-button-ref>")
browser(action="act", kind="evaluate",
fn="(() => { const cells = document.querySelectorAll('td'); for (const cell of cells) { const text = cell.textContent?.trim(); if (text && text.startsWith('BSA') && !text.includes('•') && text.length > 20) return text; } return null; })()")
The result field contains the exact API key.
Relative to skill directory:
node <skill_dir>/scripts/apply-api-key.js "<extracted-key>"
Or use gateway config.patch with the extracted key.
Problem: LLM can confuse similar characters when transcribing (O vs 0, l vs 1).
Solution:
evaluate extracts key via JavaScript → returns exact stringapply-api-key.js writes directly to config → bit-perfectThe key never passes through LLM text generation.
If user doesn't have an account:
버그 리포트, 기능 요청, 피드백은 아래로 보내주세요.
安装 Brave Api Setup 后,可以对 AI 说这些话来触发它
Help me get started with Brave Api Setup
Explains what Brave Api Setup does, walks through the setup, and runs a quick demo based on your current project
Use Brave Api Setup to set up Brave Search API for OpenClaw web_search
Invokes Brave Api Setup with the right parameters and returns the result directly in the conversation
What can I do with Brave Api Setup in my data & analytics workflow?
Lists the top use cases for Brave Api Setup, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/brave-api-setup/ 目录(个人级,所有项目可用),或 .claude/skills/brave-api-setup/(项目级)。重启 AI 客户端后,用 /brave-api-setup 主动调用,或让 AI 根据上下文自动发现并使用。
Brave Api Setup 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Brave Api Setup 可免费安装使用。请查阅仓库了解许可证信息。
Set up Brave Search API for OpenClaw web_search. Use when user needs to configure Brave API, get Brave API key, enable web search, or fix "missing_brave_api_key" error.
Brave Api Setup 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Brave Api Setup
Identifies repetitive steps in your workflow and sets up Brave Api Setup to handle them automatically