AutoThrottle
Docker app from JaiMistry's Repository
Overview
Readme
View on GitHub
AutoThrottle
Intelligently throttles download clients while a media server has active playback.
Build status Coverage Latest version Docker pulls Size Unraid Community Apps
AutoThrottle slows your download clients while playback is detected on your media server, and reverts them back to their normal speeds once playback ends. It utilizes the server's live feed so changes are detected in near real time. AutoThrottle is also pause- and autoplay-aware, ensuring that rate changes don't flip your downloads back on between episodes, and a paused stream reverts to default rates after a timeout. In addition, streams on your own network can be left out entirely. Throttling can also be globally toggled on or off when needed.
⭐ Features
- Live dashboard: A modern reactive UI with live updates as they occur.
- Near-real-time detection: Listens to each server's live feed.
- Autoplay-aware: Back-to-back episodes being played will hold throttling, preventing unnecessary rate changes.
- Pause-aware: A paused stream stays throttled until a 30-minute timeout.
- Local playback exemption: Streams on your own network can be ignored, so only remote connections count.
- Mappings: Control which media servers throttle which download clients.
- Restart/crash-safe: Rates are reapplied on startup, so nothing stays stuck slow.
- Throttle history: A 7- and 30-day heatmap of when your downloads were held back.
- Secure: All sensitive credentials are securely encrypted and never leaked.
- Lightweight: A single distroless image with a minimal footprint.
- Multiple platforms: Docker, Unraid Community Apps, and as a native Windows service.
How AutoThrottle decides when to throttle
What counts as watching
A stream counts while it is playing, buffering or paused on a media server you've added and mapped to a download client. With the local playback exemption on, streams from your own network don't count, so only the ones using your internet connection do.
How fast it notices
AutoThrottle doesn't poll on a timer. It holds a live connection to each server: Plex's notification socket, and the session feed Jellyfin and Emby push every 1.5 seconds. A press of play reaches it within a second or two. Every 60 seconds it also re-reads each server's full session list, to catch anything the live feed missed.
What it changes
While any server mapped to a download client has a stream that counts, that client runs at the throttled rates you gave it. When none does, it goes back to its default rates. A download client is only contacted when that answer changes, so a stream's timecode ticking along costs it nothing.
Pauses
A paused stream stays throttled, since the viewer is usually coming back. But servers keep paused sessions open for hours, and Jellyfin can show a closed player as still playing, so a stream that hasn't moved for 30 minutes stops counting until it moves again. That clock survives a restart of AutoThrottle.
Between episodes
When a TV episode ends in its closing stretch (the last 5 minutes, or the last tenth for a long one), autoplay's next episode may start a few seconds later. So the throttle holds for 30 seconds instead of lifting, and the Dashboard says it's waiting on the next episode. If the next one starts, nothing changes; if it doesn't, default rates return when the 30 seconds are up. There's no hold after a film, an episode stopped partway, or a show's last episode, because nothing would autoplay after them.
When something goes wrong
If a download client can't be reached, AutoThrottle keeps retrying, sooner at first and then every couple of minutes, and applies the right rates as soon as it answers. When AutoThrottle restarts, it re-applies whatever should be in force. Every throttle and restore is logged with what caused it.
Overriding it
Disable throttling puts every client back to its default rates straight away and keeps them there, even across restarts, until you resume. On Windows, Exit in the tray icon also restores default rates before AutoThrottle stops.
🛠️ First-time setup
Open http://<your-server>:7676 and create your account. Everything else
happens on the Configuration page:
Add a media server with its URL and token or API key. For Plex you can sign in with your Plex account instead of pasting a token.
Add a download client with two pairs of rates:
- Default rates, applied when nothing is playing.
- Throttled rates, applied while a mapped server is playing.
Rates are in KB/s, and
0means unlimited.Map them. Choose which media servers throttle which download clients.
License
Made with ❤️ by JaiMistry
Media gallery
1 / 3Requirements
Media servers:
Plex Media Server 1.43+
Jellyfin 10.11+
Emby 4.9+
Download clients:
qBittorrent 5.2+
Transmission 4.1+
Deluge 2.1+
Download Statistics
Related apps
Explore more like this
Explore allDetails
jaimistry/autothrottle:latestRuntime arguments
- Web UI
http://[IP]:[PORT:7676]- Network
bridge- Privileged
- false
Template configuration
Port for the web interface.
- Target
- 7676
- Default
- 7676
- Value
- 7676
Database and encryption key. Keep this folder to keep your settings and history.
- Target
- /data
- Default
- /mnt/user/appdata/autothrottle
- Value
- /mnt/user/appdata/autothrottle
User that owns the appdata folder.
- Default
- 99
- Value
- 99
Group that owns the appdata folder.
- Default
- 100
- Value
- 100
Optional. Sign-in username from here instead of creating an account in the WebUI. Set together with the password.
- Target
- AUTH_USERNAME
Optional. Sign-in password, set together with the username.
- Target
- AUTH_PASSWORD
Turns off sign-in. Only use this behind a reverse proxy that handles sign-in itself.
- Target
- AUTH_DISABLED
- Default
- false|true
- Value
- false