Brave API Setup
Automates Brave Search API key extraction and OpenClaw configuration.
Included Files
| File | Description |
|---|
| INLINECODE0 | This document |
| INLINECODE1 |
Applies 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: INLINECODE4
- 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
CODEBLOCK0
Step 2: Click reveal button (eye icon)
Take snapshot, find the reveal button, click it:
CODEBLOCK1
Step 3: Extract key via JavaScript (avoids LLM transcription error)
CODEBLOCK2
The result field contains the exact API key.
Step 4: Apply to config (direct file write, no LLM involved)
Relative to skill directory:
CODEBLOCK3
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 - INLINECODE6 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
- Sign up with email
- Subscribe to Free plan (requires credit card)
- Create API key in dashboard
- Then run this skill
문의 / Feedback
버그 리포트, 기능 요청, 피드백은 아래로 보내주세요.
- - Email: contact@garibong.dev
- Developer: Garibong Labs (가리봉랩스)
Brave API 设置
自动化 Brave 搜索 API 密钥提取和 OpenClaw 配置。
包含文件
| 文件 | 描述 |
|---|
| SKILL.md | 本文档 |
| scripts/apply-api-key.js |
将 API 密钥应用到 OpenClaw 配置(Node.js) |
依赖项
- - Node.js(用于 apply-api-key.js)
- OpenClaw 浏览器能力(browser 工具)
使用时机
- - 用户想要在 OpenClaw 中启用 websearch
- 错误:missingbraveapikey
- 用户要求设置 Brave 搜索 API
前提条件
- - 用户必须拥有 Brave 搜索 API 账户
- 用户必须已登录(openclaw 浏览器配置文件)
- API 密钥必须存在于仪表盘中
工作流程
步骤 1:导航到 API 密钥页面
browser(action=navigate, profile=openclaw,
targetUrl=https://api-dashboard.search.brave.com/app/keys)
步骤 2:点击显示按钮(眼睛图标)
拍摄快照,找到显示按钮,点击它:
browser(action=act, kind=click, ref=)
步骤 3:通过 JavaScript 提取密钥(避免 LLM 转录错误)
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; })())
结果字段包含确切的 API 密钥。
步骤 4:应用到配置(直接文件写入,不涉及 LLM)
相对于技能目录:
bash
node /scripts/apply-api-key.js
或者使用提取的密钥通过网关 config.patch。
为什么采用这种方法
问题:LLM 在转录时可能混淆相似字符(O 与 0,l 与 1)。
解决方案:
- 1. evaluate 通过 JavaScript 提取密钥 → 返回精确字符串
- apply-api-key.js 直接写入配置 → 比特级精确
密钥永远不会经过 LLM 文本生成。
手动账户设置
如果用户没有账户:
- 1. 前往 https://api-dashboard.search.brave.com
- 使用邮箱注册
- 订阅免费计划(需要信用卡)
- 在仪表盘中创建 API 密钥
- 然后运行此技能
문의 / 反馈
错误报告、功能请求、反馈请发送至:
- - 邮箱:contact@garibong.dev
- 开发者:Garibong Labs(가리봉랩스)