From c95c70f9d21856092a1a191e5ba7a21ad6a8729e Mon Sep 17 00:00:00 2001 From: Kris Date: Wed, 25 Feb 2026 21:50:20 +0200 Subject: [PATCH] openclaw: rewrite Brave API base URL to local brave-shim --- hosts/server/slop/openclaw.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/server/slop/openclaw.nix b/hosts/server/slop/openclaw.nix index b134cf8..d9d4386 100644 --- a/hosts/server/slop/openclaw.nix +++ b/hosts/server/slop/openclaw.nix @@ -9,8 +9,11 @@ let postInstall = (old.postInstall or "") + '' # Point Brave web-search endpoint to local shim if [ -d "$out/lib/openclaw/dist" ]; then - grep -RIl "https://api.search.brave.com/" "$out/lib/openclaw/dist" | while read -r f; do - substituteInPlace "$f" --replace-fail "https://api.search.brave.com/" "http://127.0.0.1:8000/" + grep -RIl "https://api.search.brave.com" "$out/lib/openclaw/dist" | while read -r f; do + substituteInPlace "$f" \ + --replace "https://api.search.brave.com/res/v1/" "http://127.0.0.1:8000/res/v1/" \ + --replace "https://api.search.brave.com/" "http://127.0.0.1:8000/" \ + --replace-fail "https://api.search.brave.com" "http://127.0.0.1:8000" done fi '';