Brave Api Setup
/install brave-api-setup
Brave API Setup
Automates Brave Search API key extraction and OpenClaw configuration.
Included Files
| File | Description |
|---|---|
SKILL.md |
This document |
scripts/apply-api-key.js |
Applies API key to OpenClaw config (Node.js) |
Dependencies
- Node.js (for apply-api-key.js)
- OpenClaw browser capability (
browsertool)
When to Use
- User wants to enable
web_searchin OpenClaw - Error:
missing_brave_api_key - User asks to set up Brave Search API
Prerequisites
- User must have a Brave Search API account
- User must be logged in (openclaw browser profile)
- API key must exist in dashboard
Workflow
Step 1: Navigate to API keys page
browser(action="navigate", profile="openclaw",
targetUrl="https://api-dashboard.search.brave.com/app/keys")
Step 2: Click reveal button (eye icon)
Take snapshot, find the reveal button, click it:
browser(action="act", kind="click", ref="\x3Ceye-button-ref>")
Step 3: Extract key via JavaScript (avoids LLM transcription error)
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.
Step 4: Apply to config (direct file write, no LLM involved)
Relative to skill directory:
node \x3Cskill_dir>/scripts/apply-api-key.js "\x3Cextracted-key>"
Or use gateway config.patch with the extracted key.
Why This Approach
Problem: LLM can confuse similar characters when transcribing (O vs 0, l vs 1).
Solution:
evaluateextracts key via JavaScript → returns exact stringapply-api-key.jswrites directly to config → bit-perfect
The key never passes through LLM text generation.
Manual Account Setup
If user doesn't have an account:
- Go to https://api-dashboard.search.brave.com
- Sign up with email
- Subscribe to Free plan (requires credit card)
- Create API key in dashboard
- Then run this skill
문의 / Feedback
버그 리포트, 기능 요청, 피드백은 아래로 보내주세요.
- Email: [email protected]
- Developer: Garibong Labs (가리봉랩스)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install brave-api-setup - 安装完成后,直接呼叫该 Skill 的名称或使用
/brave-api-setup触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1727 次。
如何安装 Brave Api Setup?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install brave-api-setup」即可一键安装,无需额外配置。
Brave Api Setup 是免费的吗?
是的,Brave Api Setup 完全免费(开源免费),可自由下载、安装和使用。
Brave Api Setup 支持哪些平台?
Brave Api Setup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Brave Api Setup?
由 garibong-labs(@garibong-labs)开发并维护,当前版本 v0.1.2。