Secrets Management
davila7/claude-code-templates
Secure secrets management practices for CI/CD pipelines using Vault, AWS Secrets Manager, and other tools.
A skill your agent uses when working with qBittorrent Web API - adding torrents, managing downloads, checking status, or any qBittorrent automation task.
$ npx skills add LeoYeAI/openclaw-master-skills --skill qbittorrent-api -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills qbittorrent-api --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/qbittorrent-api .claude/skills/qbittorrent-api && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "qbittorrent-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/qbittorrent-api into .claude/skills/qbittorrent-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "qbittorrent-api", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/qbittorrent-apiType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill qbittorrent-api -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills qbittorrent-api --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/qbittorrent-api .agents/skills/qbittorrent-api && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "qbittorrent-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/qbittorrent-api into .agents/skills/qbittorrent-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "qbittorrent-api", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill qbittorrent-api -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills qbittorrent-api --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/qbittorrent-api .cursor/skills/qbittorrent-api && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "qbittorrent-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/qbittorrent-api into .cursor/skills/qbittorrent-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "qbittorrent-api", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/qbittorrent-api--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill qbittorrent-api -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills qbittorrent-api --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/qbittorrent-api .gemini/skills/qbittorrent-api && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "qbittorrent-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/qbittorrent-api into .gemini/skills/qbittorrent-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "qbittorrent-api", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills qbittorrent-apiInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill qbittorrent-api -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/qbittorrent-api .github/skills/qbittorrent-api && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "qbittorrent-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/qbittorrent-api into .github/skills/qbittorrent-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "qbittorrent-api", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill qbittorrent-api -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills qbittorrent-api --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/qbittorrent-api .opencode/skills/qbittorrent-api && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "qbittorrent-api" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/qbittorrent-api into .opencode/skills/qbittorrent-api/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "qbittorrent-api", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
qbittorrent-apiA skill your agent uses when working with qBittorrent Web API - adding torrents, managing downloads, checking status, or any qBittorrent automation task.
Qbittorrent API is an agent skill from LeoYeAI/openclaw-master-skills. Use when working with qBittorrent Web API - adding torrents, managing downloads, checking status, or any qBittorrent automation task. Includes curl examples and common patterns.
Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `README.md` and `_meta.json`).
The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curljqFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comqbittorrent.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Qbittorrent API loads about 3.5k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 741 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
1. 项目目录的 `.env` 文件(默认)# .env 文件格式> **注意**: 执行任何 API 操作前,先检查 `.env` 文件是否存在并包含配置。如果缺少配置,询问用户。# 配置(从 .env 读取)source .env 2>/dev/null || trueAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 741 words, ~3,471 tokens.
.claude/skills/qbittorrent-api/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.优先级顺序:
.env 文件(默认)CLAUDE.md 文件# .env 文件格式
QB_URL="http://192.168.31.88:8080"
QB_USER="admin"
QB_PASS="123123"注意: 执行任何 API 操作前,先检查
.env文件是否存在并包含配置。如果缺少配置,询问用户。
qBittorrent 使用 cookie-based 认证:
# 配置(从 .env 读取)
source .env 2>/dev/null || true
COOKIE_FILE="/tmp/qb_cookies.txt"
# 登录并保存 cookie
curl -c "$COOKIE_FILE" -b "$COOKIE_FILE" \
-H "Referer: $QB_URL" \
-d "username=$QB_USER&password=$QB_PASS" \
"$QB_URL/api/v2/auth/login"
# 登出
curl -c "$COOKIE_FILE" -b "$COOKIE_FILE" \
"$QB_URL/api/v2/auth/logout"重要: 登录请求需要 Referer header。
/api/v2/auth| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 登录 | /login | POST | username, password |
| 登出 | /logout | POST | - |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 种子列表 | /info | GET | filter, hashes, category, tag |
| 种子数量 | /count | GET | filter |
| 种子详情 | /properties | GET | hash |
| 添加种子 | /add | POST | urls, savepath, category, tags |
| 删除种子 | /delete | POST | hashes, deleteFiles |
| 开始 | /start | POST | hashes |
| 停止 | /stop | POST | hashes |
| 重新检查 | /recheck | POST | hashes |
| 重新宣告 | /reannounce | POST | hashes |
| 重命名 | /rename | POST | hash, name |
| 设置注释 | /setComment | POST | hashes, comment |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 文件列表 | /files | GET | hash |
| 文件优先级 | /filePrio | POST | hash, id, priority |
| 重命名文件 | /renameFile | POST | hash, oldPath, newPath |
| 重命名文件夹 | /renameFolder | POST | hash, oldPath, newPath |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 获取下载限速 | /downloadLimit | GET | hashes |
| 获取上传限速 | /uploadLimit | GET | hashes |
| 设置下载限速 | /setDownloadLimit | POST | hashes, limit |
| 设置上传限速 | /setUploadLimit | POST | hashes, limit |
| 设置分享限制 | /setShareLimits | POST | hashes, ratioLimit, seedingTimeLimit |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 提高优先级 | /increasePrio | POST | hashes |
| 降低优先级 | /decreasePrio | POST | hashes |
| 最高优先级 | /topPrio | POST | hashes |
| 最低优先级 | /bottomPrio | POST | hashes |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 设置保存路径 | /setLocation | POST | hashes, location |
| 设置保存目录 | /setSavePath | POST | hashes, path |
| 设置下载目录 | /setDownloadPath | POST | hashes, path |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 获取分类 | /categories | GET | - |
| 创建分类 | /createCategory | POST | category, savePath |
| 编辑分类 | /editCategory | POST | category, savePath |
| 删除分类 | /removeCategories | POST | categories |
| 设置分类 | /setCategory | POST | hashes, category |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 获取标签 | /tags | GET | - |
| 创建标签 | /createTags | POST | tags |
| 删除标签 | /deleteTags | POST | tags |
| 添加标签 | /addTags | POST | hashes, tags |
| 设置标签 | /setTags | POST | hashes, tags |
| 移除标签 | /removeTags | POST | hashes, tags |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 获取 Trackers | /trackers | GET | hash |
| 添加 Trackers | /addTrackers | POST | hash, urls |
| 编辑 Tracker | /editTracker | POST | hash, origUrl, newUrl |
| 删除 Trackers | /removeTrackers | POST | hash, urls |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 获取 Web Seeds | /webseeds | GET | hash |
| 添加 Web Seeds | /addWebSeeds | POST | hash, urls |
| 编辑 Web Seed | /editWebSeed | POST | hash, origUrl, newUrl |
| 删除 Web Seeds | /removeWebSeeds | POST | hash, urls |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 添加 Peers | /addPeers | POST | hashes, peers |
/api/v2/torrents| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 自动管理 | /setAutoManagement | POST | hashes, enable |
| 超级做种 | /setSuperSeeding | POST | hashes, value |
| 强制开始 | /setForceStart | POST | hashes, value |
| 顺序下载 | /toggleSequentialDownload | POST | hashes |
| 首尾块优先 | /toggleFirstLastPiecePrio | POST | hashes |
/api/v2/transfer| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 传输信息 | /info | GET | - |
| 下载限速 | /downloadLimit | GET | - |
| 上传限速 | /uploadLimit | GET | - |
| 设置下载限速 | /setDownloadLimit | POST | limit |
| 设置上传限速 | /setUploadLimit | POST | limit |
| 切换备用限速 | /toggleSpeedLimitsMode | POST | - |
/api/v2/app| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 版本 | /version | GET | - |
| API 版本 | /webapiVersion | GET | - |
| 构建信息 | /buildInfo | GET | - |
| 关闭 | /shutdown | POST | - |
| 获取设置 | /preferences | GET | - |
| 设置偏好 | /setPreferences | POST | json |
| 默认保存路径 | /defaultSavePath | GET | - |
/api/v2/log| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 日志 | /main | GET | normal, info, warning, critical |
| Peer 日志 | /peers | GET | last_known_id |
/api/v2/sync| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 主数据 | /maindata | GET | rid |
| 种子 Peers | /torrentPeers | GET | hash, rid |
/api/v2/rss| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 添加文件夹 | /addFolder | POST | path |
| 添加订阅 | /addFeed | POST | url, path |
| 移除 | /removeItem | POST | path |
| 移动 | /moveItem | POST | itemPath, destPath |
| 获取文章 | /items | GET | withData |
| 标记已读 | /markAsRead | POST | itemPath, articleId |
| 刷新 | /refreshItem | POST | itemPath |
| 设置自动下载规则 | /setRule | POST | ruleName, ruleDef |
| 删除规则 | /removeRule | POST | ruleName |
| 获取规则 | /rules | GET | - |
| 匹配规则 | /matchingArticles | GET | ruleName |
/api/v2/search| 操作 | 端点 | 方法 | 参数 |
|---|---|---|---|
| 启动搜索 | /start | POST | pattern, plugins, category |
| 停止搜索 | /stop | POST | id |
| 搜索状态 | /status | GET | id |
| 搜索结果 | /results | GET | id, limit, offset |
| 删除搜索 | /delete | POST | id |
| 获取插件 | /plugins | GET | - |
| 安装插件 | /installPlugin | POST | sources |
| 卸载插件 | /uninstallPlugin | POST | names |
| 启用插件 | /enablePlugin | POST | names, enable |
| 更新插件 | /updatePlugins | POST | - |
| 参数 | 单位 | 换算 |
|---|---|---|
limit (限速) | bytes/second | 1 MB/s = 1048576 |
size | bytes | - |
progress | 0-1 浮点数 | 0.5 = 50% |
priority | 整数 | 0=不下载, 1=正常, 6=高, 7=最大 |
| 状态 | 含义 |
|---|---|
error | 错误 |
missingFiles | 文件丢失 |
uploading | 做种中 |
pausedUP | 暂停做种 |
queuedUP | 排队做种 |
stalledUP | 做种停滞 |
checkingUP | 检查中 |
forcedUP | 强制做种 |
allocating | 分配空间 |
downloading | 下载中 |
metaDL | 下载元数据 |
pausedDL | 暂停下载 |
queuedDL | 排队下载 |
stalledDL | 下载停滞 |
checkingDL | 检查中 |
forcedDL | 强制下载 |
checkingResumeData | 检查恢复数据 |
moving | 移动中 |
unknown | 未知 |
torrents/info 支持的过滤器:
all - 全部downloading - 下载中seeding - 做种中completed - 已完成paused - 已暂停active - 活跃inactive - 不活跃resumed - 已恢复stalled - 停滞stalled_uploading - 上传停滞stalled_downloading - 下载停滞errored - 错误重要: 添加种子前必须先查询已有保存路径,然后询问用户保存位置。
# 获取已有保存路径(按使用频率排序,显示前 10 个)
curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/torrents/info" | \
jq -r '.[].save_path' | sort | uniq -c | sort -rn | head -10
# 获取默认保存路径
curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/app/defaultSavePath"使用 AskUserQuestion 工具,展示已有路径供用户选择:
问题: 下载文件保存到哪个目录?
选项:
- /m2/ani/番剧 (最常用)
- /m2/movies
- /downloads (默认)
- 其他路径 (用户自定义)用户选择路径后,执行添加操作:
# Magnet link(用户选择或指定的路径)
curl -c cookies.txt -b cookies.txt \
-d "urls=magnet:?xt=urn:btih:xxxx" \
-d "savepath=$USER_SELECTED_PATH" \
"$QB_URL/api/v2/torrents/add"
# 带分类和标签
curl -c cookies.txt -b cookies.txt \
-d "urls=magnet:?xt=urn:btih:xxxx" \
-d "savepath=$USER_SELECTED_PATH" \
-d "category=movies" \
-d "tags=hd,2024" \
"$QB_URL/api/v2/torrents/add"
# Torrent 文件
curl -c cookies.txt -b cookies.txt \
-F "torrents=@file.torrent" \
-d "savepath=$USER_SELECTED_PATH" \
"$QB_URL/api/v2/torrents/add"# 全部
curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/torrents/info"
# 按状态过滤
curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/torrents/info?filter=downloading"
# 按分类过滤
curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/torrents/info?category=movies"
# 按标签过滤
curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/torrents/info?tag=hd"
# 指定种子
curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/torrents/info?hashes=abc123,def456"# 开始
curl -c cookies.txt -b cookies.txt \
-d "hashes=abc123" \
"$QB_URL/api/v2/torrents/start"
# 停止
curl -c cookies.txt -b cookies.txt \
-d "hashes=abc123" \
"$QB_URL/api/v2/torrents/stop"
### 删除种子
> **重要**: 删除种子时的 `deleteFiles` 参数规则:
>
> | 场景 | deleteFiles | 说明 |
> |------|-------------|------|
> | **默认行为** | `false` | 只删除任务,保留已下载的文件 |
> | 用户明确要求删除文件 | `true` | 用户指定要删除文件时 |
> | 未下载完成的种子 | `true` | progress < 100% 时,删除不完整的文件 |
>
> **安全原则**: 除非用户明确指定或种子未完成,否则默认不删除文件。
```bash
# 删除种子(保留文件)- 默认行为
curl -c cookies.txt -b cookies.txt \
-d "hashes=abc123&deleteFiles=false" \
"$QB_URL/api/v2/torrents/delete"
# 删除种子(同时删除文件)- 用户明确要求时
curl -c cookies.txt -b cookies.txt \
-d "hashes=abc123&deleteFiles=true" \
"$QB_URL/api/v2/torrents/delete"
# 删除多个种子(用 | 分隔)
curl -c cookies.txt -b cookies.txt \
-d "hashes=abc123|def456|ghi789&deleteFiles=false" \
"$QB_URL/api/v2/torrents/delete"
# 删除全部种子
curl -c cookies.txt -b cookies.txt \
-d "hashes=all&deleteFiles=false" \
"$QB_URL/api/v2/torrents/delete"删除前建议检查:
# 检查种子是否完成 (progress=1 表示 100%)
curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/torrents/info?hashes=abc123" | jq '.[0].progress'| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
hashes | string | ✅ | 种子 hash,多个用 | 分隔,all 删除全部 |
deleteFiles | bool | ❌ | 是否删除文件,默认 false |
# 设置种子下载限速 1 MB/s
curl -c cookies.txt -b cookies.txt \
-d "hashes=abc123&limit=1048576" \
"$QB_URL/api/v2/torrents/setDownloadLimit"
# 设置种子上传限速 512 KB/s
curl -c cookies.txt -b cookies.txt \
-d "hashes=abc123&limit=524288" \
"$QB_URL/api/v2/torrents/setUploadLimit"
# 全局限速
curl -c cookies.txt -b cookies.txt \
-d "limit=1048576" \
"$QB_URL/api/v2/transfer/setDownloadLimit"# 创建分类
curl -c cookies.txt -b cookies.txt \
-d "category=movies&savePath=/downloads/movies" \
"$QB_URL/api/v2/torrents/createCategory"
# 设置分类
curl -c cookies.txt -b cookies.txt \
-d "hashes=abc123&category=movies" \
"$QB_URL/api/v2/torrents/setCategory"
# 创建标签
curl -c cookies.txt -b cookies.txt \
-d "tags=hd,4k" \
"$QB_URL/api/v2/torrents/createTags"
# 添加标签
curl -c cookies.txt -b cookies.txt \
-d "hashes=abc123&tags=hd" \
"$QB_URL/api/v2/torrents/addTags"# 设置文件优先级
# priority: 0=不下载, 1=正常, 6=高, 7=最大
curl -c cookies.txt -b cookies.txt \
-d "hash=abc123&id=0&priority=0" \
"$QB_URL/api/v2/torrents/filePrio"# 获取 trackers
curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/torrents/trackers?hash=abc123"
# 添加 tracker
curl -c cookies.txt -b cookies.txt \
-d "hash=abc123&urls=udp://tracker.example.com:1337/announce" \
"$QB_URL/api/v2/torrents/addTrackers"curl -c cookies.txt -b cookies.txt \
"$QB_URL/api/v2/transfer/info"返回示例:
{
"dl_info_speed": 1048576,
"dl_info_data": 10737418240,
"up_info_speed": 524288,
"up_info_data": 5368709120,
"dl_rate_limit": 0,
"up_rate_limit": 0,
"dht_nodes": 1234,
"connection_status": "connected"
}#!/bin/bash
# 配置 - 从 CLAUDE.md 获取或使用环境变量
QB_URL="${QB_URL:-http://192.168.31.88:8080}"
QB_USER="${QB_USER:-admin}"
QB_PASS="${QB_PASS:-123123}"
COOKIE_FILE="/tmp/qb_cookies.txt"
# 登录
qb_login() {
curl -s -c "$COOKIE_FILE" -b "$COOKIE_FILE" \
-H "Referer: $QB_URL" \
-d "username=$QB_USER&password=$QB_PASS" \
"$QB_URL/api/v2/auth/login"
}
# 登出
qb_logout() {
curl -s -c "$COOKIE_FILE" -b "$COOKIE_FILE" \
"$QB_URL/api/v2/auth/logout"
rm -f "$COOKIE_FILE"
}
# GET 请求
qb_get() {
local endpoint="$1"
curl -s -c "$COOKIE_FILE" -b "$COOKIE_FILE" \
"$QB_URL/api/v2/$endpoint"
}
# POST 请求
qb_post() {
local endpoint="$1"
local data="$2"
curl -s -c "$COOKIE_FILE" -b "$COOKIE_FILE" \
-d "$data" \
"$QB_URL/api/v2/$endpoint"
}
# 使用示例
qb_login
# 获取下载中的种子
qb_get "torrents/info?filter=downloading" | jq '.'
# 添加种子
qb_post "torrents/add" "urls=magnet:?xt=urn:btih:xxxx&savepath=/downloads"
qb_logout| 问题 | 解决方案 |
|---|---|
| 登录失败 | 检查 Referer header |
| Cookie 不生效 | 确保同时使用 -c 和 -b |
| 限速不生效 | 单位是 bytes/s,不是 KB/s |
| 找不到种子 | 用 torrents/info 查询 hash |
| 中文乱码 | 确保 URL 编码 |
| 403 Forbidden | 检查白名单设置或 CSRF 保护 |
© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in skills/qbittorrent-api of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Qbittorrent API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Qbittorrent API this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~3.5k | Automated safety check: Notes | MIT | |
| Secrets Managementdavila7/claude-code-templates | 33k | 12 repos | ~2k | Automated safety check: Pass | MIT | |
| Project ManagerRightNow-AI/openfang | 18k | — | ~960 | Automated safety check: Pass | Apache-2.0 | |
| Content Management Systemsgithub/awesome-copilot | 40k | 1 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Secrets Vault Manageralirezarezvani/claude-skills | 28k | 1 repos | ~3.6k | Automated safety check: Notes | MIT | |
| Robius State Managementsickn33/agentic-awesome-skills | 47k | 2 repos | ~3.3k | Automated safety check: Pass | MIT |
davila7/claude-code-templates
Secure secrets management practices for CI/CD pipelines using Vault, AWS Secrets Manager, and other tools.
RightNow-AI/openfang
Project management expert for Agile, estimation, risk management, and stakeholder communication
github/awesome-copilot
Workflow for building and modifying content management systems across WordPress, Shopify, Wix, Squarespace, Drupal, WooCommerce, Joomla, HubSpot CMS Hub, Webflow, Adobe Experience Manager, and…
alirezarezvani/claude-skills
A skill your agent uses when the user asks to set up secret management infrastructure, integrate HashiCorp Vault, configure cloud secret stores (AWS Secrets Manager, Azure Key Vault, GCP Secret…
sickn33/agentic-awesome-skills
CRITICAL: Use for Robius state management patterns. An agent skill from sickn33/agentic-awesome-skills.
elastic/kibana
Register and schedule background tasks with the Kibana Task Manager plugin (@kbn/task-manager-plugin).
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
A skill your agent uses when working with qBittorrent Web API - adding torrents, managing downloads, checking status, or any qBittorrent automation task. Qbittorrent API is an agent skill from LeoYeAI/openclaw-master-skills. Use when working with qBittorrent Web API - adding torrents, managing downloads, checking status, or any qBittorrent automation task.
Qbittorrent API fits situations like: working with qBittorrent Web API - adding torrents; managing downloads; checking status; any qBittorrent automation task.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill qbittorrent-api -a claude-code`. Or copy the skill folder (skills/qbittorrent-api in LeoYeAI/openclaw-master-skills) into .claude/skills/qbittorrent-api in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill qbittorrent-api -a codex`. Or copy the skill folder (skills/qbittorrent-api in LeoYeAI/openclaw-master-skills) into .agents/skills/qbittorrent-api in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill qbittorrent-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/qbittorrent-api, .gemini/skills/qbittorrent-api, .github/skills/qbittorrent-api and .opencode/skills/qbittorrent-api in your project.
Going by SKILL.md and its folder, Qbittorrent API needs the command-line tools its instructions call (curl and jq).
SKILL.md names 2 domains. As links in the text: github.com and qbittorrent.org. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Qbittorrent API is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Qbittorrent API: Secrets Management (davila7/claude-code-templates, 33k stars), Project Manager (RightNow-AI/openfang, 18k stars), Content Management Systems (github/awesome-copilot, 40k stars) and Secrets Vault Manager (alirezarezvani/claude-skills, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.