baidu-pcs-auth
对百度网盘 CLI 工具(baidu-pcs-cli-rs)执行 OAuth 设备码授权登录,或检查当前登录状态是否有效。当用户需要登录百度网盘、切换账号或授权认证时激活此技能。
Best use case
baidu-pcs-auth is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
对百度网盘 CLI 工具(baidu-pcs-cli-rs)执行 OAuth 设备码授权登录,或检查当前登录状态是否有效。当用户需要登录百度网盘、切换账号或授权认证时激活此技能。
Teams using baidu-pcs-auth should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/auth/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How baidu-pcs-auth Compares
| Feature / Agent | baidu-pcs-auth | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
对百度网盘 CLI 工具(baidu-pcs-cli-rs)执行 OAuth 设备码授权登录,或检查当前登录状态是否有效。当用户需要登录百度网盘、切换账号或授权认证时激活此技能。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 百度网盘认证授权 ## 使用场景 - 首次使用工具,尚未完成授权 - 当前 Token 已失效,需要重新登录 - 切换到其他百度账号 ## 命令格式 ```bash baidu-pcs-cli-rs auth [--config <配置文件路径>] [--dns <DNS服务器>] # 别名 baidu-pcs-cli-rs login ``` ## 执行步骤 1. 运行 `baidu-pcs-cli-rs auth` 命令 2. 终端会输出一个设备码和授权 URL(格式如 `https://openapi.baidu.com/device`) 3. 在浏览器中打开该 URL,输入设备码,用百度账号完成扫码或登录授权 4. 授权完成后,工具自动将 Token 写入配置文件(默认 `~/.config/baidu-pcs-rs/config.toml`),权限为 0o600 ## 参数说明 | 参数 | 说明 | 示例 | |------|------|------| | `--config` | 指定配置文件路径,用于多账号切换 | `--config ~/work-account.toml` | | `--dns` | 指定自定义 DNS 服务器(逗号分隔,支持 IP 或 IP:PORT) | `--dns 8.8.8.8,1.1.1.1:53` | ## 注意事项 - 若当前 Token 仍有效,工具会输出当前账号信息并提示无需重新认证 - 如需切换账号,使用 `--config` 指定不同的配置文件路径 - Token 过期后下次执行任何命令会自动尝试刷新,无需手动重新 auth ## 示例 ```bash # 标准登录 baidu-pcs-cli-rs auth # 使用指定配置文件(多账号场景) baidu-pcs-cli-rs auth --config ~/.config/baidu-pcs-rs/work.toml ```
Related Skills
baidu-pcs-wget
下载百度网盘分享链接中的文件到本地,支持需要提取码的分享链接,可指定本地保存目录。当用户需要从百度网盘分享链接下载文件时激活此技能。
baidu-pcs-version
显示百度网盘 CLI 工具的版本信息。当用户需要确认当前安装的版本号时激活此技能。
baidu-pcs-tx
将本地文件或目录上传到百度网盘(本地 → 远程),支持递归上传目录和上传后删除本地源文件。当用户需要上传文件到网盘时激活此技能。
baidu-pcs-self
管理百度网盘 CLI 工具自身,包括查看配置文件路径、检查更新和自动下载最新版本。当用户需要查看配置文件位置、检查或升级工具版本时激活此技能。
baidu-pcs-rx
从百度网盘下载文件或目录到本地(远程 → 本地),支持递归下载整个目录。当用户需要从网盘下载文件或目录到本机时激活此技能。
baidu-pcs-mv
在百度网盘内移动或重命名文件/目录(远程到远程)。当用户需要在网盘中移动文件位置或对文件/目录重命名时激活此技能。
baidu-pcs-mkdir
在百度网盘中创建一个或多个远程目录,支持自动创建父目录。当用户需要在网盘中新建目录、组织文件结构时激活此技能。
baidu-pcs-ls
列出百度网盘指定远程目录下的文件和子目录,支持递归展开。当用户需要查看百度网盘目录内容、浏览文件列表时激活此技能。
baidu-pcs-cp
在百度网盘内复制文件或目录(远程到远程),不涉及本地文件。当用户需要在网盘内部复制、备份文件或目录时激活此技能。
baidu-pcs-completion
为百度网盘 CLI 工具生成 shell 自动补全脚本,支持 bash/zsh/fish/powershell 等主流 shell,可安装到 shell 配置文件中。当用户需要启用命令行 Tab 补全功能时激活此技能。
baidu-pcs-backup
将本地文件/目录增量备份到百度网盘,仅上传网盘中尚不存在的文件,已存在且一致的文件自动跳过。当用户需要定期备份本地数据到网盘、避免重复上传时激活此技能。
microsoft-azure-webjobs-extensions-authentication-events-dotnet
Microsoft Entra Authentication Events SDK for .NET. Azure Functions triggers for custom authentication extensions.