Install
openclaw skills install google-drive-secureGoogle Drive Secure Management. Use when the user wants to list, search, read text content, create files with inline content, upload binaries, create folders, rename, move, copy, share, or manage permissions on Google Drive files (porteden secure alternative).
openclaw skills install google-drive-secureUse porteden drive for Google Drive file and folder management. Use -jc flags for AI-optimized output.
If porteden is not installed: brew install porteden/tap/porteden (or go install github.com/porteden/cli/cmd/porteden@latest).
porteden auth login — opens browser, credentials stored in system keyringporteden auth login --token <key> — stored in system keyringporteden auth statusPE_API_KEY is set in the environment, the CLI uses it automatically (no login needed).driveAccessEnabled: true and a connected Google account with Drive scopes.porteden drive)porteden drive files -jcporteden drive files -q "budget report" -jcporteden drive files --folder google:0B7_FOLDER_ID -jcporteden drive files --mime-type application/pdf -jcporteden drive files --name "Q1" -jcporteden drive files --shared-with-me -jcporteden drive files --modified-after 2026-01-01 --modified-before 2026-02-01 -jcporteden drive files --all -jcporteden drive file google:FILEID -jcporteden drive download google:FILEID -jcporteden drive permissions google:FILEID -jcporteden drive content google:FILEID
text/plain inlinewebViewLink — open in browserporteden sheets content / porteden slides readFor anything beyond a quick text dump of a Google Sheet, use the dedicated porteden sheets commands (see the porteden-sheets skill) — drive content only reads:
porteden sheets content google:SHEETID -jc / --ranges "Summary!A1:C100"porteden sheets read-tab google:SHEETID --title "Q2 Forecast" -jcporteden sheets write google:SHEETID --range "Sheet1!A1:B2" --values '[["Name","Score"]]' / porteden sheets appendporteden sheets write google:SHEETID --updates '[{"range":"Summary!A1:B1","values":[["Metric","Value"]]}]'porteden sheets add-tab / delete-tab / metadata via porteden sheets info google:SHEETID -jcporteden sheets create --name "Q1 Budget" --csv-file ./sales.csvporteden drive create --name "Notes.md" --mime-type text/markdown --content "# Notes"porteden drive create --name "Plan" --mime-type application/vnd.google-apps.document --content-file ./plan.md --content-mime-type text/markdownporteden drive create --name "Data.csv" --mime-type text/csv --content-file ./data.csvporteden drive upload --file ./report.pdf --name "Q1 Report.pdf"porteden drive upload --file ./data.csv --name "Data.csv" --folder google:0B7_FOLDERporteden drive mkdir --name "Project Files"porteden drive mkdir --name "Reports" --parent google:0B7_FOLDERporteden drive rename google:FILEID --name "New Name.pdf"porteden drive move google:FILEID --destination google:0B7_DEST_FOLDERporteden drive copy google:FILEID --name "Working copy"porteden drive copy google:FILEID --folder google:0B7_DEST_FOLDERporteden drive share google:FILEID --type user --role reader --email user@example.comporteden drive share google:FILEID --type domain --role reader --domain example.comporteden drive share google:FILEID --type anyone --role readerporteden drive delete google:FILEID (prompts) or porteden drive delete google:FILEID -yPE_PROFILE=work to avoid repeating --profile.-jc is shorthand for --json --compact: strips noise, limits fields, reduces tokens for AI agents.google:1BxiMVs0XRA5...). Pass them as-is.porteden drive files --all auto-paginates (safety cap: 50 pages). Check hasMore in JSON output.porteden drive content is the universal text reader — use it instead of download when you need the textual content of a file. For Google Workspace types (Sheets, Slides) it steers to the dedicated commands (porteden sheets content, porteden slides read) via stderr hints.porteden drive create uses inline JSON (UTF-8 text only, ≤ 10 MB). For binary content use porteden drive upload. For Workspace target MIME types (application/vnd.google-apps.{document,spreadsheet,presentation}) Drive auto-imports the content; otherwise the file is stored as-is.porteden drive copy duplicates any Drive file — including Google Docs/Sheets/Slides (per-type wrappers docs copy / sheets copy / slides copy exist too). Both --name and --folder are optional (defaults: Google's "Copy of …" name, source's folder). Copy is not idempotent — calling twice creates two copies. Folders cannot be copied (returns PROVIDER_ERROR); SharePoint files aren't supported yet (NOT_SUPPORTED). Requires the copy_file permission on the token.accessInfo in responses describes active token restrictions. Always check it to understand what data may be limited.authWarnings in list responses indicate provider connection issues.delete moves to trash (reversible). Files can be restored from Google Drive trash.PE_API_KEY, PE_PROFILE, PE_FORMAT, PE_COLOR, PE_VERBOSE.