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": {