闲社服务运行正常AI智能体自动化平台
q

qBittorrent接口

技能标识:qbittorrent-api

Use when working with qBittorrent Web API - adding torrents, managing downloads, checking status, or any qBittorrent automation task. Includes curl examples and common patterns.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

qBittorrent接口

qBittorrent Web API

配置信息

优先级顺序:

  1. 1. 项目目录的 .env 文件(默认)
  2. 项目 CLAUDE.md 文件
  3. 询问用户提供

bash

.env 文件格式


QB_URL=http://192.168.31.88:8080
QB_USER=admin
QB_PASS=123123

注意: 执行任何 API 操作前,先检查 .env 文件是否存在并包含配置。如果缺少配置,询问用户。

认证

qBittorrent 使用 基于 cookie 的认证:

bash

配置(从 .env 读取)


source .env 2>/dev/null || true
COOKIEFILE=/tmp/qbcookies.txt

登录并保存 cookie

curl -c $COOKIEFILE -b $COOKIEFILE \ -H Referer: $QB_URL \ -d username=$QBUSER&password=$QBPASS \ $QB_URL/api/v2/auth/login

登出

curl -c $COOKIEFILE -b $COOKIEFILE \ $QB_URL/api/v2/auth/logout

重要: 登录请求需要 Referer 请求头。



API 端点速查

认证 /api/v2/auth

操作端点方法参数
登录/loginPOSTusername, password
登出
/logout | POST | - |

种子管理 /api/v2/torrents

操作端点方法参数
种子列表/infoGETfilter, 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

操作端点方法参数
文件列表/filesGEThash
文件优先级
/filePrio | POST | hash, id, priority | | 重命名文件 | /renameFile | POST | hash, oldPath, newPath | | 重命名文件夹 | /renameFolder | POST | hash, oldPath, newPath |

速度限制 /api/v2/torrents

操作端点方法参数
获取下载限速/downloadLimitGEThashes
获取上传限速
/uploadLimit | GET | hashes | | 设置下载限速 | /setDownloadLimit | POST | hashes, limit | | 设置上传限速 | /setUploadLimit | POST | hashes, limit | | 设置分享限制 | /setShareLimits | POST | hashes, ratioLimit, seedingTimeLimit |

优先级 /api/v2/torrents

操作端点方法参数
提高优先级/increasePrioPOSThashes
降低优先级
/decreasePrio | POST | hashes | | 最高优先级 | /topPrio | POST | hashes | | 最低优先级 | /bottomPrio | POST | hashes |

路径管理 /api/v2/torrents

操作端点方法参数
设置保存路径/setLocationPOSThashes, location
设置保存目录
/setSavePath | POST | hashes, path | | 设置下载目录 | /setDownloadPath | POST | hashes, path |

分类管理 /api/v2/torrents

操作端点方法参数
获取分类/categoriesGET-
创建分类
/createCategory | POST | category, savePath | | 编辑分类 | /editCategory | POST | category, savePath | | 删除分类 | /removeCategories | POST | categories | | 设置分类 | /setCategory | POST | hashes, category |

标签管理 /api/v2/torrents

操作端点方法参数
获取标签/tagsGET-
创建标签
/createTags | POST | tags | | 删除标签 | /deleteTags | POST | tags | | 添加标签 | /addTags | POST | hashes, tags | | 设置标签 | /setTags | POST | hashes, tags | | 移除标签 | /removeTags | POST | hashes, tags |

Tracker 管理 /api/v2/torrents

操作端点方法参数
获取 Trackers/trackersGEThash
添加 Trackers
/addTrackers | POST | hash, urls | | 编辑 Tracker | /editTracker | POST | hash, origUrl, newUrl | | 删除 Trackers | /removeTrackers | POST | hash, urls |

Web Seeds 管理 /api/v2/torrents

操作端点方法参数
获取 Web Seeds/webseedsGEThash
添加 Web Seeds
/addWebSeeds | POST | hash, urls | | 编辑 Web Seed | /editWebSeed | POST | hash, origUrl, newUrl | | 删除 Web Seeds | /removeWebSeeds | POST | hash, urls |

Peers 管理 /api/v2/torrents

操作端点方法参数
添加 Peers/addPeersPOSThashes, peers

其他设置 /api/v2/torrents

操作端点方法参数
自动管理/setAutoManagementPOSThashes, enable
超级做种
/setSuperSeeding | POST | hashes, value | | 强制开始 | /setForceStart | POST | hashes, value | | 顺序下载 | /toggleSequentialDownload | POST | hashes | | 首尾块优先 | /toggleFirstLastPiecePrio | POST | hashes |

传输信息 /api/v2/transfer

操作端点方法参数
传输信息/infoGET-
下载限速
/downloadLimit | GET | - | | 上传限速 | /uploadLimit | GET | - | | 设置下载限速 | /setDownloadLimit | POST | limit | | 设置上传限速 | /setUploadLimit | POST | limit | | 切换备用限速 | /toggleSpeedLimitsMode | POST | - |

应用程序 /api/v2/app

操作端点方法参数
版本/versionGET-
API 版本
/webapiVersion | GET | - | | 构建信息 | /buildInfo | GET | - | | 关闭 |

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 qbittorrent-api-1776073576 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 qbittorrent-api-1776073576 技能

通过命令行安装

skillhub install qbittorrent-api-1776073576

下载

⬇ 下载 qbittorrent-api v0.1.0(免费)

文件大小: 6.96 KB | 发布时间: 2026-4-14 11:47

v0.1.0 最新 2026-4-14 11:47
- Initial release of the qbittorrent-api skill.
- Provides qBittorrent Web API reference for authentication, torrent, file, category, tag, tracker, RSS, search, and more.
- Includes curl usage examples, endpoint and parameter summaries, common automation tasks, and configuration guidance.
- Offers tables of API endpoints for quick lookups.
- Covers key workflows (like adding torrents) and explains parameter units and torrent statuses.
返回顶部