Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
支持百度网盘文件查看、搜索、分享链接提取、一键转存及目录创建的综合管理功能。
支持百度网盘文件查看、搜索、分享链接提取、一键转存及目录创建的综合管理功能。
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
用于 OpenClaw 的百度网盘操作 Skill,支持文件列表查看、搜索、分享链接提取、转存、目录创建、文件管理等功能。
重要提示: 本 Skill 需要您的百度网盘登录凭证(BDUSS 和 STOKEN),这些凭证具有完全访问您网盘账户的权限 请仅在受信任的环境中使用,不要在公共设备或共享环境中配置 建议创建专门的测试账号使用本 Skill,避免使用主账号 凭证存储在本地 config.json 文件中,请确保文件权限安全
📁 文件列表 - 查看网盘指定目录的文件列表 🔍 文件搜索 - 在网盘中搜索文件 🔗 分享提取 - 提取百度网盘分享链接的文件列表
💾 一键转存 - 将分享的文件转存到自己的网盘 📂 创建目录 - 在网盘中创建新目录 ✏️ 重命名 - 重命名文件或目录(实验性功能) 🔄 移动 - 移动文件到不同目录(实验性功能) 🗑️ 删除 - 删除文件或目录(实验性功能,请谨慎使用)
pip install requests
在 config.json 中配置百度网盘登录凭证: { "bduss": "your_bduss_here", "stoken": "your_stoken_here", "default_save_path": "~/Downloads/BaiduNetdisk" } 或者使用环境变量(更安全): export BAIDU_BDUSS="your_bduss_here" export BAIDU_STOKEN="your_stoken_here"
登录百度网盘网页版 (https://pan.baidu.com) 按 F12 打开开发者工具 切换到 Application/应用 标签 找到 Cookies -> https://pan.baidu.com 复制 BDUSS 和 STOKEN 的值 注意:BDUSS 和 STOKEN 是敏感信息,请妥善保管,不要泄露给他人。
# 列出根目录文件 python scripts/main.py list # 列出指定目录 python scripts/main.py list path=/我的资源 # 按文件名排序 python scripts/main.py list path=/我的资源 order=name
# 搜索文件名包含"电影"的文件 python scripts/main.py search keyword=电影 # 在指定路径下搜索 python scripts/main.py search keyword=电影 path=/我的资源
# 提取无密码的分享链接 python scripts/main.py extract share_url=https://pan.baidu.com/s/1xxxxx # 提取有密码的分享链接 python scripts/main.py extract share_url=https://pan.baidu.com/s/1xxxxx extract_code=abcd
# 转存到默认路径 python scripts/main.py transfer share_url=https://pan.baidu.com/s/1xxxxx # 转存到指定路径 python scripts/main.py transfer share_url=https://pan.baidu.com/s/1xxxxx save_path=/我的资源/电影 # 带提取码转存 python scripts/main.py transfer share_url=https://pan.baidu.com/s/1xxxxx extract_code=abcd save_path=/我的资源
# 创建新目录 python scripts/main.py mkdir path=/新目录名
⚠️ 警告:以下操作会修改您的网盘文件,请谨慎使用! # 重命名文件/目录 python scripts/main.py rename path=/原文件名 new_name=新文件名 # 移动文件 python scripts/main.py move path=/原路径 dest=/目标路径 # 删除文件/目录(不可恢复) python scripts/main.py delete path=/要删除的路径
在 Agent 配置中添加: { "skills": ["baidunetdisk"] }
# 让 Agent 列出网盘文件 openclaw agent --message "查看我的百度网盘根目录有什么文件" # 搜索文件 openclaw agent --message "在我的百度网盘搜索所有PDF文件" # 转存分享链接 openclaw agent --message "把这个百度网盘分享链接转存到我的网盘: https://pan.baidu.com/s/1xxxxx 提取码: abcd" # 创建目录 openclaw agent --message "在百度网盘创建一个名为'工作文档'的目录"
登录状态:BDUSS 和 STOKEN 有过期时间,如遇到权限错误请重新获取 频率限制:百度网盘 API 有访问频率限制,请合理使用 隐私安全:不要在公共场合或共享环境中使用,避免凭证泄露 实验性功能:删除、重命名、移动功能为实验性,可能存在不稳定情况 数据安全:删除操作不可恢复,请谨慎使用
表示登录凭证无效或过期,请重新获取 BDUSS 和 STOKEN
API 调用受限,请检查网络连接或稍后再试
版本: 1.0.0 作者: MaxStorm Team 许可证: MIT 源码: https://github.com/maxstorm/baidunetdisk-skill
Messaging, meetings, inboxes, CRM, and teammate communication surfaces.
Largest current source with strong distribution and engagement signals.