Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计异常

aria2-json-rpcaria2 JSON RPC 控制

Agent Skill

aria2-json-rpc 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

392

周安装

16

GitHub Stars

1

下载量

125
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:aria2-json-rpc(aria2 JSON RPC 控制)
来源仓库:https://github.com/azzgo/agent-skills
仓库路径:skills/aria2-json-rpc
安装命令:
npx skills add https://github.com/azzgo/agent-skills --skill aria2-json-rpc
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/azzgo/agent-skills --skill aria2-json-rpc

简介

通过自然语言控制 aria2 下载管理器执行各类文件传输任务。

  • 支持 HTTP/FTP/Magnet/Torrent 等多种协议与批量操作管理。
  • 必须使用 scripts 目录下的 Python 脚本而非手动构造 JSON-RPC 请求。
  • 运行环境需确保 python3 可用且 aria2 服务已启动监听端口。
  • aria2-json-rpc 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

What This Skill Does

This skill enables you to control aria2 download manager through natural language commands:

  • Download files (HTTP/HTTPS/FTP/Magnet/Torrent/Metalink)
  • Monitor download progress and status
  • Control downloads (pause, resume, remove)
  • Manage batch operations (pause all, resume all)
  • View statistics and configure options

How to Use (For AI Agents)

⚠️ CRITICAL: DO NOT manually construct JSON-RPC requests.

✅ ALWAYS use the Python scripts in the scripts/ directory.

