From a87fd3748966b3dced5584462f48fe9432d8af6c Mon Sep 17 00:00:00 2001 From: ashisgreat22 Date: Wed, 18 Mar 2026 02:50:09 +0100 Subject: [PATCH] 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 --- configuration.nix | 2 ++ modules/openclaw-config.json | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 9d9e893..d26b548 100644 --- a/configuration.nix +++ b/configuration.nix @@ -97,11 +97,13 @@ # OpenClaw secrets sops.secrets.openclaw_discord_token = { }; sops.secrets.openclaw_zai_api_key = { }; + sops.secrets.openclaw_brave_api_key = { }; sops.templates."openclaw.env" = { content = '' DISCORD_TOKEN=${config.sops.placeholder.openclaw_discord_token} ZAI_API_KEY=${config.sops.placeholder.openclaw_zai_api_key} + BRAVE_API_KEY=${config.sops.placeholder.openclaw_brave_api_key} ''; }; } diff --git a/modules/openclaw-config.json b/modules/openclaw-config.json index 0535bae..3d69a9e 100644 --- a/modules/openclaw-config.json +++ b/modules/openclaw-config.json @@ -29,7 +29,14 @@ }, "tools": { "elevated": { "enabled": true }, - "exec": { "security": "full", "ask": "off" } + "exec": { "security": "full", "ask": "off" }, + "web": { + "search": { + "enabled": true, + "provider": "brave", + "apiKey": "${BRAVE_API_KEY}" + } + } }, "models": { "providers": {