Skip to content
Projets

À propos

Recherchez, regardez en streaming et téléchargez des anime, des films et des séries TV depuis le terminal, en anglais et en portugais brésilien.

Outils de développement

Comment ces chiffres sont mesurés

What you can do

  • Searches every enabled source in parallel and falls back to another source when one fails.
  • Subbed and dubbed anime in English and Portuguese, plus Portuguese movies and TV shows.
  • Streams with quality selection, or downloads a single episode, a range, or a whole series.
  • Saves downloads with Plex-compatible names (Anime - S01E01.mp4).

Progression mesurée des étoiles

in 24h
+1
in 7 days
+2
in 15 days
+9
in 1 month
+22

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

English | Português

GoAnime logo

GoAnime

CI Latest release Go Reference AUR License

GoAnime is a terminal application for searching, streaming and downloading anime, movies and TV shows in English and Brazilian Portuguese. It searches several sources at once, plays the selected episode in mpv, and keeps track of where you stopped.

Searching for a title in GoAnime, picking it from the results and streaming it

It is a single binary for Linux, macOS and Windows, and mpv is all it needs to stream. FFmpeg is optional: downloads use it to embed subtitles, and upscaling a video requires it.

Contents

Features

  • Searches every enabled source in parallel and falls back to another source when one fails.
  • Subbed and dubbed anime in English and Portuguese, plus Portuguese movies and TV shows.
  • Streams with quality selection, or downloads a single episode, a range, or a whole series.
  • Saves downloads with Plex-compatible names (Anime - S01E01.mp4).
  • Resumes playback and remembers watched episodes.
  • Skips the opening from the player menu, using timestamps from AniSkip.
  • Discord Rich Presence.
  • Anime4K upscaling in real time while you watch, or of video and image files.
  • Updates itself with goanime --update.

Installation

GoAnime uses mpv for playback. Install mpv first, unless you use the Windows installer, which includes it.

Prebuilt binaries for every platform are available on the releases page.

Windows

GoAnime ships as a per-user installer and as a portable ZIP. Neither needs administrator rights.

Download and run GoAnime-Installer-<version>.exe from the latest release. It installs GoAnime and mpv under %LOCALAPPDATA%\Programs\GoAnime and adds that folder and its bin subfolder to your user PATH. It does not ask for UAC. If an old 1.x all-users installation is found, the installer asks you to uninstall it first, so two copies do not compete in PATH.

If you prefer not to use the installer, download goanime-windows-amd64.zip, extract goanime-windows-amd64.exe, rename it to goanime.exe and put it in a folder on your PATH. The archive does not include mpv: install it separately. GoAnime finds mpv.exe on your PATH or in the same folder as goanime.exe.

Unsigned binaries and SmartScreen. GoAnime releases are not signed with a paid Authenticode certificate, so Windows SmartScreen may show "Windows protected your PC" the first time you run the installer or goanime.exe. That warning is expected for an unsigned project; it does not mean the file is known to be malicious or safe. Verify the SHA-256 against checksums-sha256.txt (see Verifying a download). Only if it matches, choose More info → Run anyway. Never disable SmartScreen globally, and never run a file whose hash you have not checked.

When you launch GoAnime on its own (double-click, Start menu or a desktop shortcut), it runs in Windows Terminal so the interface gets color, UTF-8 and font fallback. If it started in the classic console and Windows Terminal is missing, GoAnime tries winget once; when winget is unavailable, as in Windows Sandbox, it unpacks the official x64 Windows Terminal build embedded in the executable into %LOCALAPPDATA%\GoAnime\WindowsTerminal and reopens from there. That path needs neither network nor administrator rights; builds for other architectures download the official archive instead. Without a usable copy GoAnime continues in the classic console. Set GOANIME_TERMINAL=conhost to stay in the classic console.

macOS

brew install mpv
curl -Lo goanime https://github.com/alvarorichard/GoAnime/releases/latest/download/goanime-darwin-universal
chmod +x goanime
sudo mv goanime /usr/local/bin/

The binary is universal and runs on both Apple Silicon and Intel Macs. If you download it with a browser instead of curl, macOS quarantines it and refuses to run it; clear the flag with xattr -d com.apple.quarantine /usr/local/bin/goanime.

Arch Linux

GoAnime is available in the AUR:

