返回顶部
b

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
291
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

baidu-disk-helper

技能名称: baidu-disk-helper
详细描述:

百度网盘助手 Open API 技能

该技能允许 OpenClaw 通过百度官方开放 API 与用户的百度网盘进行交互。

⚠️ 重要提示:自带密钥(BYOK)

百度网盘严格限制 API 访问权限。您必须自行申请开发者密钥才能使用此技能。 该技能在本地使用您的密钥运行,绝不会将密钥发送到其他地方。

1. 注册百度开发者应用

  1. 1. 访问百度网盘开放平台
  2. 注册成为开发者并创建一个新应用(软件应用)。
  3. 获取您的 AppKey(客户端 ID)和 SecretKey(客户端密钥)。

2. 告知智能体进行身份验证

获取密钥后,请告知您的 OpenClaw 智能体:

我想设置百度网盘。我的 AppKey 是 XXX,SecretKey 是 YYY。

智能体将运行设置脚本并为您生成一个 URL。点击该 URL,登录百度,复制 授权码,然后将其粘贴回智能体:

这是我的授权码:ZZZ

令牌将安全保存在 ~/.openclaw/workspace/bwp_config.json 中。



🚀 OpenClaw 智能体使用指南

当用户要求您与百度网盘交互时,请使用 exec 工具运行以下 Python 命令:

设置与认证

bash

步骤 1:生成授权 URL

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py auth --app-key APPKEY --secret-key SECRETKEY

步骤 2:验证授权码

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py auth --code AUTH_CODE

存储与列表

bash

查看配额

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

列出文件

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

搜索文件(返回 FS_ID)

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py search 关键词 --dir /

下载

bash

获取下载链接(需要从列表或搜索中获取 FS_ID)

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py download 1054668475058405

注意:百度要求下载请求必须包含 User-Agent: pan.baidu.com 标头。脚本将输出一个完整的 curl 命令,您可以直接运行该命令下载文件。

文件管理

bash

创建目录

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py mkdir /apps/mynewfolder

重命名文件/目录(新名称仅为名称,非完整路径)

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py rename /apps/oldname.txt newname.txt

移动文件/目录

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py move /apps/file.txt /apps/mynewfolder

删除文件/目录(移至回收站)

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py delete /apps/filetodelete.txt

上传

bash

上传单个文件

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py upload /local/path/to/file.txt /apps/remote_folder

上传整个目录(使用多线程提升速度!)

python ~/.openclaw/workspace/skills/baidu-wangpan/scripts/bwp.py upload /local/path/to/directory /apps/remote_folder

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 baidu-disk-helper-1776173361 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 baidu-disk-helper-1776173361 技能

通过命令行安装

skillhub install baidu-disk-helper-1776173361

下载

⬇ 下载 baidu-disk-helper v1.0.0(免费)

文件大小: 6.73 KB | 发布时间: 2026-4-15 10:40

v1.0.0 最新 2026-4-15 10:40
- 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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部