anipy-cli

A command tool for using an anime downloader and player from a Windows terminal. It can search for anime, play episodes, download them, and manage related settings.

In plain words
What is it for?
Use it to find and watch anime, download episodes, manage the command-line tool, and troubleshoot its setup on Windows.
Why use it?
It removes the need to remember the tool's command options or manually fix missing dependencies. It also translates plain-language requests into the appropriate terminal command.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/linaqruf/kana-code-plugins/anipy-cli
Clone the repo
git clone --depth 1 https://github.com/Linaqruf/kana-code-plugins
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,416 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00022 $0.01416
Opus 5 $0.00011 $0.00708
Sonnet 5 $0.00004 $0.00283
Haiku 4.5 $0.00002 $0.00142

Measured 2d ago against content hash 45c70e349040, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

anipy-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/anipy-cli/commands/anipy-cli.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Parse the user's intent from: $ARGUMENTS

Use the anipy-cli skill for all operational knowledge — CLI flags, setup procedures, player routing, configuration, and troubleshooting. Run all anipy-cli operations through the Bash tool (this command is tool-gated to it, and the skill's procedures assume Git Bash semantics).

Execution First, Fix on Failure

Do NOT check dependencies upfront. Run the anipy-cli command directly first. Only if it fails, diagnose and repair using the skill's Dependency Repair Chain. Two rules always apply, even if the skill content is unavailable:

  • For each missing dependency, use AskUserQuestion to confirm before installing — never install silently.
  • If uv installation fails via both pwsh.exe and powershell.exe, STOP. Tell the user: "uv could not be installed because PowerShell is not working correctly. Install PowerShell 7 from the Microsoft Store, restart your terminal, and try again."

Execution

Interpret the user's natural language request and map to the appropriate anipy-cli command.

Always prefix commands with PYTHONIOENCODING=utf-8 and suffix with 2>&1. Without the prefix, the progress spinner dumps a non-fatal UnicodeEncodeError traceback into the output — and printing a non-ASCII anime title can crash the command for real (main-thread encoding error).

Timeouts: Use 60s for search/play commands, 120s for downloads.

Always use -s flag for non-interactive search: anipy-cli -s "query:episode:sub/dub"

Mapping examples:

  • "play frieren ep 1" → PYTHONIOENCODING=utf-8 anipy-cli -s "frieren:1:sub" 2>&1
  • "play steins gate episode 3 dubbed" → PYTHONIOENCODING=utf-8 anipy-cli -s "steins gate:3:dub" 2>&1
  • "download one piece 1-10" → PYTHONIOENCODING=utf-8 anipy-cli -D -s "one piece:1-10:sub" 2>&1
  • "download frieren 1-3 to D:\anime" → PYTHONIOENCODING=utf-8 anipy-cli -D -l "D:/anime" -s "frieren:1-3:sub" 2>&1
  • "binge spy x family 1-5 dub" → PYTHONIOENCODING=utf-8 anipy-cli -B -s "spy x family:1-5:dub" 2>&1
  • "play frieren 1-3 and 7" → PYTHONIOENCODING=utf-8 anipy-cli -s "frieren:1-3 7:sub" 2>&1 (multi-range)
  • "show history" → read history.json from anipy-cli's user_files_path (do NOT use -H, it is interactive and will hang)
  • "migrate my history to the current provider" → PYTHONIOENCODING=utf-8 anipy-cli --migrate-history 2>&1
  • "what version" → anipy-cli --version 2>&1
  • "change player to vlc" → read and edit config.yaml player_path
  • "set quality to 720p" → add -q 720 to the next play/download command

Read the full file on GitHub · 79 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 79 lines · 22 tokens per session scan A 45c70e349040

Subscribe to this mod's changes

anipy-cli is a command published in the GitHub repository Linaqruf/kana-code-plugins (4 stars, last pushed 2mo ago), licensed MIT. It adds 22 tokens to every session and 1,416 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.