← 返回 Skills 市场
tianmaomao

anythingllm-rag

作者 Scott Tian · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
210
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install anythingllm-rag
功能描述
Query local documents via AnythingLLM RAG (Retrieval-Augmented Generation). Use when the user asks about their private/local documents, PDFs, uploaded files,...
使用说明 (SKILL.md)

AnythingLLM RAG Skill

Query local/private documents through AnythingLLM's RAG API.

Configuration

Environment variables (set in TOOLS.md or shell):

  • ANYTHINGLLM_URL — default http://localhost:3001
  • ANYTHINGLLM_API_KEY — API token
  • ANYTHINGLLM_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 answer
  • sources — 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
安全使用建议
This skill does what it says (query/upload local documents), but it ships with a hard-coded API key and will send any specified local file to the configured server. Before installing/use: 1) Do not use the embedded API key — supply your own via environment variables or remove the default from the script. 2) Confirm ANYTHINGLLM_URL points to a server you control (localhost or a trusted host). 3) Restrict the agent so uploads require explicit user approval (avoid autonomous invocation for file uploads). 4) Review and test the upload command in a sandbox with non-sensitive files first. 5) If you already used the embedded key, assume it may be compromised and rotate/disable it on the server. If you want lower risk, prefer a version that requires explicit per-file confirmation or that exposes only read/query operations (no arbitrary file upload).
功能分析
Type: OpenClaw Skill Name: anythingllm-rag Version: 1.0.0 The script `scripts/anythingllm.sh` contains a critical shell injection vulnerability because it uses `eval` to execute a constructed curl command containing unsanitized user input (e.g., in the `api_call` and `upload_text` functions). Additionally, the script contains a hardcoded API key and workspace ID. While these appear to be severe security vulnerabilities rather than intentional malware, they allow for arbitrary command execution if the agent processes crafted input.
能力评估
Purpose & Capability
The skill's name/description (RAG over local documents) matches the provided commands (query, upload, list). However, the script embeds a default API key and workspace ID rather than requiring the operator to provide credentials via environment variables as the SKILL.md implies. Shipping a default credential in code is disproportionate and unexpected for this purpose.
Instruction Scope
SKILL.md directs the agent to run scripts that can upload arbitrary files (upload <file>) and raw text to a remote API. Uploading local files is consistent with the stated purpose, but the instructions allow sending any filesystem path (including sensitive files) with no additional safeguards, prompting a high risk of accidental exfiltration.
Install Mechanism
No install spec — instruction-only with a bundled script. That reduces risk from arbitrary installers or remote downloads. The primary risk comes from executing the included script, not from an installation mechanism.
Credentials
SKILL.md documents environment variables ANYTHINGLLM_URL, ANYTHINGLLM_API_KEY, and ANYTHINGLLM_WORKSPACE, but the registry lists none. The script sets defaults and includes a hard-coded API key (ANYTHINGLLM_API_KEY default = 'JYF2P4K-SQ6MKA3-NGW734W-6CVY672') and a default workspace ID — storing credentials in source is disproportionate and unexpected, and may point to misuse or a shared/third-party backend.
Persistence & Privilege
The skill does not request always:true and has no special system privileges. However, because skills can be invoked autonomously by the agent, an enabled skill that can read local paths and upload files increases the blast radius — especially combined with the embedded API key and upload endpoints. That combination warrants caution.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install anythingllm-rag
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /anythingllm-rag 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of anythingllm-rag skill. - Enables querying and searching of local/private documents through AnythingLLM's RAG API. - Supports uploading files and raw text to the user's knowledge base. - Responds to specific document-related phrases and defaults to the main model for unrelated queries. - Provides command scripts for querying, uploading, listing documents, and health checks. - Returns RAG-generated answers with cited sources.
元数据
Slug anythingllm-rag
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

anythingllm-rag 是什么?

Query local documents via AnythingLLM RAG (Retrieval-Augmented Generation). Use when the user asks about their private/local documents, PDFs, uploaded files,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 210 次。

如何安装 anythingllm-rag?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install anythingllm-rag」即可一键安装,无需额外配置。

anythingllm-rag 是免费的吗?

是的,anythingllm-rag 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

anythingllm-rag 支持哪些平台?

anythingllm-rag 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 anythingllm-rag?

由 Scott Tian(@tianmaomao)开发并维护,当前版本 v1.0.0。

💬 留言讨论