| name | terabox-storage |
| description | Manage TeraBox cloud storage operations including login, upload, download, share, and transfer. Use the terabox CLI tool for file management tasks. |
| version | 1.0.0 |
TeraBox Storage Skill
TeraBox cloud storage management tool supporting upload, download, transfer, share, and file listing. All operations are restricted to the application sandbox directory.
Compatible with: OpenClaw, Claude Code, DuClaw, Ducc, etc.
Beta stage - see reference/notes.md for important notes
Installation
If the terabox CLI tool is not installed, run the installation script:
bash @skills/terabox-storage/scripts/install.sh
The script will:
- Detect your OS and architecture
- Download the terabox binary from CDN
- Install it to
~/.local/bin/terabox
Make sure ~/.local/bin is in your PATH:
export PATH="$HOME/.local/bin:$PATH"
Trigger Rules
Execute only when BOTH conditions are met:
- User explicitly mentions TeraBox - message contains "TeraBox", "terabox", "Tera", etc.
- Clear operation intent - can determine one of: upload, download, transfer, share, list, login, logout
Do NOT execute any terabox commands if conditions are not met.
Confirmation Rules
Must confirm with user first in these scenarios:
| Scenario | Description |
|---|
| Path unclear | User did not specify file path or target path |
| Remote path exists | Upload target has same-name file - ask: overwrite/rename/cancel |
| Local path exists | Download target has same-name file - ask: overwrite/rename/cancel |
| Ambiguous intent | "process files" → confirm upload or download; "sync" → confirm direction; "backup" → confirm direction |
Confirmation format:
Operation: [upload/download/share/list]
Source: [path]
Destination: [path]
Confirm execution?
Pre-execution Checks
Before every terabox command:
- Run Skill auto-update (silently, do not block on failure):
- Skill update:
bash @skills/terabox-storage/scripts/update.sh --yes
- CLI auto-update is handled automatically by the CLI itself (built-in update check on every command execution)
- If update fails, continue with the user's requested operation
- Run
terabox whoami to check login status; if not logged in, guide user to bash @skills/terabox-storage/scripts/login.sh
- Validate path legality (no
../, path must be within application sandbox)
Core Features
Upload
terabox upload <local_path> [remote_path]
terabox upload ./file.txt
terabox upload ./file.txt docs/
terabox upload ./file.txt --progress
terabox upload ./my-dir/ backup/
Supports single file and directory upload. When uploading a directory, all files are recursively uploaded.
Steps: Confirm local path exists → Confirm remote path → Use terabox ls to check if remote exists → Execute upload
Download
terabox download <remote_path> [local_path]
terabox download report.pdf
terabox download report.pdf ./saved/
terabox download report.pdf --progress
terabox download docs/ ./local-docs/
Supports single file and directory download. When downloading a directory, all files are recursively downloaded.
Steps: Use terabox ls to confirm cloud path exists → Confirm local path → Check if local exists → Execute download
Transfer (Save shared files to your cloud storage)
terabox share-save <share_url> --pwd <password> [--path <dest_path>]
terabox share-save "https://terabox.com/s/1xxxxx" --pwd abcd --path my-folder/
terabox share-save "https://terabox.com/s/1xxxxx" --pwd abcd --fsid 12345,12346
Steps: Validate link format → Confirm password exists → Confirm target directory → Execute transfer
Share Operations
terabox share-info <share_url>
terabox share-list <share_url> --pwd <password>
terabox share-list <share_url> --pwd <password> --by name --order asc
terabox share-list <share_url> --pwd <password> --by size
terabox share-list <share_url> --pwd <password> --by time -p 2
terabox share-download <share_url> [local_path] --pwd <password>
terabox share-download <share_url> --pwd <password> --fsid 12345
terabox share-create <path>...
terabox share-create file.txt --pwd abcd
terabox share-create file.txt --period 7
terabox share-create file.txt --public
File Operations
terabox ls [directory]
terabox ls -l [directory]
terabox ls --order name
terabox ls --order size --asc
terabox search <keyword>
terabox search <keyword> --order name
terabox info <file_path>
terabox info <file_path> --dlink
terabox mv <source> <destination>
terabox cp <source> <destination>
terabox rename <path> <new_name>
User Information
terabox uinfo
terabox quota
Update CLI
terabox update
terabox update check
terabox update apply
terabox update rollback
terabox update list
The CLI also checks for updates automatically on every command execution. Use --no-check-update global flag to disable this behavior.
Login
Must use the login script:
bash scripts/login.sh
Requirements:
- Must use
@skills/terabox-storage/scripts/login.sh script
- Do NOT use
terabox login directly (even in GUI environments)
The login script includes complete security disclaimers and authorization flow to ensure informed user consent.
Logout
terabox logout
Path Rules
All remote paths are relative to the application sandbox directory /From:Other Applications/app-name/.
| Scenario | Rule | Example |
|---|
| In commands | Use relative paths | terabox upload ./f.txt docs/f.txt |
| Display to user | Use full paths | "Uploaded to: /From:Other Applications/app/docs/f.txt" |
Prohibited:
- Paths containing
.. or ~
- Paths outside the application sandbox
Reference Documentation
See the reference directory for detailed information (consult when encountering issues):