baidunetdisk-skill支持百度网盘文件查看、搜索、分享链接提取、一键转存及目录创建的综合管理功能。
Install via ClawdBot CLI:
clawdbot install lilei0311/baidunetdisk-skill用于 OpenClaw 的百度网盘操作 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"
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 调用受限,请检查网络连接或稍后再试
Generated Mar 1, 2026
Individuals can automate file organization, search, and sharing on Baidu Netdisk. This includes listing files, creating directories, and extracting shared links for personal backups or media collections.
Small teams can use this skill to manage shared resources on Baidu Netdisk, such as transferring shared files to team folders, searching for documents, and organizing project files efficiently.
Content creators or educators can automate the storage and retrieval of digital assets like videos, PDFs, or course materials. It enables quick sharing via links and organizing files into structured directories.
Users can set up scripts to regularly back up local files to Baidu Netdisk or migrate data between accounts by extracting and transferring shared links, ensuring data safety and accessibility.
Offer basic file management for free, with advanced features like bulk operations, API access, or priority support as paid upgrades. This targets individual users and small businesses seeking enhanced productivity.
Provide customized integrations for enterprises to embed Baidu Netdisk functionality into their workflows, such as automated file handling for CRM systems or document management platforms.
Partner with Baidu or cloud storage providers to promote their services through the skill. Earn commissions by driving user sign-ups or premium plan conversions via integrated sharing and transfer features.
💬 Integration Tip
Ensure secure storage of BDUSS and STOKEN credentials using environment variables to prevent unauthorized access in production environments.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot
Perform advanced filesystem tasks including listing, recursive searching by name or content, batch copying/moving/deleting files, and analyzing directory siz...
Essential SSH commands for secure remote access, key management, tunneling, and file transfers.
Extract text from PDF files for LLM processing
The directory for AI agent services. Discover tools, platforms, and infrastructure built for agents.
Advanced filesystem operations - listing, searching, batch processing, and directory analysis for Clawdbot