/install driverag
Google Drive RAG CLI Skill
When to use
Use this skill when the user asks you to search their personal documents via the Google Drive RAG API. This includes questions like "What is my Aetna ID?", "Search my drive for...", "Sync my drive", "What is the status of my sync?", "What is the service account email?", or "Renew my token".
Setup and Initialization
This skill includes a self-contained Python CLI tool in its directory.
Before running any commands, you MUST verify the environment is set up:
- Check if
~/.agents/skills/driverag/.envexists.- If it DOES NOT exist, you MUST ask the user to provide their
API_URLandJWT_TOKEN. - Once they provide them, create the
.envfile in the skill directory (~/.agents/skills/driverag/.env) with those values.
- If it DOES NOT exist, you MUST ask the user to provide their
- Check if the virtual environment exists (
~/.agents/skills/driverag/venv).- If it DOES NOT exist, create it:
cd ~/.agents/skills/driverag && python3 -m venv venv - Then install the requirements:
source venv/bin/activate && pip install -r requirements.txt
- If it DOES NOT exist, create it:
Instructions
Once the environment is validated and the .env file is created, you can interact with the RAG system using the CLI tool.
ALWAYS run the CLI from the skill directory (~/.agents/skills/driverag/) and ALWAYS activate its virtual environment first.
Here are the commands you can run:
-
Search documents:
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py search "$ARGUMENTS"If the user passes specific folders, append them:
python3 cli.py search "$ARGUMENTS" -f "Folder Name" -
List all Indexed Files in the RAG Database:
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py list-files -
Check Sync Status:
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py status -
Sync documents:
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py syncTo force a complete re-download and re-indexing of all files:
python3 cli.py sync --force -
Get Service Account Email:
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py service-account -
Renew Token:
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py renew-token -
Add a folder manually:
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py add-folder "$ARGUMENTS"
Important notes
- Do NOT hallucinate answers. ALWAYS run the
cli.py searchcommand to get the exact answer from the RAG system and output the exact response it gives you. - CRITICAL: If the user asks "What files do you have", "List my files", or "What documents are in the database", DO NOT use the search command! You MUST use the
list-filescommand instead, because RAG semantic search cannot generate file lists. - If the CLI returns a 401 Unauthorized or warns that the token is about to expire, inform the user and automatically run the
renew-tokencommand to update their.envfile. - When outputting the RAG search results to the user, ensure you include the citations/source documents exactly as the CLI returns them so the user knows where the information came from.
Examples
- "Search my drive for my Aetna ID" -> Run the search command with "What is my Aetna ID?"
- "What files do you have in the database?" -> Run the list-files command.
- "What is the status of my sync?" -> Run the status command.
- "What email should I share my folders with?" -> Run the service-account command.
- "Renew my token" -> Run the renew-token command.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install driverag - 安装完成后,直接呼叫该 Skill 的名称或使用
/driverag触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Rag based on Google drive 是什么?
Use the Google Drive RAG CLI to search your synced personal documents, add tracking folders, or check the service account status. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 123 次。
如何安装 Rag based on Google drive?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install driverag」即可一键安装,无需额外配置。
Rag based on Google drive 是免费的吗?
是的,Rag based on Google drive 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Rag based on Google drive 支持哪些平台?
Rag based on Google drive 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Rag based on Google drive?
由 eladrave(@eladrave)开发并维护,当前版本 v1.0.3。