⚠️ IMPORTANT: Use python3 command, NOT python (especially on macOS where python symlink doesn't exist)

Workflow (MUST FOLLOW)

Step 1: Check Configuration Status

Before executing any aria2 commands, ALWAYS check if configuration is ready:

python3 scripts/config_loader.py test
  • If successful: Proceed to execute user's command
  • If failed: Guide user to initialize configuration (see Step 2)

Step 2: Initialize Configuration (if needed)

If connection test fails, guide user to set up configuration:

# Recommended: User config (survives skill updates)
python3 scripts/config_loader.py init --user

# Alternative: Local config (project-specific)
python3 scripts/config_loader.py init --local

Then instruct user to edit the generated config file with their aria2 server details.

Step 3: Execute User Commands

Once configuration is ready, execute the requested aria2 operations.

Example Workflow

User: "download http://example.com/file.zip"

You execute:

# 1. Check configuration
python3 scripts/config_loader.py test

If test passes:

# 2. Execute download command
python3 scripts/rpc_client.py aria2.addUri '["http://example.com/file.zip"]'

You respond: "✓ Download started! GID: 2089b05ecca3d829"

If test fails:

Configuration not ready. Please initialize:
1. Run: python3 scripts/config_loader.py init --user
2. Edit ~/.config/aria2-skill/config.json with your aria2 server details
3. Run: python3 scripts/config_loader.py test (to verify)

Documentation Structure

For detailed execution instructions, see:

- Command mapping table (user intent → script call) - Parameter formatting rules - Step-by-step examples - Common mistakes to avoid - Response formatting guidelines

For aria2 method reference, see:

Common Commands Quick Reference

User IntentCommand Example
Download a filepython3 scripts/rpc_client.py aria2.addUri '["http://example.com/file.zip"]'
Check statuspython3 scripts/rpc_client.py aria2.tellStatus <GID>
List active downloadspython3 scripts/rpc_client.py aria2.tellActive
List stopped downloadspython3 scripts/rpc_client.py aria2.tellStopped 0 100
Pause downloadpython3 scripts/rpc_client.py aria2.pause <GID>
Resume downloadpython3 scripts/rpc_client.py aria2.unpause <GID>
Show statisticspython3 scripts/rpc_client.py aria2.getGlobalStat
Show versionpython3 scripts/rpc_client.py aria2.getVersion
Purge resultspython3 scripts/rpc_client.py aria2.purgeDownloadResult

For detailed usage and more commands, see execution-guide.md.

Available Scripts

  • scripts/rpc_client.py - Main interface for RPC calls
  • scripts/examples/list-downloads.py - Formatted download list
  • scripts/examples/pause-all.py - Pause all downloads
  • scripts/examples/add-torrent.py - Add torrent downloads
  • scripts/examples/monitor-downloads.py - Real-time monitoring
  • scripts/examples/set-options.py - Modify options

Configuration

Scripts automatically load configuration from multiple sources with the following priority (highest to lowest):

Configuration Priority

  1. Environment Variables (highest priority - temporary override)

- ARIA2_RPC_HOST, ARIA2_RPC_PORT, ARIA2_RPC_PATH, etc. - Best for: CI/CD pipelines, temporary overrides, testing - Note: For reference only. Agents should use config files instead.

  1. Skill Directory Config (project-specific configuration)

- Location: skills/aria2-json-rpc/config.json - Best for: Project-specific settings, local testing, development - ⚠️ Warning: Lost when running npx skills add to update the skill

  1. User Config Directory (global fallback, update-safe) 🆕

- Location: ~/.config/aria2-skill/config.json - Best for: Personal default settings across all projects - ✅ Safe: Survives skill updates via npx skills add

  1. Defaults (localhost:6800)

- Zero-configuration fallback for local development

Configuration Options

  • host: Hostname or IP address (default: localhost)
  • port: Port number (default: 6800)
  • path: URL path (default: null). Set to /jsonrpc for standard aria2, or custom path for reverse proxy
  • secret: RPC secret token (default: null)
  • secure: Use HTTPS instead of HTTP (default: false)
  • timeout: Request timeout in milliseconds (default: 30000)

Quick Setup (For AI Agents)

IMPORTANT: Always use Python scripts to manage configuration. Do NOT use shell commands directly.

Step 1: Check current configuration status

python3 scripts/config_loader.py show

Step 2: Initialize configuration if needed

User config (recommended - survives updates):

python3 scripts/config_loader.py init --user

Local config (project-specific):

python3 scripts/config_loader.py init --local

Step 3: Guide user to edit the config file

After initialization, the tool will display the config file path. Instruct user to edit it with their aria2 server details (host, port, secret, etc.).

Step 4: Verify configuration

python3 scripts/config_loader.py test

Example config file content:

{
  "host": "localhost",
  "port": 6800,
  "secret": "your-secret-token",
  "secure": false,
  "timeout": 30000
}

Configuration Management (For AI Agents)

Available Python scripts for configuration management:

# Check current configuration and source
python3 scripts/config_loader.py show

# Initialize user config (recommended - update-safe)
python3 scripts/config_loader.py init --user

# Initialize local config (project-specific)
python3 scripts/config_loader.py init --local

# Test connection to aria2 server
python3 scripts/config_loader.py test

Agent Workflow for Configuration Setup:

  1. Check if config exists: Run python3 scripts/config_loader.py show
  2. If config missing or invalid: Guide user to run python3 scripts/config_loader.py init --user
  3. User edits config: Tell user the file path and required fields (host, port, secret)
  4. Verify setup: Run python3 scripts/config_loader.py test
  5. Proceed with operations: Once test passes, execute user's aria2 commands

Advanced Configuration

Reverse Proxy Setup:

For reverse proxy setups like https://example.com:443/jsonrpc, the config file should contain:

{
  "host": "example.com",
  "port": 443,
  "path": "/jsonrpc",
  "secret": "your-secret-token",
  "secure": true
}

Environment Variables (for reference only):

Configuration can also be overridden via environment variables:

  • ARIA2_RPC_HOST: Hostname
  • ARIA2_RPC_PORT: Port number
  • ARIA2_RPC_PATH: URL path
  • ARIA2_RPC_SECRET: Secret token
  • ARIA2_RPC_SECURE: "true" or "false"

Note: Use Python scripts for configuration management. Environment variables are documented here for reference only.

Key Principles (For AI Agents)

  1. Never construct JSON-RPC requests manually
  2. Always call Python scripts via Bash tool using python3 (not python)
  3. Always check configuration before executing commands:

- Run python3 scripts/config_loader.py test first - If test fails, guide user through initialization

  1. Never run raw shell commands (mkdir, cat, export, etc.) directly

- Use Python scripts: config_loader.py init, config_loader.py show, etc.

  1. Parse script output and format for users
  2. Refer to execution-guide.md when unsure

Supported Operations

Download Management

  • Add downloads (HTTP/FTP/Magnet/Torrent/Metalink)
  • Pause/resume (individual or all)
  • Remove downloads
  • Add with custom options

Monitoring

  • Check download status
  • List active/waiting/stopped downloads
  • Get global statistics
  • Real-time monitoring

Configuration

  • Get/change download options
  • Get/change global options
  • Query aria2 version
  • List available methods

Maintenance

  • Purge download results
  • Remove specific results

Need Help?

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.95%
按下载量换算42

Claude

30.84%
按下载量换算39

Cursor

20.94%
按下载量换算26

Gemini CLI

10.08%
按下载量换算13

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills