Documentation
Security and privacy
The login, what to protect, and what AniFlow contacts.
The login
AniFlow has exactly one account. The login exists to keep other people on your network (a flatmate's laptop, a smart TV) from opening AniFlow and changing your library. It is not built to withstand a determined attacker, which is why the rules below on exposure matter.
Creating the account
On the first start AniFlow prints a one-time code to the container log. The setup wizard asks for it, so that only someone who can read the log can create the account:
docker logs aniflow 2>&1 | grep "one-time code"
The code is valid for 60 minutes and works once. It is printed on a line that no log level can hide. If it has expired, restart the container and read the log again. The wizard then asks for a username (3 to 80 characters) and a password.
Password rules
At least 8 characters (at most 200). A phrase is better than a short word with symbols in it. Passwords are stored as salted scrypt hashes, never in plain text.
Sessions and logging out
A login lasts 90 days and is extended every time the browser uses it, so an active browser is not asked again. The session survives a container restart. Log out ends the session of that browser. Only a hash of the session key is stored, so a copy of the database does not contain working logins.
After 10 wrong passwords in a row, logins are refused for 5 minutes, and every failed attempt is answered with a short delay.
Changing username or password
Go to Settings -> Account. Fill in only what you want to change: a new username on its own renames the account, a new password on its own replaces the password. Your current password is always required, and the button is Change username or password.
Forgotten password
On the login page choose Forgot your password?, then Write a new code to the log. Read the code from the container log the same way as for setup, enter it and choose a new password. The code works once and lasts an hour. Setting a new password signs out every logged-in browser.
The connection is plain HTTP
AniFlow serves plain HTTP. The password travels in clear text on your network every time you log in. Do not expose AniFlow to the internet directly (no port forward on your router).
If you want to reach AniFlow from outside your home, do it in one of these ways:
- Put it behind a reverse proxy with HTTPS.
- Reach your home network through a VPN.
The session cookie is marked Secure automatically when the request arrived over HTTPS (so it needs no setting when you add a reverse proxy), and it is always HttpOnly and SameSite=Lax. Your reverse proxy must pass the original scheme to AniFlow; if you reach AniFlow over HTTPS but AniFlow sees HTTP, the cookie will not be marked Secure.
What is stored, and where
| What | Where | How |
|---|---|---|
| Watchlist, libraries, downloads, Activity | /data/aniflow.db | SQLite database |
| Username and password | /data/aniflow.db | Salted scrypt hash |
| Login sessions | /data/aniflow.db | Only a SHA-256 of each session key |
| Paired TVs | /data/aniflow.db | Name and a SHA-256 of the token; the token itself is never stored |
| Download client, proxy and Shoko credentials | /config/aniflow.yaml | Plain text |
| Log | /config/log/aniflow.log | Rotating files |
Because the integration secrets are plain text, protect the /config folder: only the user AniFlow runs as should be able to read it. AniFlow creates the settings file with mode 0600 where the filesystem allows. Keys and passwords are never returned by the AniFlow API (the interface only learns whether one is set) and are not written to the log. Backup files contain them (see Backup, restore and updating).
What works without logging in
Everything under the API needs a session except:
/api/system/health- used by Docker's health check. It reports whether the database answers, whether the background worker runs, and the connection state of the download client, the metadata source and Shoko. It reports nothing about your library./api/themes/active.css- the colours of the active theme, so the login page matches your theme. Colour values only.- The login, setup and password-reset calls themselves.
- The AniFlow TV interface (
/api/tv/), which has its own door: every call needs a TV token. A TV token opens nothing outside that interface.
Paired TVs
Each TV gets its own token. From Settings -> Integrations you can see every paired TV and press Revoke to cut one off. A TV can read the watchlist, the schedule, the calendar and In Progress, and add a show to the watchlist; nothing else. See Themes, TV app and debug mode.
Privacy
AniFlow has no analytics, no telemetry, no crash reports, no update check and no account with its authors. Nothing is sent anywhere unless it is one of the requests below, which you started or configured.
What AniFlow contacts
All requests are made by the AniFlow server, never by your browser. Each one identifies itself as AniFlow/<version> and carries no identifier of yours.
| Where | What it receives | When |
|---|---|---|
AniList (graphql.anilist.co), Kitsu (kitsu.io) | Search words, titles and ids of what you add | Metadata lookups; both are used by default |
Jikan (api.jikan.moe), MyAnimeList (api.myanimelist.net), Shikimori (shikimori.one) | Titles and ids | Only if you switch the source on; MyAnimeList also needs your own client id |
AniDB (anidb.net) | Nothing but the request: AniFlow downloads the published title dump | About once a week, never more than that |
GitHub (raw.githubusercontent.com, the anime-lists id mapping) | Nothing but the request | About once a week |
api.country.is, ipwho.is, api.ipify.org | Nothing but the request | Only when you press the proxy check |
| The indexers and feeds you add | Search words and the server's address | When you search or a feed is scanned |
| Your download client, Shoko, your proxy | What the integration needs, including the credentials you gave | Only the addresses you configured, normally on your own network |
| The image servers of the metadata providers | Nothing but the request, through your proxy if you set one | Once per cover, the first time it is shown |
Covers
Covers never load in your browser from a provider. Your browser asks AniFlow, and AniFlow asks the provider once and keeps the picture in /data/cover-cache. A provider therefore sees your server's address, never your visitors'. Only the providers' own image hosts can be fetched this way, over HTTPS.
Proxy
You can send AniFlow's own internet requests through a proxy (Settings -> Integrations). Your download client, Shoko and your own network always go direct, and a proxy in AniFlow does not hide torrent traffic. See Settings.
What your browser stores
The session cookie (needed to stay logged in) and a few display preferences in local storage, such as language, sort order and the adult-content filter. Fonts are bundled and nothing is loaded from a CDN. No tracking cookies are used.
The diagnostics file
The diagnostics zip is built only when you press Download diagnostics, and saved by your browser. AniFlow never sends it anywhere. Passwords, keys and tokens are removed, but anime titles and folder paths are in it, and so are the addresses of your own machines. Open it and read it before you share it.
Legal notice
The first screen of the setup wizard shows a short notice that has to be accepted before an account is created. The same text, in English and German, is in LEGAL.md and LEGAL.de.md in the project. In short:
- AniFlow is free software that you run on your own hardware. It hosts, stores and distributes no films, series or other works, and ships no list of sites, feeds or indexers. The transfer is carried out by your own download client; the sites, feeds and torrents are chosen by you.
- It contacts the public information services listed above and the sites you add. It is not affiliated with, endorsed by or sponsored by any of them.
- It collects and sends no information about you.
- You are responsible for making sure that what you search for, download and store is lawful where you live, and for respecting the terms of each site you use. A torrent client usually uploads while it downloads; check your client's settings and your local rules.
- AniFlow is provided free of charge, as it is and without warranty. Keep backups of what matters to you.
This is a plain-language notice, not legal advice. AniFlow is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 (CC BY-NC-ND 4.0); see the LICENSE file.