← 返回 Skills 市场
zhangyi-3

Baidu Disk Helper

作者 Zhang Yi · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
332
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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"
安全使用建议
This skill is internally coherent for managing Baidu Netdisk: it uses Baidu's OAuth endpoints and API and stores tokens locally. Before installing: 1) Confirm you're comfortable pasting your AppKey/SecretKey and the OAuth code into the agent chat — those values will be stored in ~/.openclaw/workspace/bwp_config.json. If you prefer, run the provided Python script yourself outside the agent so keys never go into chat. 2) Note the path example in SKILL.md (~/.../skills/baidu-wangpan/...) may not match the installed skill directory (slug: baidu-disk-helper); you may need to adjust the command paths to the actual skill location. 3) Inspect the config file and delete it if you revoke keys or uninstall the skill. 4) If you want higher assurance, run the script locally (open the script and execute it manually) rather than giving keys to the agent; provide the remaining/complete script (the manifest had a truncated portion) if you'd like me to re-check for any hidden behavior.
功能分析
Type: OpenClaw Skill Name: baidu-disk-helper Version: 1.0.0 The skill is a legitimate implementation of a Baidu Wangpan (Baidu Netdisk) client using the official Baidu Open API. It correctly handles OAuth2 authentication, token refreshing, and file management operations (listing, searching, uploading, and downloading) as described in its documentation. Sensitive credentials (AppKey, SecretKey, and tokens) are stored locally in `~/.openclaw/workspace/bwp_config.json`, and all network communication is directed to official Baidu domains (openapi.baidu.com, pan.baidu.com, and d.pcs.baidu.com) with no evidence of data exfiltration or malicious execution in `scripts/bwp.py`.
能力评估
Purpose & Capability
Name/description, the included Python script, and the runtime instructions all consistently implement a Baidu Wangpan client using the official Baidu endpoints. The skill does not request unrelated cloud credentials or system-wide access. One minor inconsistency: SKILL.md uses the path ~/.openclaw/workspace/skills/baidu-wangpan/... while the registry slug is 'baidu-disk-helper' and the skill files are under scripts/. That path/name mismatch may cause the example exec commands to fail unless the agent installs the skill under the expected directory.
Instruction Scope
Instructions direct the agent to run the bundled Python script and to accept the user's AppKey/SecretKey and authorization code via chat. The script only interacts with Baidu endpoints and reads/writes a local config file (~/.openclaw/workspace/bwp_config.json). Be aware that asking users to paste secrets into the agent/chat means those secrets will be visible to the agent runtime and may be stored in that config file; the SKILL.md states keys are only used locally, and the code only sends tokens to Baidu endpoints, but the agent platform's chat logs or telemetry (outside the skill) could capture them if the user pastes them into chat.
Install Mechanism
There is no install spec (instruction-only plus a bundled script). That keeps disk/write operations limited to the bundled script and the config file the script creates. No external downloads or third-party installers are performed by the skill itself.
Credentials
The skill requests no environment variables or system credentials; it requires the user to supply an AppKey and SecretKey (BYOK) which is appropriate for a developer-key-based API. The only persistent artifact is a local JSON config file with tokens. This is proportionate, but users should understand that secrets are stored on disk in that file and provided via agent/chat input.
Persistence & Privilege
always is false and the skill does not request elevated or global agent privileges. It writes its own config file under ~/.openclaw/workspace/bwp_config.json (expected for a client that caches tokens) and does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install baidu-disk-helper
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /baidu-disk-helper 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Baidu Disk Helper for OpenClaw. - Manage Baidu Wangpan files via the official Baidu Open API. - Supports quota checking, file listing, search, download link generation, and basic file operations (mkdir, rename, move, delete, upload). - Requires users to provide their own Baidu API keys and authorize access manually. - Includes detailed setup and usage instructions for secure authentication and operation.
元数据
Slug baidu-disk-helper
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 332 次。

如何安装 Baidu Disk Helper?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install baidu-disk-helper」即可一键安装,无需额外配置。

Baidu Disk Helper 是免费的吗?

是的,Baidu Disk Helper 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Baidu Disk Helper 支持哪些平台?

Baidu Disk Helper 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Baidu Disk Helper?

由 Zhang Yi(@zhangyi-3)开发并维护,当前版本 v1.0.0。

💬 留言讨论