Skip to main content

magnet.ai

BT / magnet search + AI installer for macOS. Say what you want in one line; it searches the indexers you have, drops the releases your machine can't run, ranks by seeders and your actual hardware, and hands you one magnet. Once downloaded, it opens the folder, reads what's inside, and installs it step by step. macOS only, zero dependencies, no account.

一个跑在本机的资源雷达。中间一个输入框:说一句你要什么,它去你配的索引器里找, 标出哪些在你这台机器上根本跑不了,按种子好坏排好,点一下交给下载器。下完之后, 它自己进那个文件夹看清楚里面是什么,写好步骤,一步步装,装成功了就把这套手法 记住。

不配任何东西也能用:内置三个直连源,AI 关掉时搜索按原词直搜、安装按本地规则走。

长什么样

一句话搜,它把结果排好,每条直接告诉你「这台机器能不能跑」:

搜索:一句话进,排好序的结果出

首页是它自己搜出来的推荐墙——每个 App 一张卡,标着原生还是要走 CrossOver:

推荐墙

截图是我自己在用的那台机器,拍的时候界面还叫 RADAR,现在统一成 magnet.ai 了; 分类也比公开版多(建筑、游戏那些是我自己加的)。你装完之后墙上是 magnet-ai-setup 搜到的 macOS 原生软件。

跑起来

最省事(装了 pipx 的话)

pipx install magnet-ai
magnet-ai-setup --apply --install-app

这一条会把该做的都做了:认机器、认本机的 agent CLI、装成 /Applications/magnet.ai.app;如果这台机器一个下载器都没有,会问你一句要不要装 qBittorrent,同意就装上、打开局域网接口、配好,之后点「加入下载」是后台请求, 不弹窗不抢焦点。

装完在启动台双击 magnet.ai:不弹终端、不占 Dock,浏览器自己开页面。 不想让它碰下载器,加 --no-downloader。

从仓库跑(想改代码就用这个)

git clone https://github.com/Kmrnn9888/magnet.ai && cd magnet.ai
python3 -m magnet_ai.setup                 # 体检:这台机器缺什么,只读不写
python3 -m magnet_ai.setup --apply --install-app

上面那条已经包含下载器那一步。只想补这一步(已经装过 app 了):

magnet-ai-setup --configure-qbittorrent --apply

它只做一件事:让 qBittorrent 认自己本机这个接口。要重来一遍就加 --yes。

两条路装出来的是同一个东西。要 macOS 12+ / Python 3.9(系统自带就够),零第三方依赖。

第一次运行会在 ~/.radar/ 里生成 machine.json(这台机器是什么)和 config.json (你的设置)。magnet-ai-setup 会把本机的 agent CLI(claude / codex / gemini / opencode)自动认出来写进 ai.cmd——它自己就是那个 AI,不用另外买 key。

首页那面「推荐」墙是搜出来的,仓库里不带内容,都是 macOS 原生(.dmg / .pkg), .exe 会被过滤掉。版本可能偏旧,那是公开源上的现状,要最新版请去官网。

想开机会自己起来:系统设置 → 通用 → 登录项 → 加 magnet.ai。

给 agent 用(MCP)

它同时是个 MCP server,一个文件,没有依赖。在 Claude Desktop / Cursor 的配置里加三行:

{
  "mcpServers": {
    "magnet-ai": { "command": "magnet-ai-mcp" }
  }
}

给 agent 的工具:

工具 干什么
search_resources 一句话进,排好序的磁力列表出(含做种数、体积、这台机器能不能跑)
add_to_downloader 把磁力交给本机下载器
install_folder 传一个下载好的文件夹,出安装步骤;apply=true 才真的动手
machine_info 这台机器是什么,用来回答「我这台能不能跑」

用 agent 的时候你不需要打开网页——它在后台跑,agent 调它。

四样东西,不配也能跑(但会素)

要配的 不配会怎样
AI 搜索按原词直搜(中文名基本搜不到),安装按 dmg/pkg/zip/exe 的固定套路走。设置页填个 key,或者把 ai.cmd 指向本机一个带 terminal 的 CLI(claude / codex / 你自己的),就打开了
索引器 只用内置的三个直连源(TPB / torrents-csv / RarBg)。有 qBittorrent 的话它自带的搜索插件会被自动发现
下载器 自动找 qBittorrent / Transmission / Motrix / Folx / Deluge / Vuze;一个都没有就把磁力复制到剪贴板。装 qBittorrent 与否、要不要开接口,装的时候会问你一次;开了之后递种子是后台请求,不弹窗、不抢焦点
wine 层 自动找 CrossOver / Whisky / Homebrew wine。都没有就装不了 Windows 版软件,Mac 原生的一样能装

