← 返回
未分类 Key 中文

Terabox Storage

Manage TeraBox cloud storage operations including login, upload, download, share, and transfer. Use the terabox CLI tool for file management tasks.
管理TeraBox云存储操作(登录、上传、下载、分享、传输),使用terabox CLI工具执行文件管理任务。
arthurpatten arthurpatten 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 2
Stars
📥 454
下载
💾 0
安装
1
版本
#latest

概述

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:

  1. Detect your OS and architecture
  2. Download the terabox binary from CDN
  3. 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:

  1. User explicitly mentions TeraBox - message contains "TeraBox", "terabox", "Tera", etc.
  2. 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:

ScenarioDescription
-----------------------
Path unclearUser did not specify file path or target path
Remote path existsUpload target has same-name file - ask: overwrite/rename/cancel
Local path existsDownload 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:

  1. 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
  2. Run terabox whoami to check login status; if not logged in, guide user to bash @skills/terabox-storage/scripts/login.sh
  3. Validate path legality (no ../, path must be within application sandbox)

Core Features

Upload

terabox upload <local_path> [remote_path]
terabox upload ./file.txt              # Upload to root directory
terabox upload ./file.txt docs/        # Upload to docs directory
terabox upload ./file.txt --progress   # Show upload progress
terabox upload ./my-dir/ backup/       # Upload entire directory

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            # Download to current directory
terabox download report.pdf ./saved/   # Download to specified directory
terabox download report.pdf --progress # Show download progress
terabox download docs/ ./local-docs/   # Download entire directory

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)

# Basic usage
terabox share-save <share_url> --pwd <password> [--path <dest_path>]

# Specify save directory
terabox share-save "https://terabox.com/s/1xxxxx" --pwd abcd --path my-folder/

# Transfer specific files by ID
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

# View share details
terabox share-info <share_url>

# List shared files
terabox share-list <share_url> --pwd <password>
terabox share-list <share_url> --pwd <password> --by name --order asc  # Sort by name
terabox share-list <share_url> --pwd <password> --by size              # Sort by size
terabox share-list <share_url> --pwd <password> --by time -p 2        # Sort by time, page 2

# Download shared files directly
terabox share-download <share_url> [local_path] --pwd <password>
terabox share-download <share_url> --pwd <password> --fsid 12345  # Download specific file

# Create share link
terabox share-create <path>...                    # Create share with auto-generated password
terabox share-create file.txt --pwd abcd          # Create share with custom password
terabox share-create file.txt --period 7          # Create share valid for 7 days
terabox share-create file.txt --public            # Create public share (no password)

File Operations

terabox ls [directory]                 # List files
terabox ls -l [directory]              # List files with details
terabox ls --order name                # List sorted by name
terabox ls --order size --asc          # List sorted by size ascending
terabox search <keyword>               # Search files
terabox search <keyword> --order name  # Search with sorting
terabox info <file_path>               # Get file details
terabox info <file_path> --dlink       # Get file details with download link
terabox mv <source> <destination>      # Move file
terabox cp <source> <destination>      # Copy file
terabox rename <path> <new_name>       # Rename file

User Information

terabox uinfo                          # Get user info
terabox quota                          # Query storage quota

Update CLI

terabox update                         # Check and update CLI
terabox update check                   # Check for updates only
terabox update apply                   # Apply pending update
terabox update rollback                # Rollback to previous version
terabox update list                    # List installed versions

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/.

ScenarioRuleExample
-------------------------
In commandsUse relative pathsterabox upload ./f.txt docs/f.txt
Display to userUse 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):

DocumentWhen to Consult
---------------------------
terabox-commands.mdNeed complete command parameters, options, JSON output formats
authentication.mdLogin authentication flow details, config file locations, Token management
examples.mdNeed more usage examples
troubleshooting.mdEncountering errors that need diagnosis
notes.mdBeta stage important notes

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 06:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 32,159
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 31,352
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 31,108