Add Brave Search web search to OpenClaw

- Enable web_search tool with Brave provider
- Add openclaw_brave_api_key secret to SOPS configuration
- Add BRAVE_API_KEY to openclaw.env template

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ashisgreat22 2026-03-18 02:50:09 +01:00
parent 2d7a67bac9
commit a87fd37489
2 changed files with 10 additions and 1 deletions

View file

@ -97,11 +97,13 @@
# OpenClaw secrets # OpenClaw secrets
sops.secrets.openclaw_discord_token = { }; sops.secrets.openclaw_discord_token = { };
sops.secrets.openclaw_zai_api_key = { }; sops.secrets.openclaw_zai_api_key = { };
sops.secrets.openclaw_brave_api_key = { };
sops.templates."openclaw.env" = { sops.templates."openclaw.env" = {
content = '' content = ''
DISCORD_TOKEN=${config.sops.placeholder.openclaw_discord_token} DISCORD_TOKEN=${config.sops.placeholder.openclaw_discord_token}
ZAI_API_KEY=${config.sops.placeholder.openclaw_zai_api_key} ZAI_API_KEY=${config.sops.placeholder.openclaw_zai_api_key}
BRAVE_API_KEY=${config.sops.placeholder.openclaw_brave_api_key}
''; '';
}; };
} }

View file

@ -29,7 +29,14 @@
}, },
"tools": { "tools": {
"elevated": { "enabled": true }, "elevated": { "enabled": true },
"exec": { "security": "full", "ask": "off" } "exec": { "security": "full", "ask": "off" },
"web": {
"search": {
"enabled": true,
"provider": "brave",
"apiKey": "${BRAVE_API_KEY}"
}
}
}, },
"models": { "models": {
"providers": { "providers": {