Use Sirchmunk as an OpenClaw skill so that any OpenClaw-compatible AI agent can search your local files with natural language — no embedding database, no indexing, no ETL.
Published on ClawHub: https://clawhub.ai/wangxingjun778/sirchmunk
pip install sirchmunk
sirchmunk init # creates ~/.sirchmunk/.envEdit ~/.sirchmunk/.env — at minimum set:
LLM_API_KEY=sk-...
LLM_BASE_URL=https://api.openai.com/v1 # or any OpenAI-compatible endpoint
LLM_MODEL_NAME=gpt-4o
# Optional: default search directories (comma-separated)
SIRCHMUNK_SEARCH_PATHS=/path/to/your/docs,/another/pathsirchmunk serve # default: http://0.0.0.0:8584Verify it is running:
curl http://localhost:8584/api/v1/search/statusInstall the skill from ClawHub:
npx clawhub@latest install sirchmunk
Or copy the sirchmunk/ directory from this repo into ~/.openclaw/skills/sirchmunk/.
The agent can now invoke the sirchmunk_search tool. You can also call the script directly:
# Use default SIRCHMUNK_SEARCH_PATHS from the server environment
~/.openclaw/skills/sirchmunk/scripts/sirchmunk_search.sh "What is the reward function?"
# Override with an explicit path
~/.openclaw/skills/sirchmunk/scripts/sirchmunk_search.sh "auth flow" "/path/to/project"Below are screenshots of local RAG-style retrieval with the Sirchmunk skill inside OpenClaw TUI (openclaw-tui): the agent calls sirchmunk to read matching rows from local CSVs (e.g. OBQA / science QA data), then summarizes in the requested language.
Query (illustrative): ask about ancient societies and light reflection; answer grounded in a local file such as obqa.csv, attributed as “Found using sirchmunk local search”.
示例问题(示意): 关于自制冰棍是否“做好”时温度计应显示的读数;代理用 sirchmunk 检索本地 CSV(如 obqa.csv、arc_easy.csv 等),并用中文结构化回答。
The skill is a thin HTTP client. When invoked it sends a POST request to the local Sirchmunk server:
curl -s -X POST "http://localhost:8584/api/v1/search" \
-H "Content-Type: application/json" \
-d '{
"query": "your question",
"mode": "DEEP",
"response_format": "rich"
}'pathsis optional in the request body. If omitted, the server usesSIRCHMUNK_SEARCH_PATHSfrom its environment, then falls back to its working directory.modecan beDEEP(default, comprehensive, 10-30 s),FAST(2-5 s), orFILENAME_ONLY(no LLM).response_formatcan berich(default Markdown evidence report),minimal,context, orjson.
See the main HTTP Client Access (Search API) section for the full parameter reference, SSE streaming endpoint, and client examples in Python / JavaScript.
recipes/openclaw_skills/
├── README.md
├── assets/
│ ├── example1.png # Chinese usage screenshot
│ └── example2.png # English usage screenshot
└── sirchmunk/
├── SKILL.md # OpenClaw skill manifest
└── scripts/
└── sirchmunk_search.sh # Wrapper script invoked by the agent
- The Sirchmunk server runs locally and binds to
localhostby default. File contents are sent to the configured LLM endpoint for analysis. If you use a cloud LLM, be aware that searched content leaves the machine. - Prefer a local LLM (Ollama, vLLM, etc.) or restrict
SIRCHMUNK_SEARCH_PATHSto non-sensitive directories if data exfiltration is a concern. - Do not expose port 8584 to untrusted networks without additional authentication.
- Sirchmunk GitHub: https://github.com/modelscope/sirchmunk
- ClawHub page: https://clawhub.ai/wangxingjun778/sirchmunk
- OpenClaw: https://openclaw.org/

