Tools
Cloud Storage
openclaw plugin for dropbox, google drive, and onedrive file ops. day 20 of 20 days of claw.
Install
openclaw plugins install -l
Configuration Example
{
"plugins": {
"cloud-storage": {
"defaultProvider": "dropbox",
"dropbox": {
"accessToken": "$DROPBOX_TOKEN"
}
}
}
}
README
# cloud-storage
openclaw plugin for cloud file operations. dropbox, google drive, and onedrive through one unified interface. upload, download, list, search, delete.
no heavy SDKs. raw REST API calls to each provider.
## install
```bash
openclaw plugins install -l .
```
## config
```json
{
"plugins": {
"cloud-storage": {
"defaultProvider": "dropbox",
"dropbox": {
"accessToken": "$DROPBOX_TOKEN"
}
}
}
}
```
### provider configs
**dropbox:**
```json
{ "dropbox": { "accessToken": "..." } }
```
**google drive:**
```json
{
"gdrive": {
"clientId": "...",
"clientSecret": "...",
"refreshToken": "..."
}
}
```
**onedrive:**
```json
{
"onedrive": {
"clientId": "...",
"clientSecret": "...",
"refreshToken": "..."
}
}
```
## tools
- **cloud_list** - list files/folders at a path
- **cloud_upload** - upload local file to cloud
- **cloud_download** - download cloud file to local
- **cloud_delete** - delete a cloud file
- **cloud_search** - search by filename
every tool accepts an optional `provider` parameter. defaults to your `defaultProvider`.
## how it works
each provider is a thin wrapper around the platform's REST API. dropbox uses their v2 API, gdrive uses the v3 API with OAuth refresh, onedrive uses Microsoft Graph. all auth is token-based via config.
files are streamed as buffers. no temp files, no multipart magic beyond what the APIs require.
## day 20 of [20 days of claw](https://github.com/StressTestor)
tools
Comments
Sign in to leave a comment