
brave/brave-search-skills 是从 https://github.com/brave/brave-search-skills. 导入的特工技能候选人
概览
brave/brave-search-skills 是从 https://github.com/brave/brave-search-skills. 导入的特工技能候选人
概述(AI 翻译)
使用Brave Search API配合AI编码代理的官方技能。
支持Claude Code、Cursor、GitHub Copilot、Codex、Gemini CLI、VS Code、Windsurf、OpenClaw、Cline、Goose、Amp、Roo Code以及许多支持Agent Skills标准的代理。
前置条件 · 安装 · 可用技能 · 快速入门 · 护目镜 · 文档
先修条件
在[[T0]处获取Brave Search API密钥。
安全提示: 更倾向于使用代理原生配置而非shell配置文件导出。编码代理可以访问环境变量——有作用域配置限制了暴露。所有选项请参见API密钥设置。
克劳德·科德
添加到~/.claude/settings.json(文档):
这使得该密钥在所有 Claude Code 会话中都能使用。对于每个项目使用,请以相同格式添加到 .claude/settings.local.json(gitignored)。
光标
选项1 — direnv (directory-scoped, auto-loads/unloads):
选项2 — 壳配置文件(~/.zshrc 或 ~/.bashrc):
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Brave Search API Skills
Official skills for using Brave Search API with AI coding agents.
Works with Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, VS Code, Windsurf, OpenClaw, Cline, Goose, Amp, Roo Code, and many other agents that support the Agent Skills standard.
Prerequisites
Get a Brave Search API key at https://api.search.brave.com
Security tip: Prefer agent-native config over shell profile exports. Coding agents can access environment variables — scoped configs limit exposure. See API key setup for all options.
Claude Code
Add to ~/.claude/settings.json (docs):
{
"env": {
"BRAVE_SEARCH_API_KEY": "your-key"
}
}
This makes the key available in all Claude Code sessions. For per-project use, add to .claude/settings.local.json (gitignored) with the same format.
Cursor
Option 1 — direnv (directory-scoped, auto-loads/unloads):
# Install direnv (https://direnv.net), then in your project directory:
echo 'export BRAVE_SEARCH_API_KEY="your-key"' >> .envrc
direnv allow
Option 2 — Shell profile (~/.zshrc or ~/.bashrc):
export BRAVE_SEARCH_API_KEY="your-key"
Then restart Cursor (launch from terminal or fully quit and reopen — reloading the window is not enough). Cursor inherits environment variables from your shell. You can also add skills via Settings > Rules > Add Rule > Remote Rule using the GitHub URL.
Codex
Option 1 — config.toml (docs):
# ~/.codex/config.toml
[shell_environment_policy]
set = { BRAVE_SEARCH_API_KEY = "your-key" }
Option 2 — Shell profile (~/.zshrc or ~/.bashrc):
export BRAVE_SEARCH_API_KEY="your-key"
Then restart your terminal. Codex reads environment variables from the shell (CLI, app, and IDE extension).
OpenClaw
Add to ~/.openclaw/.env (docs):
BRAVE_SEARCH_API_KEY=your-key
Or add to ~/.openclaw/openclaw.json under the skill’s config:
{
"skills": {
"entries": {
"brave-search": {
"env": {
"BRAVE_SEARCH_API_KEY": "your-key"
}
}
}
}
}
Other agents
Option 1 — direnv (directory-scoped, auto-loads/unloads):
# Install direnv (https://direnv.net), then in your project directory:
echo 'export BRAVE_SEARCH_API_KEY="your-key"' >> .envrc
direnv allow
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add brave/brave-search-skills