通过 JSON-RPC 2.0 与 aria2 下载管理器交互。通过自然语言命令管理下载、查询状态和控制任务。在使用 aria2、下载管理或 torrent 操作时使用。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install aria2-json-rpc或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install aria2-json-rpc⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/aria2-json-rpc/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: aria2-json-rpc description: Interact with aria2 download manager via JSON-RPC 2.0. Manage downloads, query status, and control tasks through natural language commands. Use when working with aria2, download management, or torrent operations. license: MIT compatibility: Requires Python 3.6+. WebSocket support requires websockets package (pip install websockets) and Python version must match dependency requirements. metadata: author: ISON version: "1.1.0" ---
This skill enables you to control aria2 download manager through natural language commands:
⚠️ 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)
Step 1: Check Configuration Status
Before executing any aria2 commands, ALWAYS check if configuration is ready:
python3 scripts/config_loader.py test
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.
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)
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:
| User Intent | Command Example | |-------------|----------------| | Download a file | python3 scripts/rpc_client.py aria2.addUri '["http://example.com/file.zip"]' | | Check status | python3 scripts/rpc_client.py aria2.tellStatus | | List active downloads | python3 scripts/rpc_client.py aria2.tellActive | | List stopped downloads | python3 scripts/rpc_client.py aria2.tellStopped 0 100 | | Pause download | python3 scripts/rpc_client.py aria2.pause | | Resume download | python3 scripts/rpc_client.py aria2.unpause | | Show statistics | python3 scripts/rpc_client.py aria2.getGlobalStat | | Show version | python3 scripts/rpc_client.py aria2.getVersion | | Purge results | python3 scripts/rpc_client.py aria2.purgeDownloadResult |
For detailed usage and more commands, see execution-guide.md.
scripts/rpc_client.py - Main interface for RPC callsscripts/examples/list-downloads.py - Formatted download listscripts/examples/pause-all.py - Pause all downloadsscripts/examples/add-torrent.py - Add torrent downloadsscripts/examples/monitor-downloads.py - Real-time monitoringscripts/examples/set-options.py - Modify optionsScripts automatically load configuration from multiple sources with the following priority (highest to lowest):
- 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.
- 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
- Location: ~/.config/aria2-skill/config.json - Best for: Personal default settings across all projects - ✅ Safe: Survives skill updates via npx skills add
- Zero-configuration fallback for local development
localhost)6800)null). Set to /jsonrpc for standard aria2, or custom path for reverse proxynull)false)30000)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
}
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:
python3 scripts/config_loader.py showpython3 scripts/config_loader.py init --userpython3 scripts/config_loader.py testReverse 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):
...
安装 Aria2 Json Rpc 后,可以对 AI 说这些话来触发它
Help me get started with Aria2 Json Rpc
Explains what Aria2 Json Rpc does, walks through the setup, and runs a quick demo based on your current project
Use Aria2 Json Rpc to interact with aria2 download manager via JSON-RPC 2
Invokes Aria2 Json Rpc with the right parameters and returns the result directly in the conversation
What can I do with Aria2 Json Rpc in my marketing & growth workflow?
Lists the top use cases for Aria2 Json Rpc, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/aria2-json-rpc/ 目录(个人级,所有项目可用),或 .claude/skills/aria2-json-rpc/(项目级)。重启 AI 客户端后,用 /aria2-json-rpc 主动调用,或让 AI 根据上下文自动发现并使用。
Aria2 Json Rpc 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Aria2 Json Rpc 可免费安装使用。请查阅仓库了解许可证信息。
通过 JSON-RPC 2.0 与 aria2 下载管理器交互。通过自然语言命令管理下载、查询状态和控制任务。在使用 aria2、下载管理或 torrent 操作时使用。
Aria2 Json Rpc 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Aria2 Json Rpc
Identifies repetitive steps in your workflow and sets up Aria2 Json Rpc to handle them automatically