← 返回
效率工具 Key 中文

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 downloa...
通过百度开放API管理百度网盘文件,支持查询配额、列出文件、搜索、生成下载链接
zhangyi-3
效率工具 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 714
下载
💾 33
安装
1
版本
#latest

概述

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"

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 20:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,127
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,229
productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 430 📥 103,707