ani-neko

Anime with Spanish subtitles, from your terminal. Search, choose and carry on where you left off.

macOS, with Homebrew

brew tap rlssj/ani-neko https://github.com/rlssj/ani-neko.git
brew trust rlssj/ani-neko
brew install ani-neko && brew install --cask iina

Plays in IINA, or in mpv if IINA isn't installed.

Linux and WSL, one command

curl -fsSL https://raw.githubusercontent.com/rlssj/ani-neko/main/install.sh | bash

It detects your distro, installs whatever is missing and puts ani-neko in ~/.local/bin (no sudo).

Terminal demo: typing ani-neko, searching for frieren, picking season 1 and episode 4, which starts playing.
Searching for frieren, picking season 1 and episode 4.

How to use it

Three ways to start it. After each episode you choose Siguiente (next), Retroceder (previous) or Atrás (back).

To force mpv on macOS:

ANI_NEKO_PLAYER=mpv ani-neko
  1. On its own, it asks what to search for.

    ani-neko
    Fuente: AnimeAV1 Search anime: frieren
  2. With a title after it, it searches right away.

    ani-neko death note
    Fuente: AnimeAV1Select anime:1 Death Note2 Death Note: Rewrite
  3. With -c, it continues your last anime where you stopped.

    ani-neko -c
    Fuente: AnimeAV1Anime: Sousou no FrierenUltimo episodio visto: 4Buscando enlace del episodio 4...Capitulo: 4 (HLS)
    Selecciona una opción:

What it does

A numbered menu with the whole franchise

Seasons, sequels and rewrites show up in one list (1 Death Note, 2 Death Note: Rewrite…), like in ani-cli. You pick with the arrow keys and Enter.

Fuente: AnimeAV1Select anime:1 Sousou no Frieren 2nd Season2 Sousou no Frieren

Sub only

Japanese audio with Spanish subtitles burned in. If an episode is only available dubbed, it skips it and tells you so.

No hay version SUB (audio japones, subtitulos en espanol) para el episodio 12. AnimeAV1 no tiene ese episodio en SUB o la web no responde.

Picks up where you left off

It saves the anime, the episode and the minute in ~/ani-es/history.json. Tomorrow you type ani-neko -c and it carries on from there.

{ "Sousou no Frieren": { "last_cap": 4, "progress": "00:13:52", "updated": 1796244000 } }

Several video servers

HLS, Voe, MP4Upload and a few more. If one fails, it tries the next one by itself.

Buscando enlace del episodio 4... Capitulo: 4 (Voe)
Order in which it tries the servers: HLS, Voe, PDrain, Pixeldrain, YourUpload and MP4Upload.

Lightweight

It's a single Bash script. It uses curl, fzf, jq, python3, grep and sed, plus mpv or IINA to play.

> ani-neko --help Uso: ani-neko [opciones] [busqueda] Opciones: -h, --help Mostrar ayuda -v, --version Mostrar versión -c, --continue Sigue el ultimo anime visto (o el que busques) en el episodio y minuto guardados Fuente: AnimeAV1 (solo SUB: audio japones, subtitulos en español)

Full install

Works on Debian, Ubuntu, Mint, Pop!_OS, Fedora, RHEL, CentOS, Arch, Manjaro, EndeavourOS, openSUSE, Alpine, Void, Gentoo, NixOS, macOS and Windows with WSL.

The installer above detects your package manager and installs only what's missing. If you'd rather do it by hand, here is every distro.

To update on macOS: brew upgrade ani-neko. On Linux the script itself tells you when there's a new version.

Linux, native packages

  • Debian / Ubuntu / Mint / Pop!_OSapt
    sudo apt update
    sudo apt install curl fzf python3 mpv jq grep sed gawk
  • Fedora / RHEL / CentOSdnf

    Fedora already ships mpv in its repos (tested on Fedora 41). On RHEL or CentOS you need EPEL and RPM Fusion first.

    sudo dnf install curl fzf python3 mpv jq grep sed gawk
  • Arch Linux / Manjaro / EndeavourOSpacman
    sudo pacman -S --needed curl fzf python3 mpv jq grep sed gawk
  • openSUSE Leap / Tumbleweedzypper

    For mpv to play every format, add the Packman repository:

    sudo zypper addrepo -cfp 90 https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman
    sudo zypper dup --from packman --allow-vendor-change
    sudo zypper install curl fzf python3 mpv jq grep sed gawk
  • Alpine Linuxapk

    As root (or with doas):

    apk add curl fzf python3 mpv jq grep sed gawk bash
  • Void Linuxxbps-install
    sudo xbps-install -S curl fzf python3 mpv jq grep sed gawk
  • Gentooemerge
    sudo emerge -a net-misc/curl app-shells/fzf dev-lang/python media-video/mpv app-misc/jq sys-apps/grep sys-apps/sed sys-apps/gawk
  • NixOS / Nixnix-env
    nix-env -iA nixpkgs.curl nixpkgs.fzf nixpkgs.python3 nixpkgs.mpv nixpkgs.jq nixpkgs.gnugrep nixpkgs.gnused nixpkgs.gawk

Windows, with WSL

  1. Open PowerShell as administrator, install WSL with Ubuntu and restart:

    wsl --install
  2. Open Ubuntu from the Start menu, create your user and run the installer:

    curl -fsSL https://raw.githubusercontent.com/rlssj/ani-neko/main/install.sh | bash
  3. Close Ubuntu, open it again and type ani-neko.

The video opens in Ubuntu's mpv, which shows up as a normal window on Windows 11 (WSLg). If you prefer the Windows mpv, install it, add it to the Windows PATH and ani-neko will use mpv.exe on its own.

From PowerShell, without opening Ubuntu: wsl -e bash -lc ani-neko. Plain wsl ani-neko can't find the command, because that shell doesn't load your PATH.

From source

git clone https://github.com/rlssj/ani-neko.git
cd ani-neko
chmod +x install.sh
./install.sh

If your distro doesn't use apt-get, dnf, yum, pacman, zypper, apk or xbps-install, install the dependencies by hand and copy the script:

mkdir -p ~/.local/bin && install -m 755 ani-neko ~/.local/bin/ani-neko

Uninstall

Linux and WSL, from the folder of the cloned repository:

./uninstall.sh

macOS:

brew uninstall ani-neko

uninstall.sh also deletes your history (~/ani-es).

Questions

What's the license? MIT. It's free software: you can use it, copy it and change it.

Why sub only? It's made for watching anime in Japanese with Spanish subtitles. If an episode is only available dubbed, it skips it instead of playing the dub.

Does it work on Windows? Yes, through WSL. You install Ubuntu with wsl --install, run the installer inside it, and the video opens in Ubuntu's mpv, which shows up as a normal window on Windows 11. If mpv.exe is on your Windows PATH, ani-neko uses it on its own.

How do I update? On macOS, with brew upgrade ani-neko. On Linux and WSL the script itself tells you when there's a new version.

Where do the videos come from? From AnimeAV1 and the video servers it links to. ani-neko searches that site, gets the episode link and hands it to mpv or IINA. It doesn't store or upload any video.

Is the interface in English? Mostly not: messages and menus are in Spanish, with a few English prompts like Search anime.

Can I use mpv instead of IINA on macOS? Yes: ANI_NEKO_PLAYER=mpv ani-neko. If IINA isn't installed, it uses mpv anyway.

Was it useful?

A ⭐ on GitHub helps more people find it. And if you'd like to help, CONTRIBUTING.md (in Spanish) explains how.

Credits