首页龙虾技能列表 › Baidu Disk Helper — 技能工具

Baidu Disk Helper — 技能工具

v1.0.0

A tool to manage Baidu Wangpan (Baidu Netdisk) files using the official Baidu Open API. Supports checking quota, listing files, searching, generating downloa...

0· 272·0 当前·0 累计
by @zhangyi-3 (Zhang Yi)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/10
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
medium confidence
The skill appears to be what it claims: a local client for Baidu Netdisk using user-supplied API keys; nothing in the code or instructions requests unrelated credentials or external endpoints beyond Baidu, but there are small operational and privacy notes you should consider.
评估建议
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 ma...
详细分析 ▾
用途与能力
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.
指令范围
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.
安装机制
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.
凭证需求
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.
持久化与权限
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.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/10

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

● 无害

安装命令 点击复制

官方npx clawhub@latest install baidu-disk-helper
镜像加速npx clawhub@latest install baidu-disk-helper --registry https://cn.clawhub-mirror.com

技能文档

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

  • Go to the Baidu Netdisk Open Platform.
  • Register as a developer and create a new application (Software App / 软件应用).
  • 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"

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务