# Connect Tori Tenji to Your Desktop Server Source: https://tori-11988804.mintlify.app/guides/connect-tenji-to-desktop Tori Tenji (the iOS/Android companion app) can connect to a Tori server running on your computer, so you can browse your library a Tori Tenji (the iOS/Android companion app) can connect to a Tori server running on your computer, so you can browse your library and stream from your phone. ## 1. Make sure your server is reachable on your network By default Tori Denshi's embedded server binds to `127.0.0.1` (localhost only), which is **not** reachable from another device. To fix this: 1. Open your config file: `~/Library/Application Support/Tori/config.toml` (macOS — path differs on Windows/Linux). 2. Under `[server]`, set: ```toml theme={null} host = '0.0.0.0' ``` 3. Fully quit and reopen Tori Denshi so the change takes effect. ## 2. Find your computer's local IP address * **macOS**: `ipconfig getifaddr en0` in Terminal * **Windows**: `ipconfig` in Command Prompt, look for "IPv4 Address" * **Linux**: `ip addr` or `hostname -I` ## 3. Connect from Tori Tenji Open the app on your phone, and on the server-setup screen enter: ``` http://:43211 ``` Your phone and computer must be on the **same Wi-Fi network** for this to work. ## Notes * Only one Tori server process can bind to the port at a time — don't run a standalone `tori` binary alongside Tori Denshi, they'll conflict. * Your computer's local IP can change (e.g. after reconnecting to Wi-Fi). If Tenji suddenly can't connect, re-check the IP and update it in the app. * For a permanently reachable address (not tied to your home network), see [Remote Access](/resources/remote-access). ## Optional: password-protect your server If your server is reachable beyond just your own devices, set a password under **Settings → General → Server Password** so a token is required to connect. # Desktop Local Library Setup Source: https://tori-11988804.mintlify.app/guides/desktop-local-library-setup This guide covers setting up Tori Denshi to manage and play a local anime/manga library on your computer — no torrenting or stream This guide covers setting up Tori Denshi to manage and play a local anime/manga library on your computer — no torrenting or streaming providers required. ## 1. Install Tori Denshi Download the latest build for your OS (Windows, macOS, or Linux) from the [releases page](https://github.com/yeonvvx/tori/releases) and install it like any other desktop app. ## 2. Point Tori at your library On first launch, open **Settings → Library** and add the folder(s) where your anime lives. Tori scans recursively, so subfolders are fine. Tori doesn't require strict naming conventions, but consistent folder structure (one folder per series, one subfolder per season if applicable) gives the best matching results. See [Scanner](/resources/scanner) for details on how matching works. ## 3. Link AniList (optional but recommended) Go to **Settings → AniList** and authenticate. This lets Tori match your local files against AniList entries, pull metadata/cover art, and sync your watch progress. ## 4. Set up a media player Tori Denshi ships with a built-in libmpv-based player (supports SSA/ASS subtitles, shaders, and hardware decoding). Alternatively, configure an external player: * **MPV** — point Tori at your `mpv` executable path in Settings → Media Player * **VLC** — same, via the VLC executable path * **MPC-HC** — Windows only ## 5. Optional: qBittorrent for downloads If you also want to download torrents into your local library (rather than stream them), install [qBittorrent](https://www.qbittorrent.org/) and connect it under **Settings → Torrent Client** with its Web UI host, port, username, and password. ## Next steps * [Local Anime Library](/resources/local-anime-library) — library paths and scan modes in depth * [Auto Downloader](/resources/auto-downloader) — automatically grab new episodes * [UI Customization](/resources/ui-customization) # Desktop Streaming Setup Source: https://tori-11988804.mintlify.app/guides/desktop-streaming-setup This guide covers using Tori without keeping a local library — streaming torrents directly, using a debrid service, or watching vi This guide covers using Tori without keeping a local library — streaming torrents directly, using a debrid service, or watching via online-streaming extensions. ## Torrent streaming Tori can stream a torrent directly to the player without waiting for the full download to finish. 1. Go to **Settings → Torrent Streaming** and enable it. 2. Choose a backend: * **Built-in (BitTorrent)** — streams directly, no third-party account needed. * **TorBox / Real-Debrid / AllDebrid / Premiumize** — enter your API key/token for the provider under its section. Debrid services generally give faster, more consistent streams than raw BitTorrent. 3. Install a torrent-search extension from the [Extension Marketplace](/resources/extensions) so Tori has sources to search. ## Downloading via debrid/torrent clients If you'd rather download than direct-stream, connect a downloader under **Settings → Torrent Client**: * qBittorrent / Transmission (self-hosted) * Torbox, Real-Debrid, AllDebrid, or Premiumize (cloud-based) ## Online streaming extensions Under **Settings → Extensions**, browse the marketplace for online-streaming source extensions. Once installed, matching episodes will show a streaming source option alongside (or instead of) local/torrent options. ## Notes * Streaming performance depends heavily on your chosen provider/source and your own connection. * Tori does not host or provide any of this content — extensions and providers are third-party and unaffiliated with the project. ## Next steps * [Streaming](/resources/streaming) — full provider configuration reference * [Auto Downloader](/resources/auto-downloader) * [Remote Access](/resources/remote-access) — if you want to reach this setup from outside your home network # Nakama (Watch Together & Sharing) Source: https://tori-11988804.mintlify.app/guides/nakama Nakama lets you link multiple Tori instances together so you can watch together in sync with friends, or share your library/host i Nakama lets you link multiple Tori instances together so you can watch together in sync with friends, or share your library/host instance with a peer without giving them full server access. ## Roles * **Host** — the instance others connect to. Enable under **Settings → Nakama → Host** and set a username. * **Peer** — connects to a host's Nakama session using the host's remote URL. ## Setting up as host 1. Go to **Settings → Nakama**. 2. Toggle **Enable hosting** on. 3. Set a display username (shown to peers). 4. Share your reachable server address (see [Remote Access](/resources/remote-access) if peers aren't on your local network) with whoever wants to connect. ## Connecting as a peer 1. Go to **Settings → Nakama**. 2. Enter the host's remote URL. 3. Connect — you'll be able to watch in sync with the host and other connected peers. ## Notes * Nakama sync is best-effort; large latency differences between peers can cause drift. * Hosting requires your instance to actually be reachable by peers — a purely local (`127.0.0.1`-bound) server won't work for anyone outside your machine. # Standalone Android Setup Source: https://tori-11988804.mintlify.app/guides/standalone-android-setup Tori Tenji for Android can run its own embedded server directly on your device, so you don't need a separate computer running Tori Tori Tenji for Android can run its own embedded server directly on your device, so you don't need a separate computer running Tori at all. ## 1. Install Tori Tenji Install the app on your Android device (sideloaded APK or, if published, from the store listing). ## 2. Start the Mobile Server In the app, go to **Settings → Mobile Server** and enable it. This starts a local copy of the Tori server backend on your phone/tablet, using on-device storage for its data directory and cache. ## 3. Point the app at itself Once the Mobile Server is running, use `http://127.0.0.1:` (the port shown in the Mobile Server screen — 43211 by default) as your server address on the setup screen. ## Notes * Running the server on-device means your library data lives on that device — back it up like you would any other local data. * Performance for transcoding/streaming depends on your device's hardware; low-end devices may struggle with on-the-fly transcoding of large files. * The Mobile Server can also be reached by other devices on the same network the same way a desktop server would be — see [Connect Tenji to Desktop](/guides/connect-tenji-to-desktop) for the same networking logic (find the device's local IP, ensure it's not restricted to loopback, etc). ## Next steps * [Offline Mode](/resources/offline-mode) * [Remote Access](/resources/remote-access) # Standalone iOS Setup Source: https://tori-11988804.mintlify.app/guides/standalone-ios-setup Tori Tenji for iOS supports the same idea as Android — running its own embedded server on-device — though iOS's sandboxing makes t Tori Tenji for iOS supports the same idea as Android — running its own embedded server on-device — though iOS's sandboxing makes this more limited than Android. ## Requirements * A sideloaded build of Tori Tenji (via Xcode with a free personal Apple ID, or a proper Apple Developer Program build for a real distributable `.ipa`) * iOS 16+ recommended ## 1. Enable the Mobile Server In the app, go to **Settings → Mobile Server** and enable it. As on Android, this runs a local instance of the Tori backend using the app's sandboxed storage. ## 2. Connect to it Use `http://127.0.0.1:` on the setup screen (default port 43211). ## Limitations on iOS * Background execution is restricted by iOS — the embedded server generally only runs while the app is in the foreground or briefly backgrounded, unlike a desktop server which runs indefinitely. * Free personal-team sideloads expire after 7 days and need to be reinstalled from Xcode; a paid Apple Developer account removes this limit. * For an always-on server reachable from your phone, a desktop or [Remote Access](/resources/remote-access) VPS setup is more reliable than the on-device iOS server. ## Next steps * [Connect Tenji to Desktop](/guides/connect-tenji-to-desktop) — the more reliable alternative * [Remote Access](/resources/remote-access) # Troubleshooting & Bug Reporting Source: https://tori-11988804.mintlify.app/guides/troubleshooting Tori writes structured logs on startup and during operation. Locations: ## Finding your logs Tori writes structured logs on startup and during operation. Locations: * **macOS**: `~/Library/Application Support/Tori/logs` * **Windows**: `%APPDATA%\Tori\logs` * **Linux**: `~/.local/share/Tori/logs` (or wherever your `SEANIME_DATA_DIR`/data directory points) Log lines are leveled (`TRC`, `DBG`, `INF`, `WRN`, `ERR`, `FTL`) — when reporting a bug, the `ERR`/`FTL` lines right before the failure are usually the most useful. ## Common issues **"Address already in use" on startup** Another Tori process (or Tori Denshi's embedded server) is already bound to the port. Only run one server instance at a time. Check with: ``` lsof -i :43211 # macOS/Linux ``` **Mobile app can't connect / times out** * Confirm `host` in `config.toml` is `0.0.0.0`, not `127.0.0.1` (see [Connect Tenji to Desktop](/guides/connect-tenji-to-desktop)). * Confirm both devices are on the same network. * Re-check your computer's local IP — it can change between sessions. **qBittorrent login fails** Double check the Web UI host/port/credentials match what's set in qBittorrent's own Web UI settings, and that "Bypass authentication for clients on localhost" isn't conflicting with a remote setup. **Transcoding is slow or fails** See [Transcoding & Direct Play](/resources/transcoding-and-direct-play) — hardware acceleration availability varies a lot by platform and GPU. ## Reporting a bug When opening an issue on the [GitHub repo](https://github.com/yeonvvx/tori/issues), include: * Your OS and Tori version * Steps to reproduce * The relevant log excerpt (redact anything sensitive, like tokens) # Tori Docs Source: https://tori-11988804.mintlify.app/index Documentation for Tori — a self-hosted anime & manga media server. Tori is a self-hosted media server with a web interface, a desktop app (**Tori Denshi**), and a companion mobile app (**Tori Tenji**) for browsing your library, tracking your AniList, and streaming or reading on the go. Tori does not provide, host, or distribute any media content. You are responsible for obtaining media through legal means and complying with your local laws. ## Guides Manage and play a local anime/manga library on your computer. Torrent streaming, debrid, and online-source extensions. Reach your desktop server from the Tori Tenji mobile app. Run the server directly on your Android device. Sideload and run the server directly on your iPhone. Watch together and share access across instances. ## Resources Server settings and config.toml options. Port forwarding, VPN mesh, and cloud VPS setups. Torrent, debrid, and online provider configuration. Installing and building extensions. Finding logs, common issues, and reporting a problem. *** Made by [yeonix](https://github.com/yeonvvx). # Auto Downloader Source: https://tori-11988804.mintlify.app/resources/auto-downloader Automatically tracks and downloads new episodes for shows on your AniList as they release. Automatically tracks and downloads new episodes for shows on your AniList as they release. ## Setting up 1. Go to **Settings → Auto Downloader**. 2. Enable it and choose a torrent-search extension/provider to use. 3. Set your default filters (resolution, release group preference, etc). ## Per-show rules From an anime's page, you can override the global filters for that specific show — useful for shows where you want a specific release group or resolution. ## Advanced features * **Prioritization** — rank preferred release groups so the downloader picks the best available match instead of the first one. * **Scoring** — weight matches by combined criteria (resolution + group + seeders) rather than a single filter. * **Delay** — wait a set time after a release is detected before downloading, to let better/more seeded releases show up first. ## Related * [Streaming](/resources/streaming) — provider configuration * [Local Anime Library](/resources/local-anime-library) # Configuration Source: https://tori-11988804.mintlify.app/resources/configuration Tori stores its settings in a config.toml file inside its data directory. Tori stores its settings in a `config.toml` file inside its data directory. ## File location * **macOS**: `~/Library/Application Support/Tori/config.toml` * **Windows**: `%APPDATA%\Tori\config.toml` * **Linux**: `~/.local/share/Tori/config.toml` (or under `$SEANIME_DATA_DIR` if set) Most settings can also be changed from the in-app Settings UI, which writes back to this file — editing it directly is mainly useful for headless/server setups or fixing something the UI won't let you (like the bind host). ## `[server]` | Key | Description | | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `host` | Interface to bind to. `127.0.0.1` = local machine only. `0.0.0.0` = reachable from other devices on your network (required for mobile apps, VPS setups, etc). | | `port` | Port the server listens on. Default `43211`. | | `offline` | Start in offline mode. | | `usebinarypath` | Whether to resolve external tool paths (mpv, ffmpeg, etc.) relative to the binary's location. | ## `[cache]` Controls where Tori caches images, metadata, and transcoded segments. See [Transcoding & Direct Play](/resources/transcoding-and-direct-play) for transcode-specific cache behavior. ## Environment variables | Variable | Description | | --------------------- | ----------------------------------------------- | | `SEANIME_DATA_DIR` | Overrides the data directory location. | | `SEANIME_WORKING_DIR` | Overrides the working directory Tori runs from. | > These env var names are internal identifiers carried over from the underlying engine and don't affect branding — they're not shown to you anywhere in the app. ## Applying changes Config file edits require a full restart of the server (fully quit Tori Denshi, not just close the window) to take effect. ## Related * [Local Anime Library](/resources/local-anime-library) * [Streaming](/resources/streaming) * [Remote Access](/resources/remote-access) # Extensions Source: https://tori-11988804.mintlify.app/resources/extensions Extensions add sources to Tori — torrent search providers, online-streaming sources, and manga sources — through an in-app marketp Extensions add sources to Tori — torrent search providers, online-streaming sources, and manga sources — through an in-app marketplace. ## Installing Go to **Settings → Extensions → Marketplace**, browse or search, and install. Installed extensions appear under **Settings → Extensions → Installed**, where they can be enabled/disabled or configured. ## Extension types * **Torrent providers** — power torrent search for Auto Downloader and manual torrent search * **Online streaming sources** — provide streamable sources for anime * **Manga sources** — provide chapters for series not in your local manga library ## Third-party nature Extensions are community-made and unaffiliated with the Tori project itself. They may be removed from the marketplace if found to violate copyright law — installing and using any extension is at your own responsibility. ## Writing your own Tori's extension system is scriptable (JavaScript, via an embedded Goja VM). See the [DEVELOPMENT\_AND\_BUILD.md](https://github.com/yeonvvx/tori/blob/main/DEVELOPMENT_AND_BUILD.md) guide in the repo for building/testing extensions locally. ## Related * [Streaming](/resources/streaming) * [Auto Downloader](/resources/auto-downloader) * [Manga](/resources/manga) # Local Anime Library Source: https://tori-11988804.mintlify.app/resources/local-anime-library Add one or more folders under Settings → Library. Tori scans them recursively for video files and matches them against AniList ent ## Library paths Add one or more folders under **Settings → Library**. Tori scans them recursively for video files and matches them against AniList entries. ## Scan modes * **Standard scan** — matches existing files against your AniList collection; unmatched files are grouped separately. * **Deep scan** — re-scans all files from scratch, useful after bulk-renaming or restructuring your library. ## Recommended structure While Tori doesn't enforce strict naming, matching accuracy improves with: ``` /Anime /Series Name /Season 1 Series Name - S01E01.mkv Series Name - S01E02.mkv ``` Single-season shows can skip the season subfolder. ## Locked/ignored files Individual files or folders can be locked (excluded from re-scans) or ignored entirely from the library view if you don't want Tori to touch them. ## Related * [Scanner](/resources/scanner) — how file-to-entry matching actually works * [Auto Downloader](/resources/auto-downloader) # Manga Source: https://tori-11988804.mintlify.app/resources/manga Tori includes a manga reader for local chapters and extension-sourced chapters, with a unified reading interface across both. Tori includes a manga reader for local chapters and extension-sourced chapters, with a unified reading interface across both. ## Local manga Add a manga library folder the same way as your anime library, under **Settings → Library**. Supported formats include folders of images and common archive formats (CBZ/ZIP). ## Extension-sourced manga Install manga-source extensions from the [Extension Marketplace](/resources/extensions). Once installed, matching series show available chapters directly from that source. ## Downloading chapters for offline reading From a chapter's menu, choose **Download** to save it locally for offline access (see [Offline Mode](/resources/offline-mode)). Downloaded chapters are stored in Tori's manga downloads directory alongside your regular data. ## Reader settings Customize reading direction (LTR/RTL), page layout (single/double page), and zoom/fit behavior under the reader's own settings panel. ## Related * [Local Anime Library](/resources/local-anime-library) * [Extensions](/resources/extensions) # Offline Mode Source: https://tori-11988804.mintlify.app/resources/offline-mode Offline Mode lets you browse and watch/read your library without an internet connection, using cached metadata and locally-downloa Offline Mode lets you browse and watch/read your library without an internet connection, using cached metadata and locally-downloaded assets. ## Enabling Toggle **Offline Mode** from Settings, or set `offline = true` under `[server]` in `config.toml` to start the server in offline mode directly. ## What works offline * Browsing your previously-synced library and metadata * Playing local files * Reading previously-downloaded manga chapters (see [Manga](/resources/manga)) ## What doesn't work offline * AniList sync (list updates queue and sync once you're back online) * Torrent/debrid/online streaming — these all require a live connection * Extension updates ## Manual offline toggle (mobile) Tori Tenji has its own manual offline switch, separate from the server's offline setting, useful when the app can reach a cached state but the server itself is unreachable (e.g. no signal, server temporarily down). ## Related * [Manga](/resources/manga) * [Configuration](/resources/configuration) # Remote Access Source: https://tori-11988804.mintlify.app/resources/remote-access Ways to reach your Tori server from outside your home network. Ways to reach your Tori server from outside your home network. ## Option 1: Port forwarding (home server) Forward your router's external port to your Tori machine's local IP and port (default `43211`). Your ISP-assigned public IP becomes your access point — a dynamic DNS service (e.g. DuckDNS, No-IP) is recommended since home IPs often change. **Downsides**: exposes your server directly to the internet; requires your computer to stay on and connected; some ISPs block inbound ports or use CGNAT (no public IP at all). ## Option 2: VPN mesh (Tailscale / ZeroTier) Install Tailscale (or similar) on both your Tori host and any device connecting to it. Devices get a private mesh IP that works from anywhere, with no ports exposed to the public internet. **Best for**: personal use across your own devices, without wanting a public URL. ## Option 3: Cloud VPS Run Tori entirely on a rented VPS (e.g. a small Ubuntu instance) instead of your home machine. This gives you a stable public IP, no dependence on your home network/ISP, and true 24/7 uptime. 1. Provision a Linux VPS (2 vCPU / 4GB RAM / 40GB disk is a reasonable baseline). 2. Build or upload the `tori` Linux binary and run it as a `systemd` service so it survives reboots. 3. Set `host = '0.0.0.0'` in `config.toml` (see [Configuration](/resources/configuration)). 4. Point Tori Denshi/Tenji at the VPS's public IP and port. 5. **Set a server password** (Settings → General) since this instance is reachable by anyone who finds the IP. 6. Optionally put it behind a domain + HTTPS (e.g. via Caddy or nginx + Let's Encrypt) instead of raw `http://ip:port`. **Note**: since your media library and/or torrent activity happens on the VPS itself, this only makes sense if you're not relying on files stored on your own computer — see [Desktop Streaming Setup](/guides/desktop-streaming-setup) for a debrid/torrent-based setup that doesn't need local storage. ## Security checklist for any remote setup * Set a server password * Keep Tori updated to the latest release * Don't expose your torrent client's Web UI (qBittorrent, etc) publicly — only the Tori server port needs to be reachable # Scanner Source: https://tori-11988804.mintlify.app/resources/scanner Tori's scanner parses filenames and folder structure to match local files against AniList entries, without requiring a strict nami Tori's scanner parses filenames and folder structure to match local files against AniList entries, without requiring a strict naming convention. ## What it reads * Series title (from the folder or filename) * Season/part indicators * Episode number * Release group / resolution tags (used for display, not matching) ## Matching process 1. Tori extracts a probable title from the file/folder name. 2. It searches your AniList collection (and, if enabled, AniList's broader database) for the closest match. 3. If confident, it auto-matches. If ambiguous, the file is left for manual matching in the library UI. ## Manual matching Unmatched or misidentified entries can be corrected from the library view — select the file(s) and choose **Match to AniList entry** to search and assign manually. ## Tips for better matching * Keep the series name consistent across all files in that series. * Include the episode number in a recognizable format (`E01`, `Episode 1`, `- 01`, etc). * Avoid mixing multiple series' files in one folder without season/series subfolders. ## Related * [Local Anime Library](/resources/local-anime-library) # Streaming Source: https://tori-11988804.mintlify.app/resources/streaming Reference for configuring Tori's streaming providers — torrent streaming, debrid services, and online-streaming extensions. Reference for configuring Tori's streaming providers — torrent streaming, debrid services, and online-streaming extensions. ## Torrent streaming (built-in) No account needed. Streams directly from BitTorrent peers to the player. Performance depends on seeders and your connection. ## Debrid services Supported: **Torbox, Real-Debrid, AllDebrid, Premiumize**. 1. Get an API key/token from your provider's dashboard. 2. Enter it under **Settings → Streaming → \[Provider]**. 3. Debrid-sourced torrents will show as an available streaming source alongside built-in torrent streaming. Debrid generally streams faster and more reliably than raw BitTorrent since the provider handles the download server-side. ## Online streaming extensions Installed via the [Extension Marketplace](/resources/extensions). Once installed, matching shows display an online-streaming source option. Quality/availability depends entirely on the extension and its upstream source. ## Choosing a source When multiple sources are available for an episode (local file, torrent stream, debrid, online extension), Tori lets you pick which to play from the episode's source selector. ## Related * [Desktop Streaming Setup](/guides/desktop-streaming-setup) * [Transcoding & Direct Play](/resources/transcoding-and-direct-play) # Transcoding & Direct Play Source: https://tori-11988804.mintlify.app/resources/transcoding-and-direct-play If your device/browser supports a file's codec and container natively, Tori serves it as-is — no CPU/GPU cost, best quality, faste ## Direct Play If your device/browser supports a file's codec and container natively, Tori serves it as-is — no CPU/GPU cost, best quality, fastest start time. ## Transcoding When direct play isn't possible (unsupported codec, remote device with limited codec support, bandwidth constraints), Tori transcodes on the fly using FFmpeg. ### Hardware acceleration Tori can use GPU-based hardware encoding/decoding where available: * **macOS**: VideoToolbox * **Windows**: NVENC (NVIDIA), QuickSync (Intel), AMF (AMD) * **Linux**: VAAPI / NVENC depending on GPU and drivers Enable under **Settings → Transcoding → Hardware Acceleration**. If unavailable or misconfigured, Tori falls back to software (CPU) transcoding, which is slower and more CPU-intensive — this matters if you're running Tori on a low-power VPS. ### Quality/bitrate settings Adjust target resolution and bitrate under **Settings → Transcoding** to balance quality against your (or your viewers') bandwidth. ## Related * [Streaming](/resources/streaming) * [Remote Access](/resources/remote-access) — bandwidth matters more once you're streaming outside your LAN # UI Customization Source: https://tori-11988804.mintlify.app/resources/ui-customization Under Settings → Appearance, choose from built-in accent color themes or set a custom accent color. ## Color themes Under **Settings → Appearance**, choose from built-in accent color themes or set a custom accent color. ## Background images Set a custom background image (global or per-library-entry) under the same Appearance settings. ## Layout options * Library view: grid density, card size, sort/filter defaults * Home screen: reorder or hide sections (Continue Watching, Continue Reading, Schedule, etc) ## Discord Rich Presence Toggle under **Settings → Discord** to show your current watch activity on Discord automatically. You can also hide specific info (like a repository/button link) from the presence card. ## Related * [Configuration](/resources/configuration)