Install
openclaw skills install driveragUse the Google Drive RAG CLI to search your synced personal documents, add tracking folders, or check the service account status.
openclaw skills install driveragUse 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".
This skill includes a self-contained Python CLI tool in its directory.
Before running any commands, you MUST verify the environment is set up:
~/.agents/skills/driverag/.env exists.
API_URL and JWT_TOKEN..env file in the skill directory (~/.agents/skills/driverag/.env) with those values.~/.agents/skills/driverag/venv).
cd ~/.agents/skills/driverag && python3 -m venv venvsource venv/bin/activate && pip install -r requirements.txtOnce 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 sync
To 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"
cli.py search command to get the exact answer from the RAG system and output the exact response it gives you.list-files command instead, because RAG semantic search cannot generate file lists.renew-token command to update their .env file.