yay -S goanime

Debian, Ubuntu, Fedora and other distributions

Install mpv with your package manager (sudo apt install mpv or sudo dnf install mpv), then:

curl -LO https://github.com/alvarorichard/GoAnime/releases/latest/download/goanime-linux-amd64.tar.gz
tar -xzf goanime-linux-amd64.tar.gz
sudo install goanime-linux-amd64 /usr/local/bin/goanime

For ARM64, replace amd64 with arm64.

From source

With Go 1.27.3 or later:

go install github.com/alvarorichard/Goanime/v2/cmd/goanime@latest

The v2 module path is github.com/alvarorichard/Goanime/v2; library imports must use that prefix. The previous v1 module remains available at the old path.

Progress tracking is backed by SQLite and requires CGO, so a C compiler must be available when building. Without one, GoAnime still builds and runs, but does not track progress. The release binaries are built with SQLite. See docs/BUILD_OPTIONS.md for details.

Verifying a download

Every release includes checksums-sha256.txt. Compute the hash of the file you downloaded and compare it with the line for that file:

sha256sum goanime-linux-amd64.tar.gz   # Linux
shasum -a 256 goanime                  # macOS, the goanime-darwin-universal line
Get-FileHash goanime-windows-amd64.zip # Windows, in PowerShell

checksums-sha256.txt is published in the same release as the binaries, so it detects a corrupted or truncated download, not a compromised release. The Windows and macOS binaries are not code-signed; the operating system may warn on first launch.

Updating

Installed with Update with
Windows installer (2.0.0+) goanime --update, or the installer of the new version
Windows installer (1.x) The v2.0.0 installer once; after that, goanime --update
Windows portable ZIP goanime --update
AUR Your AUR helper, for example yay -Syu
A release binary or archive goanime --update
go install The same go install command

goanime --update checks the download against the release's checksums-sha256.txt and installs nothing if they do not match. On Windows it stages the new executable next to the running one, lets a helper finish the replacement after GoAnime exits, and keeps the previous binary as goanime.exe.backup until the new version starts successfully. See docs/AUTO_UPDATE.md for the full flow.

The per-user Windows installer lives in a folder the user can write to, so goanime --update does not need elevation. On Linux and macOS, if the executable lives in a folder you cannot write to, such as /usr/local/bin, run sudo goanime --update.

Usage

Run goanime without arguments to open search home. Type a name and press enter, or press ↓ to pick from the lists below: Continue reopens an episode where you stopped (enter resumes, r starts over, e lists episodes, x removes it), Favorites lists the works you marked with ctrl+f and Recent repeats a past search with its result count. tab switches between ALL, PT-BR, ENGLISH, MOVIES/TV and FAVORITES. From a result, choose a version with ← → and, for a series, an episode. You can also pass the name directly:

goanime "one piece"

Use spaces in the name, not hyphens.

Anime downloads go to ~/.local/goanime/downloads/anime/ unless you pass -o:

goanime -d "one piece" 1                  # episode 1
goanime -d -r "naruto" 1-12               # episodes 1 to 12
goanime -d -a "one piece"                 # every episode
goanime -d --quality 720p "frieren" 1     # a specific quality
goanime -d -o ~/Anime "bleach" 10         # a custom directory

The directory given to -o must be inside your home folder.

Movies and TV shows use -dm and go to ~/.local/goanime/downloads/movies/:

goanime -dm "Interstellar"                # a movie
goanime -dm --type tv "Dark" 1 5          # season 1, episode 5
goanime -dm -r "Dark" 1 1-5               # season 1, episodes 1 to 5
goanime -dm -a "Dark"                     # every season

Some streams are downloaded with yt-dlp, which GoAnime fetches on its own the first time it needs it.

Other options:

goanime --source animefire "jujutsu kaisen"   # search a single source
goanime --upscale --upscale-hq video.mp4      # upscale a file with Anime4K
goanime --update                              # update to the latest release
goanime --debug "naruto"                      # write a debug log
goanime --clear-history                       # empty CONTINUE and RECENT on the home screen

Run goanime -h for the full list of options.

Keys

