Plexio is a self-hosted Stremio addon for discovering and streaming media from Plex. This repository is the actively maintained fork of vanchaxy/plexio.
Plexio is independent and is not affiliated with Plex or Stremio.
- Configurable Direct Play and optional Plex transcoding streams.
- Local, remote, shared-server, and Plex Relay connections.
- Clearly labelled alternate-connection Direct Play streams.
- Continue Watching, Recently Added, searchable library, and sort catalogs.
- Opt-in, individually selected Plex collection catalogs.
- IMDb IDs when available, with Plex-native IDs for personal or unmatched media.
- Stremio stream metadata including resolution, codecs, HDR format, audio channels, bitrate, languages, filename, and file size.
- Server-side Plex authentication for reliable self-hosted sign-in.
- Short install URLs backed by encrypted, revocable SQLite sessions.
- Optional playback reporting through a range-aware playback proxy.
- Multi-architecture Docker images for
linux/amd64andlinux/arm64.
docker run -d \
--name plexio \
-p 7777:80 \
-v plexio-data:/data \
--restart unless-stopped \
ghcr.io/natedogg058/plexio:latestOpen http://localhost:7777, sign in to Plex, choose the server connections and
libraries you want, then install the generated manifest in Stremio.
Use a named volume as shown above. The container runs as unprivileged UID/GID
999; if you use a bind mount, make its directory writable by that identity.
Copy .env.example when deploying through Compose or another
orchestrator. Common settings are:
| Variable | Default | Purpose |
|---|---|---|
BASE_URL |
unset | Canonical public Plexio URL, strongly recommended behind a proxy. |
ALLOWED_HOSTS |
unset | Comma-separated HTTP Host allowlist, for example plexio.example.com. |
TRUST_PROXY_HEADERS |
false |
Trust X-Forwarded-Proto/Host; enable only behind your own proxy. |
ENABLE_SESSIONS |
true |
Store encrypted configuration outside install URLs. |
SESSION_DB_PATH |
/data/sessions.db |
SQLite session database. |
SESSION_ENCRYPTION_KEY |
auto-generated | Stable Fernet key; back it up if supplied manually. |
MAX_SESSIONS |
1000 |
Maximum stored installs; identical configs are deduplicated. |
ADMIN_KEY |
unset | Enables authenticated session list/revoke endpoints. |
ENABLE_LEGACY_URLS |
false |
Opt in to token-bearing legacy URLs when sessions are disabled. |
MAX_REQUEST_BODY_SIZE |
65536 |
Maximum POST/PUT/PATCH body size in bytes. |
PUBLIC_API_RATE_LIMIT |
60 |
Per-client connection-test/session requests per minute. |
PLEX_REQUESTS_TIMEOUT |
10 |
Plex request timeout in seconds. |
PLEX_MATCHING_TOKEN |
unset | Token from an owned server for metadata matching on shared servers. |
CACHE_TYPE |
memory |
memory or redis. |
REDIS_URL |
redis://redis:6379/0 |
Redis connection URL. |
PLEX_MATCH_CACHE_TTL |
86400 |
IMDb/Plex ID cache lifetime in seconds. |
PLEX_METADATA_CACHE_TTL |
300 |
Plex media/episode cache lifetime in seconds. |
STREAM_CACHE_TTL |
300 |
Complete Stremio stream-response cache lifetime in seconds. |
CORS_ORIGIN_REGEX |
built-in | Override allowed configure-page browser origins. |
Session administration uses the X-Admin-Key header:
curl -H 'X-Admin-Key: your-key' https://plexio.example.com/api/v1/sessions
curl -X DELETE -H 'X-Admin-Key: your-key' \
https://plexio.example.com/api/v1/sessions/SESSION_IDLegacy configuration URLs expose the Plex access token in browser history, reverse-proxy logs, and the Stremio addon URL. Leave them disabled unless you understand that tradeoff. The production image disables raw request access logs so a rejected legacy URL cannot write its embedded token to container logs.
For a persistent cache, run a private Redis service beside Plexio, set
CACHE_TYPE=redis, and leave Redis unpublished from the host. This preserves
matching results across Plexio updates and restarts. Cached stream responses
replace the Plex access token with an internal placeholder before storage.
Set BASE_URL=https://plexio.example.com and proxy to container port 80.
Detailed Nginx, Caddy, Cloudflare Tunnel, Tailscale, and troubleshooting examples
are in the reverse-proxy guide.
If you enable “Report playback to Plex”, Direct Play streams pass through Plexio. The public URL must then be reachable by every Stremio device and your proxy must permit byte-range requests and long-running responses. Plexio sends timeline heartbeats independently of media reads, so buffered external players remain active in Plex even while they temporarily stop requesting bytes. When a player is actively waiting for data, Plexio ends an upstream response that delivers no media for 30 seconds so the player can reconnect instead of hanging indefinitely on a stalled shared server.
Direct Play is enabled by default. You can turn it off when a shared server rejects original-file playback and offer only Plex transcodes instead. Enable “Include alternate Plex connections” to expose the selected server's other local, remote, and Relay URLs as labelled Direct Play choices.
When playback reporting is also enabled, Plexio presents one Direct Play choice and fetches it through the selected Streaming URL. It deliberately does not try other Plex-discovered connections, because addresses reachable from a playback device may be unreachable from Plexio's container or host.
Alternate connections remain Direct Play and never convert a failed request into a Plex transcode. If original-file playback returns HTTP 503 but Plex transcoding works, turn off “Include Direct Play” and enable “Include Transcoded Stream” for that installation.
This repository publishes the maintained self-hosted Plexio image. The public ElfHosted Plexio service is operated by ElfHosted using its own hardened fork and release schedule. Its manifest version can therefore differ from the releases in this repository, and publishing a release here does not update the ElfHosted instance. Contact ElfHosted support for its deployment status or self-host this image to choose a release directly.
For media matching on a server shared with you, set PLEX_MATCHING_TOKEN to an
access token from a Plex server you own. Plexio does not bypass Plex remote-play
rules; depending on Plex policy, remote personal-video playback may require Plex
Pass or Remote Watch Pass. Never post access tokens in issues or logs.
Collection discovery is disabled by default, including for existing installs. Select one or more movie/show libraries, enable “Include Plex collection catalogs”, and choose the collections you want as separate Stremio rows. Each row is paginated and tied to its original library; collection renames do not change its catalog ID.
GET /api/v1/healthchecks Plexio and its session store.GET /api/v1/health/{session_id}also checks that install's Plex server.
The deep health response reports reachability only and never returns a token.
Stream responses include X-Plexio-Cache: HIT|MISS and a standard
Server-Timing header with cache, Plex lookup, stream-building, and total
durations. Plexio also emits one sanitized summary log per stream response; it
does not log media IDs, URLs, session IDs, filenames, or access tokens.
Plex metadata matches found in multiple libraries are fetched concurrently. Short-lived metadata and final-response caches reduce repeated episode and version lookups while still reflecting library changes promptly.
The configure UI uses Tailwind CSS 4 and requires Safari 16.4+, Chrome 111+,
or Firefox 128+. Its theme is defined in frontend/src/index.css; Tailwind is
built through the Vite plugin. Use Node.js 22 for frontend development and CI.
uv run --extra dev ruff check .
uv run --extra dev python -m unittest discover -s tests -v
cd frontend
npm ci
npm run lint
npm run build
npx playwright install --with-deps chromium webkit
npm run test:e2eFor the live development stack, copy .env.example to .env and run:
docker compose up --buildUse GitHub Issues for support and feature requests. Include sanitized logs and diagnostics, but never a Plex token or a complete media URL.
Current and future work is tracked in the repository's GitHub issues and milestones.
See CHANGELOG.md for maintained-fork release history.