Self-hosting the separator, the recognizer and the torrent stack
The first two sections are about the two AutoMiner services that run in Docker; the torrent stack for Stremio videos is the last. Two AutoMiner services can run in Docker on any PC or NAS on your network:
| service | what it does | port | profile |
|---|---|---|---|
separator |
MDX-Net vocal separation (separator/), so speech detection can hear sung audio |
9200 | separator |
whisper |
faster-whisper transcription with timestamps (probe_asr/), the ground truth for sync judgment and per-line timing |
9300 | whisper |
Download from the UI
Section titled “Download from the UI”Settings › Services has a Download button beside Transcription service URL and Separation service URL (the setup page has both). Each gives a zip of the service built from the server’s own checkout, so it always matches the running version:
- Windows: unzip and run
install.cmd. No administrator rights needed. It installs Python 3.12 with winget if there is none, builds a venv under%LOCALAPPDATA%\AutoMiner\<service>, downloads the model, registers a scheduled task that starts the server and restarts it after a crash, and prints the URL to paste into Settings.install.cmd -Gpuputs the separator on DirectML (any DirectX 12 GPU). Other options:-Port,-Dir,-NoTask, and-Modelfor the recognizer. - Linux / macOS: unzip and run
sh install.sh. With Docker it builds and starts the image (--gpu: the CUDA image, needs the NVIDIA Container Toolkit); without Docker (or with--venv) it builds a venv and installs a systemd user service.
Machine-specific settings for the Windows launcher go in local.cmd beside run.cmd
(set "AM_SEPARATOR_PORT=9210"); a reinstall keeps it.
Start with Docker from a checkout
Section titled “Start with Docker from a checkout”From the repo root:
docker compose --profile separator up -ddocker compose --profile whisper up -dEach one downloads its model into a Docker volume on first start (the log
says so; docker compose logs -f) and reuses it after that:
- separator: UVR
Kim_Vocal_2(~67 MB). SetAM_SEPARATOR_MODEL_URLto fetch another MDX-Net ONNX model instead. - whisper:
large-v3-turbo(~1.6 GB).AM_PROBE_ASR_MODELpicks another.
The container is ready once docker compose ps shows it healthy.
Point AutoMiner at it
Section titled “Point AutoMiner at it”In Settings › Services fill in:
- Separation service URL:
http://HOST:9200, with Separation mode (Settings › Subtitles) set to Container — separation service. - Transcription service URL:
http://HOST:9300, with Transcription runner (Settings › Subtitles) set to Container — transcription service.
HOST is the address of the machine running Docker as the AutoMiner server sees it
(LAN or Tailscale). The env vars AM_SEPARATOR_URL / AM_PROBE_ASR_URL do the
same and win over the Settings rows.
Neither service has authentication: keep them on your LAN or Tailnet, never port-forwarded to the internet.
CPU or GPU
Section titled “CPU or GPU”CPU is the default and works. The separator is much faster on a GPU (one 6 s
chunk: 4.68 s on CPU, 0.05 s on a GPU). With an NVIDIA card and the NVIDIA
Container Toolkit, uncomment the CUDA args, the whisper environment and the
deploy blocks in docker-compose.yml, then
docker compose --profile separator up -d --build. GET /healthz reports
provider (separator) and device (whisper): what is actually used.
Resources
Section titled “Resources”- separator: a 67 MB model. On a 12-core desktop CPU it runs at 0.66x realtime.
One separation runs at a time (
AM_SEPARATOR_CONCURRENCY), using every core. - whisper: a 1.6 GB model, loaded into RAM as
int8on CPU (AM_PROBE_ASR_COMPUTE). Smaller models are not a saving: they make up lines over silence. - The CUDA images are several GB larger, because they include the CUDA runtime.
Do not run the separator on the Pi. MDX-Net exhausts the Pi’s memory and takes the whole box offline. Run it on a PC or NAS and point the Pi at it.
Without Docker, separator/README.md and probe_asr/README.md describe a
plain Python install.
Torrents
Section titled “Torrents”Stremio watches are recorded whether or not anything fetches the video. To have
AutoMiner download what you watched, it needs three things you run yourself: a
search (Prowlarr, or a Stremio addon’s manifest.json), Deluge, and a VPN that
Deluge sits inside. AutoMiner ships no indexer and no tracker list, and fetches
nothing until the rows below are filled.
The bundle
Section titled “The bundle”Settings › Services has a Download beside Deluge URL (the setup page has
Download Deluge and VPN under the Stremio key). It asks for the VPN’s
details in a pop: the provider (Gluetun’s name for it, e.g. mullvad), your
WireGuard private key, your WireGuard address(es), and optionally the server
countries. Then it gives a zip made for this install:
docker-compose.yml: Gluetun (with its HTTP proxy), Deluge withnetwork_mode: service:gluetunso its only way out is the tunnel and Gluetun’s firewall is the kill switch, and Prowlarr outside the VPN. Images are pinned to exact versions.gluetun.env: your VPN details. They go into this file and nowhere else: AutoMiner does not store or log them. Keep it private and out of git..env:AUTOMINER_HOME, your user’sPUID/PGID, the time zone and Prowlarr’s API key.deluge-config/: Deluge’s seeds, so its web password is the one AutoMiner has and downloads go to<AUTOMINER_HOME>/torrents. That folder is mounted at the same path inside and outside Deluge, because AutoMiner opens the paths Deluge reports.install.sh: runsdocker compose up -d. And a README.
Making the zip also sets what is not set yet: a Deluge password and a Prowlarr API
key (made once and kept, so every download agrees with them), and the three rows
below with 127.0.0.1 addresses. A row you already filled is left alone.
Run it on the machine AutoMiner runs on. The same-path mount assumes AutoMiner and Docker see the same filesystem, so on Windows run both under WSL. A native Windows AutoMiner refuses the download and says so.
- Open Prowlarr (
http://127.0.0.1:9696), make the login it asks for, and add the indexers you use. They are yours; none is included. - Settings › Services, press Test on each row:
- Search URL: Prowlarr’s address with its key (the Prowlarr key row), or a
Stremio addon’s
manifest.jsonURL (no key). - Deluge URL, with the Deluge password row.
- VPN proxy URL: Gluetun’s HTTP proxy,
http://127.0.0.1:8888. AutoMiner checks through it that the VPN is up (its exit must differ from this machine’s), and YouTube uses it too when it refuses the server.
- Search URL: Prowlarr’s address with its key (the Prowlarr key row), or a
Stremio addon’s
- Settings › Sources › Stremio › Fetch says whether a fetch can run. Advanced holds No VPN, no fetch, on by default: it proves Gluetun’s tunnel is up, not that Deluge is inside it, which the compose file arranges. Turn it off only if your VPN covers the whole machine.
Your own Deluge or Prowlarr
Section titled “Your own Deluge or Prowlarr”Nothing needs the bundle. Point the rows at yours. A Deluge you run must be reachable
only through your VPN (the same network_mode: service:gluetun in your own compose
file), save AutoMiner’s downloads into <AUTOMINER_HOME>/torrents and mount that
folder at the same path on both sides. AutoMiner adds torrents only there, uses no
labels, changes no global Deluge option, and removes only its own torrents, so a
Deluge or Sonarr that has other torrents is left alone.