三个设计决定

  • 模型只提案,不执行。 它写出来的每一步都要过闸:动作必须在白名单里,路径必须是 包内此刻真实存在的相对路径,后缀要对得上。编的路径、绝对路径、..、后缀不符的 一律丢弃;丢空了就退回不依赖 AI 的确定性方案。
  • 判断不交给模型。 内核反作弊、Denuvo、Linux 包、只有补丁没有本体——这些是 rules.py 里的硬规则,命中直接标红,模型只在你筛过的结果里挑。
  • 不绑定任何一家。 换下载器、换 wine 层、换 AI 后端,都是改表里一行。

它不带什么

不带索引器清单,不带磁力链,不带任何内容。catalog.json 和 essentials.json 在你本地生成,不进仓库。innoextract 用 brew install innoextract 装(比塞一个 exe 进仓库干净);VC6 运行库这类东西放在 ~/.radar/vendor/ 就会被自动补进瓶。

已知的边界

  • 只在 macOS 上跑过。安装动作是 hdiutil / installer / ditto / osascript。
  • Highball 只认不管:它能被检测到、能替你打开,但它没有命令行,建瓶和往里装 exe 只能你在它的界面里点。我不写一段假装能替你点的代码。
  • qBittorrent 的自动配置要退出应用再改配置,所以你在下载时它不会替你关掉—— 挑没在下东西的时候装,或者装完自己手动跑一次 --configure-qbittorrent。
  • GUI 向导式安装器仍然要你自己点「下一步」,它只是把安装器启动起来并等它退出。
  • 平台能不能跑这件事,现在是一张「要求表」加你本机的硬件算出来的结论,不是实测。

License

MIT 名字说明:仓库叫 magnet.ai,代码里它管自己叫 Radar(终端里会打印 Radar on http://127.0.0.1:8125),是同一个东西,不用改。

什么情况下你会用到它

  • 在 Mac 上想找某个软件 / 电影 / 剧 / 书 / 音乐,但不知道去哪搜、搜出来一堆看不懂的版本
  • qBittorrent 的搜索框搜不到中文资源,或者搜出来全是死种
  • 下载下来是一个文件夹,里面套着 dmg、还有 pkg、还有补丁,不知道先点哪个
  • 装完发现「这个游戏/软件我这台机器根本跑不动」,白下了 20G

常见问题

Mac 上怎么搜 BT / 磁力资源?

用这个。它是本机跑的一个面板,不依赖任何网站,搜索走你本机已有的索引器 (qBittorrent 的搜索插件)加三个公开直连源。

一定要装 qBittorrent 吗?

不一定。它认 qBittorrent / Transmission / Motrix / Folx / Deluge / Vuze, 一个都没有就把磁力复制到剪贴板,你自己贴。

要 API key 吗?

不要。它能直接调用你本机已有的 agent CLI(claude / codex / gemini / opencode), 那个 CLI 就是它的 AI,不用另外买。

支持 Windows 软件吗?

Mac 原生优先。Windows 版要靠 wine 层(CrossOver / Whisky),装了就能跑,没装就标红。

会不会上传我的东西?

不会。全程 127.0.0.1,没有账号、没有云端、配置文件在 ~/.radar/。

Metadata

Release files for magnet-ai 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for magnet-ai 0.5.0
File Interpreter ABI Platform Actions
magnet_ai-0.5.0-py3-none-any.whl Python 3 none any Details for magnet_ai-0.5.0-py3-none-any.whl

Release files / magnet_ai-0.5.0-py3-none-any.whl

Download URL magnet_ai-0.5.0-py3-none-any.whl
Size 129.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6af1e7bf62c720d9871df6fbfb5bbef7cabc64822b67af9a98f7cc79ed3d1be
BLAKE2b-256 checksum
How to use checksums
6164d126dd10dabbe174265e32dea51e43e6825fe3624517261f11f1fb895b01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for magnet-ai 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page