anythingllm-rag
/install anythingllm-rag
AnythingLLM RAG Skill
Query local/private documents through AnythingLLM's RAG API.
Configuration
Environment variables (set in TOOLS.md or shell):
ANYTHINGLLM_URL— defaulthttp://localhost:3001ANYTHINGLLM_API_KEY— API tokenANYTHINGLLM_WORKSPACE— default workspace slug
Script location: scripts/anythingllm.sh
When to Use
Use AnythingLLM RAG when:
- User asks about their local/private documents
- User wants to search uploaded PDFs, DOCX, TXT files
- User asks "what does X document say about Y"
- User wants to upload documents to the knowledge base
Use default model when:
- General knowledge questions
- Questions not related to local documents
- Coding, writing, analysis without document context
Commands
Query documents (RAG)
bash scripts/anythingllm.sh query "你的问题"
Upload a file
bash scripts/anythingllm.sh upload /path/to/file.pdf
Upload raw text
bash scripts/anythingllm.sh upload-text "文本内容" "文档标题"
List documents
bash scripts/anythingllm.sh list-docs
Check API health
bash scripts/anythingllm.sh health
Response Format
Query returns JSON with:
textResponse— the RAG-generated answersources— array of source documents used for context
Present the answer to the user, citing relevant sources when available.
Notes
- Scripts are in the skill's
scripts/directory — use paths relative to skill location - API key and workspace are pre-configured
- For PDF/DOCX queries, documents must be uploaded first
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install anythingllm-rag - After installation, invoke the skill by name or use
/anythingllm-rag - Provide required inputs per the skill's parameter spec and get structured output
What is anythingllm-rag?
Query local documents via AnythingLLM RAG (Retrieval-Augmented Generation). Use when the user asks about their private/local documents, PDFs, uploaded files,... It is an AI Agent Skill for Claude Code / OpenClaw, with 210 downloads so far.
How do I install anythingllm-rag?
Run "/install anythingllm-rag" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is anythingllm-rag free?
Yes, anythingllm-rag is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does anythingllm-rag support?
anythingllm-rag is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created anythingllm-rag?
It is built and maintained by Scott Tian (@tianmaomao); the current version is v1.0.0.