2026/3/7

在 openclaw 安裝 searxng skill

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)
}
Tip: If you don't have a JSON editor handy, you can use Python to inject the 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

2026/3/2

openclaw (我的)安裝與使用

用raspberry pi 4 4G. Debian 13 Trixie, headless
16G SD card 不夠裝 OS + openclaw。

因為不想用任何要付錢的東西,盡量用local service,加上不熟習 skill, plugin .. etc,所以只好改 source code,
所以 clone 一份下來改: 相關的修改和設定寫在SETUP_GUIdE.md

網路上寫的 free search engine 都要錢了,所以只好用自己架的 SearXNG。
這個不在 support list,所以修改了source code,把 SearXNG 加入search provider

然後在config 就可以寫 searxng .
"tools": {
  "web": {
     "search": {
        "enable": true,
        "provider": "searxng",
        "searxng": {
           "baseUrl": "http://192.168.145.70:8081/Search"
         }
      }
   }
 },

model 用 ollama 的 gpt-oss:120b, 和 qwen3.5:35b 和 122b。
用 ollama 的話,defaultthinking 要關掉,不然會有 error。

用screen run openclaw gateway run 之後,服務就起來了。
因為不用systemd,所以用 screen 來run,好在退出時繼續執行。

之後就可以用 openclaw agent 送message,看 reply。

然後啟動 web ui。
default 只會 listen on 127.0.0.1
要改成 listen on 0.0.0.0 程式要改很多地方,可能author不願意讓人這樣用。
髓以就用 ssh tunnel 來存取好了。

web url 要加上 token, 在 config 可以找到,這大概也是怕人隨意就能 access。
開啟 web 後就能用 web chat 來叫它做事了。

除了 model 修改不能叫它做,其它設定都可以叫它自己做。