Key Action
↑ ↓ or k j Move
Type, or / Filter the list
g G First or last item
Enter Select
Esc Go back
tab Switch search scope (search home)
← → Choose a version (results)
ctrl+f Add the highlighted work to Favorites, or take it off (results)
r e From start, episodes (Continue list)
x Remove the highlighted row (Continue, Favorites or Recent list)
X Clear the whole list the row is in, after a y/n question
d D A m Download one, range, all, options (episodes)

In a menu that shows a letter beside each option, that letter picks the option at once; any other key still filters.

The episode list marks the episodes you finished with ✓ and the one you stopped partway with ◐, and opens where you left off.

Favorites and your own lists

Press ctrl+f on a result to add the work to Favorites, and again to take it off; a favorite wears a star on its row and in the details. Press ctrl+l to put it in one of your own lists instead (or as well): a screen opens with "+ Create a new list" on top and every list below it, each with its number of titles and a mark when the work is already in it. enter adds the work to the highlighted list, or takes it off when it is there, and the screen stays open so you can choose several lists; esc closes it. To make a list, choose "+ Create a new list" and type a name (up to 40 characters, such as "Weekend marathon"). The footer and the details always say which key does what.

The FAVORITES tab, beside MOVIES/TV, opens at your lists: "+ Create a new list" (or press n), Favorites (the list ctrl+f fills) and the lists you made, with their number of titles and the day they were created, and on a wide terminal a panel with the titles inside. enter opens a list: its titles scroll, typing filters them (accents and capitals do not matter), enter on a title searches it, x takes it off the list, X empties the list after a y/n question, and esc goes back to your lists. On a list x deletes it after a y/n question (its titles are not deleted from anywhere, only the list goes) and r renames it. Favorites itself cannot be renamed or deleted. The home screen also shows the first eight Favorites between CONTINUE and RECENT, with a "+N more" line; coming back from a search reopens the tab and row you left. Everything is one small file, favorites.json, next to the watch history (~/.local/goanime/tracking/ on Linux and macOS, %LOCALAPPDATA%\GoAnime\tracking\ on Windows), so it works on every platform and without SQLite.

Forgetting your history

The search home screen keeps two lists: CONTINUE, the shows you have watched, and RECENT, your latest searches. Remove a row with x, or empty a whole list with X. Removing a show from CONTINUE removes every episode of it you have watched, so it does not come back with an older one.

From the command line:

goanime --clear-continue    # empty CONTINUE (the watch history)
goanime --clear-recent      # empty RECENT
goanime --clear-history     # both
goanime --clear-history --yes    # without asking (also needed in a script)

Each one asks first. Without a terminal to ask on, and without --yes, nothing is cleared.

While watching

While mpv plays, the terminal shows the player menu, with how far the episode has played:

Key Option What it does
n Next episode Play the next episode
p Previous episode Play the previous episode
e Select episode Pick another episode from the list
c Change anime Search for another title
s Skip intro Jump past the opening, when AniSkip has its timestamps
a Audio track Switch the audio track, when there is more than one
t Subtitles Switch or turn off subtitles, when there are any
Esc ← Back Return to the download and playback menu
q Exit Close mpv and quit

For a movie, the menu offers Replay movie (r), Change movie (c), the track options, ← Back and Exit. When an episode or movie has saved progress, GoAnime asks whether to resume from where you stopped.

Real-time upscaling

Real-time Upscale, in the menu before playback, applies Anime4K shaders in mpv. The first time, choose Setup shaders to download them, then pick a mode. Each mode's label says what it is for, from Performance for a weak GPU to Ultra for SD sources.

Your mpv configuration

When GoAnime finds a configuration of yours, it starts mpv with it, so mpv.conf, input.conf, scripts (uosc, thumbfast), script-opts and shaders in ~/.config/mpv/ (%APPDATA%\mpv on Windows) apply as they do when you run mpv yourself. GoAnime looks in $MPV_HOME, $XDG_CONFIG_HOME/mpv, ~/.config/mpv and the legacy ~/.mpv, and counts a folder only if it holds an mpv.conf, input.conf, scripts, script-opts, script-modules, shaders, fonts or lua-settings. With no such config, GoAnime keeps its own tuned start (--no-config, --profile=fast), which is lighter on weak machines.

