Split from aloycwl/OpenClaw: skill-gog
This skill provides Google Drive manipulation capabilities using the gog CLI tool. It includes authentication methods, file upload/download operations, and Drive management.
# Keyring password for gog authentication
export GOG_KEYRING_PASSWORD="<YOUR_KEYRING_PASSWORD>"
# Default account (optional)
export GOG_ACCOUNT="<YOUR_EMAIL>"
{
"keyring_backend": "file"
}
Location: /home/openclaw/.config/gogcli/config.json
gog auth login <email>
gog auth status
gog auth list
gog auth manage
# Basic upload
gog drive upload <local_path> --name "<file_name>" --parent "root"
# With account specification
gog drive upload <local_path> --name "<file_name>" --parent "root" --account <email>
# With keyring password
gog drive upload <local_path> --name "<file_name>" --parent "root" --account <email> --keyring-password <password>
gog drive download <file_id> --output <local_path>
gog drive search "<query>"
gog drive ls
gog drive move <file_id> --parent <folder_id>
gog drive delete <file_id>
GOG_KEYRING_PASSWORD="123456" gog drive upload bug-bounty-reports.tar.gz --name "Bug Bounty Reports - insightginie.com" --parent "root" --account aloycwl@gmail.com
GOG_KEYRING_PASSWORD="123456" gog drive upload <file_name> --name "<display_name>" --parent "root" --account aloycwl@gmail.com
403 Access Not Configured: Google Drive API not enabled
Authentication Required: Missing credentials
gog auth loginKeyring Password Required: Missing password
GOG_KEYRING_PASSWORD environment variable# Check configuration
gog config status
# Check authentication
gog auth status
# Check Drive API
gog drive status
# Step 1: Prepare files
# (Assume files are already created)
# Step 2: Archive files
tar -czf bug-bounty-reports.tar.gz *.md
# Step 3: Upload to Drive
GOG_KEYRING_PASSWORD="123456" gog drive upload bug-bounty-reports.tar.gz --name "Bug Bounty Reports - insightginie.com" --parent "root" --account aloycwl@gmail.com
# Step 4: Verify upload
gog drive search "Bug Bounty Reports"
# Solution 1: Check keyring password
gog auth status
# Solution 2: Re-authenticate
gog auth login aloycwl@gmail.com
# Solution 3: Check configuration
gog config status
# Solution: Enable Drive API
# Visit: https://console.developers.google.com/apis/api/drive.googleapis.com/overview?project=674660835109
# Solution: Check file path
gog drive ls
# Solution: Check permissions
gog drive status
# Update keyring password
GOG_KEYRING_PASSWORD="new_password" gog config set keyring_password new_password
# Update default account
gog config set default_account new_email@gmail.com
Skill created for Google Drive manipulation using gog CLI with authentication.