Nov 18, 2026

Manage Your Baidu Netdisk From an Agent With baidu-drive

The baidu-drive skill lets Claude Code, Codex CLI, and other agents upload, download, transfer, share, and search Baidu Netdisk files from natural-language prompts — all scoped to /apps/bdpan/ with confirm-before-modify guardrails.

#tutorial#productivity#agent-tools

Cloud-drive housekeeping means clicking through a web UI or memorizing CLI flags, and neither fits the way you already work with an agent. The baidu-drive skill — published under the baidu-netdisk GitHub organization, with its skill badge linking to a Baidu Netdisk developer page — takes one sentence instead: tell your agent what to do with your files, and it runs the operation through Baidu's interface.

Why This Skill Matters

The README's feature table lists thirteen operations: quota queries, upload, download, share-link downloads, transferring shared content to your own drive, share links, listing, search, reading file contents, move, copy, rename, and folder creation. Reading file contents covers txt, Markdown, Word, PDF, PPT, and Excel, so "summarize the doc in my drive" becomes an agent prompt instead of a download-and-open ritual.

The compatibility line in the English README names Claude Code, Cursor, Codex CLI, Gemini CLI, OpenClaw, DuClaw, KimiClaw, and Manus.

The security model is the part worth reading twice. Every operation is scoped to /apps/bdpan/ — the skill cannot reach your other files. Deletion requires explicit intent plus explicit confirmation, and only after the agent lists the pending targets; moves, renames, and overwrites require confirmation before executing. Auth is OAuth 2.0 authorization-code mode with no stored passwords, the token file is off-limits to the agent, the authorization code passes through stdin instead of a process argument, installed binaries get SHA256 checks, and updates never run automatically or silently.

Installation

One command from the README:

npx skills add https://github.com/baidu-netdisk/bdpan-storage/skills --skill baidu-drive

On first use, the skill guides you through installing its CLI tool and completing the Baidu Netdisk login authorization. The support table covers macOS (arm64 and amd64), Linux (arm64 and amd64), and Windows through WSL (amd64) — the table marks native Windows as unsupported.

The repository also ships a second skill, baidu-wenku-aippt-personal, which its own SKILL.md describes as auto-generating high-quality PPT decks from one sentence, built on the bdpan aippt command.

Real Workflow: Upload, Share, and Search From Prompts

  1. After installing, talk to your agent in plain language. The README's examples:
帮我上传 ./report.pdf 到百度网盘
搜索网盘里所有 PDF 文件
转存这个链接:<百度网盘分享链接>?pwd=abcd

The skill recognizes the intent, executes the operation, and returns a formatted result.

  1. Combine operations in one sentence. The README's upload-and-share example shows the response shape:
帮我上传 ./report.pdf 到网盘并分享

The result carries the share link, the extraction code, and the validity period.

  1. Ask for a listing when you want to see what is on the drive — the README's example output prints type, size, modification time, and name per item, then a total count.

  2. Share links have four validity windows the README documents: one day, seven days, thirty days, or permanent.

  3. When something breaks, talk to the skill first. The README's troubleshooting prompts:

百度网盘 token 过期了
检查网盘登录状态
更新一下 bdpan

An expired token triggers guided re-login, a status check prints the current authentication information, and the update prompt checks for skill and CLI updates — which, per the security table, still require your explicit confirmation.

Tips

  • Quota queries are read-only, and the README notes they need the CLI to support the quota command.
  • Treat the BETA notice seriously: the README recommends backing up important data and manually reviewing each command the AI executes.
  • Moving shared content into your own drive ("转存") keeps the download target inside /apps/bdpan/ — the README's example lands it in 我的应用数据/bdpan/.
  • Reading file contents turns the drive into an extension of your agent's context: ask it to summarize or compare documents it could not otherwise open.

When Not to Use This

  • Native Windows is out: the support table marks it unsupported, and WSL is the documented path on Windows.
  • Files outside /apps/bdpan/ are unreachable by design — the scope isolation that protects you also bounds what the skill can touch.
  • This skill speaks Baidu Netdisk only; other cloud drives need their own tools.
  • It is a BETA release — for critical data, keep your own backups rather than trusting any single copy on the drive.

See the leaderboard for more skills.