← 返回
开发者工具 中文

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.
为 OpenClaw web_search 配置 Brave Search API。用于配置 Brave API、获取密钥、启用网页搜索或解决 missing_brave_api_key 错误。
garibong-labs
开发者工具 clawhub v0.1.2 1 版本 99722.9 Key: 无需
★ 1
Stars
📥 2,139
下载
💾 36
安装
1
版本
#latest

概述

Brave API Setup

Automates Brave Search API key extraction and OpenClaw configuration.

Included Files

FileDescription
-------------------
SKILL.mdThis document
scripts/apply-api-key.jsApplies API key to OpenClaw config (Node.js)

Dependencies

  • Node.js (for apply-api-key.js)
  • OpenClaw browser capability (browser tool)

When to Use

  • User wants to enable web_search in 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="<eye-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 <skill_dir>/scripts/apply-api-key.js "<extracted-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:

  1. evaluate extracts key via JavaScript → returns exact string
  2. apply-api-key.js writes directly to config → bit-perfect

The key never passes through LLM text generation.

Manual Account Setup

If user doesn't have an account:

  1. Go to https://api-dashboard.search.brave.com
  2. Sign up with email
  3. Subscribe to Free plan (requires credit card)
  4. Create API key in dashboard
  5. Then run this skill

문의 / Feedback

버그 리포트, 기능 요청, 피드백은 아래로 보내주세요.

  • Email: contact@garibong.dev
  • Developer: Garibong Labs (가리봉랩스)

版本历史

共 1 个版本

  • v0.1.2 当前
    2026-03-28 18:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,008
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 67 📥 180,039
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,771