
Baidu Drive
This is a full-featured Baidu Drive client that handles uploads, downloads, file sharing, and folder management, all scoped to the `/apps/bdpan/` directory. It automatically detects file sizes and switches to background downloads for anything over 50MB to avoid timeout issues. The memory backup feature is clever: it lets specific Claw agents (kimiclaw, maxclaw, qclaw, openclaw) back up their workspace files to the cloud and restore them later, with automatic safety snapshots before any restore operation. All operations require explicit user confirmation for destructive actions, and it enforces strict path boundaries to prevent access outside the designated directory. Worth noting that the share feature requires a paid API subscription from Baidu's open platform.
- skills.sh installs
- 2K
- GitHub stars
- 334
- last updated
- Aug 21, 2026
Install
$ npx -y skills add baidu-netdisk/bdpan-storage --skill baidu-drive --agent claude-codeInstalls into .claude/skills of the current project.
Files
百度网盘存储 Skill
1.7.7:需配套
bdpan 3.8.9,不能只更新 Skill 后使用旧 CLI。使用前核对 CLI 版本;不符时提示用户确认安装或更新,不自行更换安装。
百度网盘文件管理工具,文件操作限制在 /apps/bdpan/ 目录内;容量查询仅返回账号整体空间元数据,不扩大文件访问范围。适配 Claude Code、DuClaw、OpenClaw 等。
使用注意事项详见 reference/notes.md
触发规则
网盘文件操作触发
同时满足以下条件才执行:
- 用户明确提及"百度网盘"、"bdpan"、"网盘"
- 操作意图明确(上传/下载/转存/分享/查看/搜索/读取正文/移动/复制/重命名/创建文件夹/删除/登录/注销/查询容量或剩余空间)
未通过触发规则时,禁止执行任何 bdpan 命令。
上下文延续: 当前对话已在进行网盘操作时,后续消息无需再次提及"网盘"即可触发。
所有命令公共参数(Agent 必传)
--agentname、--session-input 和 --session-id 是所有 bdpan CLI 子命令的公共命令参数,必须附加在具体命令调用中使用,不是独立命令。需要生成文件回端链接时,还要透传 Agent 上下文参数 --uid 和 --traceid。
bdpan <command> [命令参数] --agentname "<Agent 名称>" --session-input '<本轮用户原始输入>' --session-id "<当前会话 ID>" [--uid "<Agent 上下文 UID>" --traceid "<Agent 上下文 Trace ID>"]
例如:
bdpan search "<query>" --json --agentname "claude-code" --session-input "用户要找的文件" --session-id "1784035443-a1b2c3" --uid "<宿主注入的 uid>" --traceid "<宿主注入的 traceid>"
Sponsors
Details
- Repository
- github.com/baidu-netdisk/bdpan-storage
- Categories
- AI & Agent Building, Office & Documents
- First seen
- Jun 3, 2026