Skip to content

Guardian

Self-hosted access control for Plex that ends streams breaking per-user and device rules

Source available · PolyForm-Noncommercial-1.0.0

Listed by , founder & editor

80

Health

Thriving

Overview

Stars

174

Last commit

today

Nov 2026

Repository age

1 year

since Sep 2025

Latest version

v2.2.2

Nov 2026

Contributors

–

2 active in 90 days

Releases

12

last 12 months

Docker pulls

6.8k

hydroshieldmkii/guardian

Language

TypeScript

Guardian is an access-control layer for Plex Media Server. It polls the Plex sessions API, checks each stream against policies for the user and device, and terminates sessions that fail. It is built with TypeScript, NestJS and Next.js and runs in Docker.

You can approve, reject or hold devices, add per-user overrides, set LAN or WAN and IP allowlists, use schedules and issue temporary grants. Global and per-user concurrent stream limits are available. The web interface, on port 3000, shows live sessions, stream details and a searchable history. Notifications go out by email, Apprise or in-app. A portal lets Plex users see their own devices and leave notes.

Setup needs a reachable Plex Media Server and a Plex token. The Compose file also works as an Unraid stack. The license is PolyForm Noncommercial 1.0.0, which is source-available and not open source, so commercial use is not allowed.

Who it's for

Plex server owners sharing with friends and family

You can limit devices and concurrent streams per user.

Skip if: You only stream for yourself and need no restrictions.

Homelab admins using Unraid or Docker Compose

Install is a Compose file, and an Unraid stack is supported.

Skip if: You do not run Plex.

The problem it solves

Plex shares can be passed around or used on more devices than you intended. Guardian lets you decide which devices and users may stream, and cuts off sessions that break your rules.

Strengths

  • Per-user and per-device policies with IP allowlists and schedules
  • Global and per-user concurrent stream limits
  • Live sessions view and searchable history
  • Notifications through email, Apprise and in-app
  • Docker Compose install, with 11 releases in the past year

Trade-offs

  • Noncommercial license; not OSI open source
  • Works only with Plex Media Server
  • Needs a Plex token and a reachable server
  • Small contributor base, with 2 recent contributors

Self-host Guardian

Self-hostable
Yes
Docker image
hydroshieldmkii/guardian

Quick start

mkdir -p guardian && cd guardian
curl -o docker-compose.yml https://raw.githubusercontent.com/HydroshieldMKII/Guardian/main/docker-compose.example.yml
docker compose up -d

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Guardian free?

It is free for noncommercial use under PolyForm Noncommercial 1.0.0. Commercial use is not allowed.

Can I self-host it?

Yes. You run it with Docker Compose, and the web interface listens on port 3000.

What does it need?

A reachable Plex Media Server and a Plex token.

Does it support Unraid?

Yes. You can create a stack from the example Compose file under Docker, then Compose.

Similar tools in Media servers

viewscreen

Media servers

Self-hosted video streaming and remote torrent server you run on a small VPS

231 27 8 years ago Dormant MIT

Meelo

Media servers

Self-hosted music server for collectors, with music videos and multiple album versions

1.5k 42 today Thriving GPL-3.0

lunarr-go

Media servers

386 11 35 days ago Slowing Apache-2.0

jcorp-nomad

Media servers

1.3k 64 today Active Unknown