← Back to Skills Marketplace
aiastia

Aria2 Downloader

by aiastia · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
95
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install aria2-downloader
Description
Remote control aria2 via JSON-RPC API. Add downloads (magnet/HTTP/FTP), check progress, pause/resume/remove tasks, batch download from text. NOT for local ar...
README (SKILL.md)

aria2 Downloader

通过 aria2 JSON-RPC API 远程控制 aria2 下载服务。

首次配置

在 workspace 根目录创建 .aria2-config.json

{
  "url": "https://your-server.com/jsonrpc",
  "token": "your-secret-token"
}

⚠️ 此文件包含敏感信息,已在 .gitignore 中排除。

功能

功能 说明
📥 添加下载 支持磁力链接、HTTP/FTP 直链
📋 查看任务 查看所有活跃/等待/已完成的任务
⏸️ 暂停任务 暂停指定下载
▶️ 恢复任务 恢复暂停的下载
🗑️ 删除任务 删除指定下载任务
📄 批量下载 发送文本(每行一个链接),逐个添加

使用方式

添加下载

用户说:

→ 调用 scripts/aria2.js add \x3Curl>

查看任务

用户说:

  • "查看下载进度"
  • "aria2 状态"
  • "下载到哪了"

→ 调用 scripts/aria2.js list

暂停任务

用户说:

  • "暂停下载 xxx"
  • "暂停 GID abc123"

→ 调用 scripts/aria2.js pause \x3Cgid>

恢复任务

用户说:

  • "恢复下载 xxx"
  • "继续下载 GID abc123"

→ 调用 scripts/aria2.js unpause \x3Cgid>

删除任务

用户说:

  • "取消下载 xxx"
  • "删除 GID abc123"

→ 调用 scripts/aria2.js remove \x3Cgid>

批量下载

用户发送一段文本(每行一个链接):

magnet:?xt=urn:btih:aaa...
magnet:?xt=urn:btih:bbb...
https://example.com/file1.zip
https://example.com/file2.zip

→ 调用 scripts/aria2.js batch 并通过 stdin 传入链接

脚本说明

所有操作通过 scripts/aria2.js 执行:

# 查看帮助
node scripts/aria2.js help

# 添加下载
node scripts/aria2.js add "magnet:?xt=urn:btih:..."

# 查看所有任务
node scripts/aria2.js list

# 暂停
node scripts/aria2.js pause \x3Cgid>

# 恢复
node scripts/aria2.js unpause \x3Cgid>

# 删除
node scripts/aria2.js remove \x3Cgid>

# 批量下载(stdin 传入链接,每行一个)
echo -e "magnet:?xt=...\
https://..." | node scripts/aria2.js batch

配置文件

读取 workspace 根目录的 .aria2-config.json

{
  "url": "https://your-server.com/jsonrpc",
  "token": "your-secret-token"
}

如果配置文件不存在,提示用户创建。

输出格式

任务列表

📋 活跃任务 (3):
  [abc123] ▓▓▓▓▓▓▓▓░░ 78.5% | 12.3 MB/s | Ubuntu-22.04.iso
  [def456] ▓▓░░░░░░░░ 15.2% | 5.6 MB/s  | movie.mkv
  [ghi789] ▓▓▓▓▓▓▓▓▓▓ 100%  | 完成       | file.zip

⏳ 等待中 (1):
  [jkl012] 等待中 | BigFile.tar.gz

✅ 已完成 (2):
  [mno345] 100% | archive.rar
  [pqr678] 100% | document.pdf

添加下载

✅ 已添加下载
GID: abc123
文件: Ubuntu-22.04.iso

批量下载

📥 批量下载 (4 个链接):
  ✅ [1] magnet:?xt=... → GID: abc123
  ✅ [2] magnet:?xt=... → GID: def456
  ✅ [3] https://example.com/file1.zip → GID: ghi789
  ❌ [4] invalid-url → 失败: 无效链接

注意事项

  • 不轮询:只在用户请求时查看进度
  • 不硬编码:URL 和 Token 由用户配置
  • 链接类型:支持 magnet、http、https、ftp
  • 依赖:Node.js(无需额外 npm 包,使用原生 fetch)
Usage Guidance
This skill appears to do exactly what it says: control a remote aria2 instance via JSON‑RPC. Before installing, ensure the .aria2-config.json you create points to a trusted aria2 server and keep the file secret (it contains the token). The script will send that token to the configured URL as part of each RPC call, so do not use it with unknown/third‑party servers. If you prefer a different path, set ARIA2_CONFIG to a safe location. Review the included scripts if you want to confirm no additional network endpoints are contacted and to ensure the config file is listed in your .gitignore or stored securely.
Capability Analysis
Type: OpenClaw Skill Name: aria2-downloader Version: 1.0.0 The aria2-downloader skill is a legitimate tool for remotely managing an aria2 service via its JSON-RPC API. The core logic in `scripts/aria2.js` uses native Node.js modules to perform standard download operations (add, list, pause, remove) based on a user-provided configuration file (`.aria2-config.json`). No evidence of data exfiltration, unauthorized execution, or malicious prompt injection was found; the script correctly handles sensitive tokens via local configuration rather than hardcoding them.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md usage, and scripts/aria2.js are coherent: the script issues aria2 JSON‑RPC calls (add/list/pause/unpause/remove/batch). No unrelated services, binaries, or secrets are requested.
Instruction Scope
Instructions limit actions to reading a single config file (.aria2-config.json) and calling the aria2 JSON‑RPC endpoint on demand. Note: the script transmits the configured token to the remote aria2 server as part of RPC params (expected), and batch mode will send every line read from stdin to the remote server as a download request.
Install Mechanism
No install spec or external downloads; included script uses only Node.js built‑ins (http/https/fs). No packages are fetched from external registries.
Credentials
No platform env vars or credentials are required by the skill metadata. The script reads a local config file containing 'url' and 'token' (sensitive). The ability to override CONFIG_PATH via ARIA2_CONFIG is reasonable. Access to the token is proportionate to the stated functionality but is sensitive—ensure the config points to a trusted aria2 instance.
Persistence & Privilege
always is false and the skill does not modify other skills or system settings. It runs only when invoked and does not request persistent privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install aria2-downloader
  3. After installation, invoke the skill by name or use /aria2-downloader
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of aria2-downloader. - Remotely control aria2 servers via JSON-RPC API. - Add downloads via magnet, HTTP, or FTP links. - View download tasks with progress/status. - Pause, resume, and remove downloads by GID. - Batch add links from pasted text. - Reads configuration from `.aria2-config.json` in the workspace root.
Metadata
Slug aria2-downloader
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Aria2 Downloader?

Remote control aria2 via JSON-RPC API. Add downloads (magnet/HTTP/FTP), check progress, pause/resume/remove tasks, batch download from text. NOT for local ar... It is an AI Agent Skill for Claude Code / OpenClaw, with 95 downloads so far.

How do I install Aria2 Downloader?

Run "/install aria2-downloader" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Aria2 Downloader free?

Yes, Aria2 Downloader is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Aria2 Downloader support?

Aria2 Downloader is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Aria2 Downloader?

It is built and maintained by aiastia (@aiastia); the current version is v1.0.0.

💬 Comments