Command-line options win over mpv.conf, so a few settings that GoAnime depends on are fixed for its playback: keep-open, idle, loop-file and loop-playlist are off so mpv exits when the episode ends, and resume-playback is off because GoAnime resumes from its own saved position. GoAnime also sets hwdec=auto-safe and the vo fallback chain, so it can start on machines where mpv's default output fails; a vo or hwdec in your mpv.conf is overridden, so to use your own, play the file in mpv directly. It does not force profile=fast when your config is loaded.

To start mpv with --no-config, as earlier versions did, set GOANIME_MPV_CONFIG=off (also 0, false, no or none). Do this first when playback fails and your config is the suspect.

Sources

GoAnime searches several anime and movie/TV sites at once, in English and Portuguese. They are third-party websites and change without notice, so one can stop working until it is updated. The list of sources, how to pick one with --source and per-source notes are in docs/SOURCES.md.

Configuration

GoAnime needs no configuration file. A few environment variables cover less common needs:

Variable Description
GOANIME_ENABLED_SOURCES Comma-separated sources to enable, such as goyabu
GOANIME_DISABLED_SOURCES Comma-separated sources to skip
GOANIME_THEME dark, light or auto (default): auto asks the terminal once for its background
GOANIME_TERMINAL conhost keeps Windows GoAnime in the classic console instead of reopening it in Windows Terminal
GOANIME_PLAIN Set to 1 for the plain interface: no colors, no Japanese glosses, ASCII only (same as --plain, NO_COLOR or TERM=dumb)
GOANIME_JAPANESE 1 always shows the Japanese glosses, 0 always hides them; unset, GoAnime shows them where the terminal has a font for them
GOANIME_HIANIME_AUDIO HiAnime audio: sub (default) or dub
GOANIME_MIRURO_AUDIO Miruro audio: sub (default) or dub
GOANIME_STRICT_SOURCE Set to 1 to report an error instead of guessing an unknown source
GOANIME_ANIMEFIRE_API Address of the AnimeFire API
GOANIME_ANIMEDRIVE_URL Address of AnimeDrive
GOANIME_POBREFLIX_URL Address of Pobreflix
GOANIME_POBREFLIX_PLAYER_URL Address of its Turnstile-gated player (https://streambetter.lat)
GOANIME_STARTFLIX_URL Address of StartFlix
GOANIME_STARTFLIX_PANEL_URL Address of the StartFlix video panel
GOANIME_TOPCINE_URL Address of TopCine
GOANIME_POMFY_URL Address of Pomfy (https://pomfy.my)
TMDB_API_KEY A TMDB key for movie, TV and season details
OMDB_API_KEY An OMDb key to use instead of the shared demo key

The address variables point a source at a new domain when its site moves, without waiting for a new release.

Files

What Linux macOS Windows
Watch history ~/.local/goanime/tracking/progress.db ~/.local/goanime/tracking/progress.db %LOCALAPPDATA%\GoAnime\tracking\progress.db
Downloads ~/.local/goanime/downloads/ ~/.local/goanime/downloads/ %USERPROFILE%\.local\goanime\downloads\
Debug logs ~/.local/share/goanime/logs/ ~/Library/Logs/GoAnime/ %LOCALAPPDATA%\GoAnime\logs\
Anime4K shaders ~/.config/goanime/anime4k-shaders/ ~/Library/Application Support/goanime/anime4k-shaders/ %APPDATA%\goanime\anime4k-shaders\
yt-dlp ~/.cache/go-ytdlp/ ~/Library/Caches/go-ytdlp/ %LOCALAPPDATA%\go-ytdlp\
Japanese font ~/.local/share/fonts/goanime/ — —

On Linux, the shader and yt-dlp folders follow XDG_CONFIG_HOME and XDG_CACHE_HOME when they are set, and the font folder follows XDG_DATA_HOME. Deleting the watch history file resets all progress. To uninstall GoAnime, remove the executable (or, with the Windows installer, uninstall it from Settings) and delete the folders above that you no longer need.

Troubleshooting

AnimeDrive search times out

AnimeDrive can take longer to answer when the site is busy. Its search uses the full source deadline, without restarting a request at the shorter HTTP client timeout. The host is also intermittently unreachable from some networks. If it still times out, point GOANIME_ANIMEDRIVE_URL at a reachable mirror, try again later, or use --source to search another source. Include a debug log when reporting the problem.

Reporting a problem

Open a bug report and attach a debug log to it:

  1. Run the same command again with --debug added, for example goanime --debug "naruto", and repeat what you did until the problem happens.

  2. When it starts, GoAnime prints the path of the log file. Each run writes a new file named goanime_<date>_<time>.log in this folder:

    System Folder
    Windows %LOCALAPPDATA%\GoAnime\logs
    macOS ~/Library/Logs/GoAnime
    Linux ~/.local/share/goanime/logs
  3. Attach the newest file to the issue, together with the command you ran. The log already starts with your operating system, terminal, the versions of mpv, yt-dlp and ffmpeg, which sources are on, and how each provider answered. Passwords, tokens, one-time tickets and your home folder are removed before anything is written, so it is safe to attach as it is.

If GoAnime crashes, it saves a crash_<date>_<time>_<id>.log in the same folder without needing --debug, and prints its path. Attach that file. What is collected, and what never is.

The log lists the titles you searched and paths on your computer, which can include your user name. Read it before attaching if that matters to you.

mpv is not found

Make sure mpv --version works in the same terminal you run GoAnime from. On Windows, open a new terminal after installing so the updated PATH is picked up.

Japanese characters show as boxes

The Japanese beside each heading (ゴーアニメ, 検索) is drawn with the terminal's fonts. When none of them has Japanese, GoAnime hides it instead of showing boxes:

  • Linux: GoAnime installs GoAnime Glyphs, an 11 KB font with just those characters, in ~/.local/share/fonts/goanime/. Close and reopen the terminal to see them. A full Japanese font works too, such as noto-fonts-cjk on Arch Linux, fonts-noto-cjk on Debian and Ubuntu or google-noto-sans-cjk-fonts on Fedora.
  • Windows: GoAnime opens itself in Windows Terminal, which has font fallback. GOANIME_TERMINAL=conhost keeps the classic console, where the Japanese stays hidden.
  • Linux virtual console (TERM=linux): its font has no Japanese, so it stays hidden.

GOANIME_JAPANESE=1 shows it anyway, GOANIME_JAPANESE=0 hides it everywhere. The font is never installed with GOANIME_JAPANESE=0 or in the plain interface.

Using GoAnime as a library

The search and scraping code is exposed as a public Go package:

client := goanime.NewClient()
results, err := client.SearchAnime("One Piece", nil)

Search covers every source. Episode lists and stream URLs are available for AnimeFire results only for now. docs/LIBRARY_USAGE.md walks through the API, and pkg/goanime/examples has complete programs.

Contributing

Bug reports, fixes and new sources are welcome.

Most of the maintenance work in GoAnime is keeping sources working as the sites behind them change, and that is also the easiest way to start contributing: the source health workflow shows which sources are failing, and each source is a self-contained package under internal/scraper/providers. To add a new one, follow docs/ADDING_A_SOURCE.md, which uses Goyabu as the reference implementation.

To build and test:

git clone https://github.com/alvarorichard/GoAnime.git
cd GoAnime
git checkout dev
go build ./cmd/goanime
go test -short ./...

Development happens on the dev branch. Create your branch from dev and open pull requests against dev; main only receives releases. CONTRIBUTING.md lists the checks to run before opening a pull request, and docs/Development.md covers code style and the rest of the workflow.

Community

  • Discord for questions, feedback and release announcements.
  • GoAnime Mobile, the Android version.
  • goanime.online, the project website, with an overview of GoAnime and installation instructions.

Acknowledgments

GoAnime is built on the work of these projects:

  • mpv plays every stream.
  • AniSkip provides the opening timestamps.
  • AniList and Jikan, an unofficial MyAnimeList API, provide anime metadata.
  • TMDB and OMDb provide movie and TV metadata.
  • Anime4K provides the upscaling algorithm and shaders.
  • yt-dlp handles some downloads.
  • Bubble Tea, Huh and Lip Gloss build the terminal interface.
  • Noto Sans CJK is the source of GoAnime Glyphs, the Japanese font GoAnime installs on Linux (SIL Open Font License).
  • ani-cli inspired the project.

Disclaimer

GoAnime does not host, upload or distribute any media. It retrieves content that third-party websites make publicly available and is not affiliated with any of them. Users are responsible for complying with the laws of their country.

License

GoAnime is released under the MIT License.

Explorer des projets similaires

Chargement…