baidu-disk-helper

A tool to manage Baidu Wangpan (Baidu Netdisk) files using the official Baidu Open API. Supports checking quota, listing files, searching, generating download links, and file management (mkdir, rename, move, delete, upload). Requires user API keys and manual authorization.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "baidu-disk-helper" with this command: npx skills add zhangyi-3/baidu-disk-helper

Baidu Disk Helper (百度网盘) Open API Skill

This skill allows OpenClaw to interact with a user's Baidu Wangpan using the official Baidu Open API.

⚠️ Important: Bring Your Own Key (BYOK)

Baidu Netdisk strictly limits API access. You MUST apply for your own developer keys to use this skill. The skill uses your keys to run locally and never sends them anywhere else.

1. Register a Baidu Developer App

  1. Go to the Baidu Netdisk Open Platform.
  2. Register as a developer and create a new application (Software App / 软件应用).
  3. Obtain your AppKey (Client ID) and SecretKey (Client Secret).

2. Tell the Agent to Authenticate

Once you have your keys, tell your OpenClaw agent:

"I want to set up Baidu Wangpan. My AppKey is XXX and my SecretKey is YYY."

The agent will run the setup script and generate a URL for you. Click the URL, log into Baidu, copy the Authorization Code, and paste it back to the agent:

"Here is my authorization code: ZZZ"

Tokens are securely saved in ~/.openclaw/workspace/bwp_config.json.


🚀 Usage Guide for OpenClaw Agents

When the user asks you to interact with Baidu Wangpan, use the exec tool to run the following Python commands:

Setup & Auth

# Step 1: Generate Auth URL
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py auth --app-key "APP_KEY" --secret-key "SECRET_KEY"

# Step 2: Validate Code
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py auth --code "AUTH_CODE"

Storage & Listing

# Check Quota
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py quota

# List Files
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py list --dir "/apps"

# Search Files (returns FS_ID)
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py search "keyword" --dir "/"

Download

# Get Download Link (requires FS_ID from list or search)
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py download "1054668475058405"

Note: Baidu enforces that the download request must include the header User-Agent: pan.baidu.com. The script will output an exact curl command you can run to download the file.

File Management

# Create Directory
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py mkdir "/apps/my_new_folder"

# Rename File/Directory (newname is just the name, not full path)
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py rename "/apps/old_name.txt" "new_name.txt"

# Move File/Directory
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py move "/apps/file.txt" "/apps/my_new_folder"

# Delete File/Directory (moves to trash)
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py delete "/apps/file_to_delete.txt"

Upload

# Upload a Single File
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py upload "/local/path/to/file.txt" "/apps/remote_folder"

# Upload an Entire Directory (Uses Multi-Threading for Speed!)
python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py upload "/local/path/to/directory" "/apps/remote_folder"

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Hot Content Creator

热点内容创作助手:自动抓取多平台热点,筛选创作方向,生成小红书封面图和虚拟博主形象, 写出有人味的爆款内容。触发词:热点创作、追热点、创作方向、小红书方向、抖音方向。 适用场景:需要从热点中挖掘内容创作方向并生成配图+文案的完整工作流。

Registry SourceRecently Updated
General

飞书 Markdown 文档发布器,完美支持支持图片、表格

将 Markdown 文件发布为飞书(Feishu/Lark)在线文档。 支持完整的 Markdown 语法,包括标题、段落、表格、有序/无序列表、 待办事项、分隔线、加粗/斜体等富文本样式。 当用户需要将本地 Markdown 文件同步或发布到飞书文档时使用。

Registry SourceRecently Updated
General

Publish V3

One window, three emotions. Switch between Lover / Buddy / Rival anytime. Lightweight nurturing, mood persistence, gamified stats, auto-degradation dual mode...

Registry SourceRecently Updated
General

Startup Adaptation Strategist

Анализ и адаптация западных стартапов с проверенным PMF для быстрого запуска MVP на российском рынке с учётом санкций и локальных требований.

Registry SourceRecently Updated