AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL unreviewed MIT Self-run

Motrix Cli

skill-nufegia-motrix-cli-motrix-cli · by nufegia

Control Motrix Next and legacy Motrix downloads through the motrix-cli command-line tool and their local aria2 JSON-RPC backend. Use when an agent needs to install motrix-cli, diagnose Motrix RPC connectivity, add download URLs, list or inspect tasks, pause/resume/remove tasks, wait for downloads to finish, or automate downloads with machine-readable JSON output on macOS.

No reviews yet
0 installs
19 views
0.0% view→install

Install

$ agentstack add skill-nufegia-motrix-cli-motrix-cli

Open-source listing, not yet scanned by AgentStack. Follow the source repository for install instructions.

Security review

⚠ Flagged

1 finding(s); flagged for manual review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures
  • high Pipes remote content directly into a shell (remote code execution).

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Reliability & compatibility

Not yet reviewed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Motrix Cli? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Motrix CLI

Overview

Use motrix-cli to control Motrix Next or legacy Motrix downloads from an agent-friendly terminal workflow. Prefer --json for automation and treat the target as a local app: it must be installed and running, and its aria2 RPC endpoint must be reachable.

By default, motrix-cli targets Motrix Next. Use --app motrix or MOTRIX_APP=motrix for legacy Motrix. JSON responses include target, which identifies the app, config path, RPC URL, and whether the RPC secret is set.

Install Or Locate

Check whether the command is already available:

command -v motrix-cli
motrix-cli doctor --json

If it is missing, install it from GitHub:

curl -fsSL https://raw.githubusercontent.com/nufegia/motrix-cli/main/install.sh | bash

The default install path is ~/.local/bin/motrix-cli. If ~/.local/bin is not in PATH, either add it to PATH or run the full path:

~/.local/bin/motrix-cli doctor --json

To install somewhere else:

curl -fsSL https://raw.githubusercontent.com/nufegia/motrix-cli/main/install.sh | INSTALL_DIR=/usr/local/bin bash

Agent Workflow

  1. Run motrix-cli doctor --json.
  2. If Motrix Next is not running, run motrix-cli open --json, wait briefly, then run motrix-cli doctor --json again.
  3. Prefer one-step downloads with motrix-cli download --json "" --timeout .
  4. Read the returned gid and final task.
  5. Inspect details with motrix-cli stat --json "" or motrix-cli list --json if needed.

Example:

motrix-cli doctor --json
motrix-cli download --json "https://example.com/file.zip" --timeout 3600

To target legacy Motrix explicitly:

motrix-cli --app motrix doctor --json
motrix-cli --app motrix download --json "https://example.com/file.zip"

Common Commands

Use these forms in automation:

motrix-cli list --json
motrix-cli download --json "https://example.com/file.zip" --timeout 3600
motrix-cli download --json "https://example.com/file.zip" --dir "$HOME/Downloads" --out "file.zip"
motrix-cli list --json --status active
motrix-cli stat --json ""
motrix-cli pause --json ""
motrix-cli resume --json ""
motrix-cli remove --json ""
motrix-cli remove-result --json ""
motrix-cli purge-completed --json
motrix-cli version --json
motrix-cli rpc-version --json

Use motrix-cli version to check the CLI's own version. Use motrix-cli rpc-version to query the target app's aria2 RPC backend version; it requires the target app to be running.

Use download when the user wants the file downloaded and completed before continuing. Use add when the user only wants to enqueue a task without waiting.

For a specific destination or output filename:

motrix-cli add --json "https://example.com/file.zip" --dir "$HOME/Downloads" --out "file.zip"

JSON Handling

Successful JSON responses include ok: true. Failed JSON responses include ok: false and the command exits nonzero. Always check both the exit code and the ok field when writing robust automation.

Important fields:

  • target.app: motrix-next or motrix
  • target.configPath: config file used for RPC settings
  • target.rpcUrl: local aria2 JSON-RPC endpoint
  • gid: aria2 task id returned by add
  • task.status: usually active, waiting, paused, complete, error, or removed
  • task.progress: percent complete
  • task.path: local file path when available
  • task.errorMessage: human-readable failure detail when available

Configuration

By default the CLI reads Motrix Next's macOS config from:

~/Library/Application Support/com.motrix.next/system.json

Legacy Motrix uses:

~/Library/Application Support/Motrix/system.json

Override RPC settings only when needed:

MOTRIX_RPC_HOST=localhost MOTRIX_RPC_PORT=16800 MOTRIX_RPC_SECRET="secret" motrix-cli doctor --json

Supported environment variables:

MOTRIX_APP
MOTRIX_CONFIG
MOTRIX_RPC_HOST
MOTRIX_RPC_PORT
MOTRIX_RPC_SECRET
MOTRIX_RPC_URL
MOTRIX_CONNECT_TIMEOUT
MOTRIX_RPC_TIMEOUT

Safety

Do not print, commit, or share the target app's RPC secret. Do not include system.json in logs or artifacts. Before removing active tasks, make sure the user intended to cancel that download and that target.app is the intended app; remove-result only clears completed/stopped records.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.