This guide explains how to manually install the searxng skill on an OpenClaw host and configure it to use a specific SearXNG server instance.
Step 1: Download the Skill Files
Since the skill is part of the official OpenClaw skills repository but may not be available directly via the clawhub slug for all versions, we clone the repository and extract the specific skill folder.
# Clone the skills repository
git clone --depth 1 https://github.com/openclaw/skills.git /tmp/openclaw-skills
# Create the local skill directory
mkdir -p ~/.openclaw/skills/searxng
# Copy the searxng skill files (from abk234's contribution)
cp -r /tmp/openclaw-skills/skills/abk234/searxng/* ~/.openclaw/skills/searxng/
Step 2: Configure the SearXNG Server URL
The skill needs to know where your SearXNG instance is running. This is done by adding an env section to your global openclaw.json configuration file.
Add the following block to your ~/.openclaw/openclaw.json file:
{
"env": {
"SEARXNG_URL": "http://192.168.145.70:8081"
},
... (rest of your configuration)
}
python3 -c "import json; f=open('$HOME/.openclaw/openclaw.json', 'r'); d=json.load(f); d['env'] = {'SEARXNG_URL': 'http://192.168.145.70:8081'}; f=open('$HOME/.openclaw/openclaw.json', 'w'); json.dump(d, f, indent=2)"
Step 3: Install Python Dependencies
The SearXNG skill script (searxng.py) requires specific Python libraries to handle HTTP requests and terminal formatting.
# Ensure pip is installed and then install dependencies
pip3 install httpx rich
Step 4: Verify the Installation
Run the following command to ensure OpenClaw recognizes the new skill and marks it as ready.
openclaw skills list
You should see 📦 searxng in the list with a checkmark (✓) or "ready" status. You can also test it directly via the CLI:
SEARXNG_URL=http://192.168.145.70:8081 python3 ~/.openclaw/skills/searxng/scripts/searxng.py search "your search query"
Step 5: Refresh the Agent
If OpenClaw is already running, you may need to restart the gateway or simply tell your agent to "refresh skills" to begin using the new capability.
結果還是不行,是model 太笨還是 ?
一直找不到 searxng,及使用 openclaw skills list 看,searxng 都已經是 "enabled" 了。openclaw tui 還是不知道可以用它來 search
沒有留言:
張貼留言