selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Tube Archivist logo

Self-host Tube Archivist

v0.6.0

Self-hosted YouTube media server for offline video archival

BetaOpen SourceGPL-3.0
Updated2 weeks ago
LanguagePython
Setup difficultyAdvanced
Stars
8 583
CPU
dual core with 4 threads minimum, quad core recommended
RAM
2GB for small testing setup, 4GB for mid to large installation
Port
8000 (Main web interface (Nginx))
Requires
Elasticsearch, Redis
Docker
bbilly1/tubearchivist
Install with Docker Compose
Tube Archivist main interface showing video grid

What is Tube Archivist?

Tube Archivist is a self-hosted YouTube media server designed to archive your YouTube video collection for offline viewing. You subscribe to YouTube channels, and the application uses yt-dlp to download videos, then indexes all metadata, subtitles, and comments in Elasticsearch for fast full-text search. The web interface lets you play videos, track watched/unwatched status, create playlists, and manage downloads. It runs as a Docker Compose stack requiring Elasticsearch and Redis as separate services. The project is licensed under GPL-3.0 and actively maintained with regular releases. Installation guides cover Docker Compose, Podman, Unraid, Synology, and Proxmox LXC. Additional integrations include a browser extension for one-click archiving, Jellyfin and Plex plugins, SponsorBlock support, and Apprise notifications.

Tube Archivist alternatives

Should you self-host Tube Archivist?

Tube Archivist scores 72/100 on selfhost.directory (how scoring works) and ranks #7 of 119 in Media Server. It has 8 583 GitHub stars, +91 in the last 30 days.

It shipped 5 stable releases in the past year. The latest, v0.6.0, came out on 25 October 2026. New versions land roughly every 2 months.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is GPL-3.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is Jellyfin (88/100, 59 123 stars). It scores higher overall, so compare the two before you pick. See Tube Archivist vs Jellyfin side by side.

Features

  • Apprise notifications
  • Auto-rescan and scheduled downloads
  • Backup and Restore
  • Browser extension companion
  • Jellyfin and Plex integration
  • Multi-user with roles
  • REST API
  • Sponsorblock Integration
  • Subtitle download and indexing
  • User playlists
  • Video download with yt-dlp
  • Video playback in web UI
  • Watched state tracking
  • YouTube channel subscription

Tube Archivist README

How to install Tube Archivist

Install Tube Archivist with Docker Compose

Docker and Docker Compose installed
Environment variables
TA_HOST, TA_USERNAME, TA_PASSWORD, ELASTIC_PASSWORD, REDIS_CON, TZ, and many optional variables

services: tubearchivist: container_name: tubearchivist restart: unless-stopped image: bbilly1/tubearchivist ports: - 8000:8000 volumes: - media:/youtube - cache:/cache environment: - ES_URL=http://archivist-es:9200 - REDIS_CON=redis://archivist-redis:6379 - HOST_UID=1000 - HOST_GID=1000 - TA_HOST=http://tubearchivist.local:8000 - TA_USERNAME=tubearchivist - TA_PASSWORD=verysecret - ELASTIC_PASSWORD=verysecret - TZ=America/New_York healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/api/health/"] interval: 2m timeout: 10s retries: 3 start_period: 30s depends_on: - archivist-es - archivist-redis archivist-redis: image: redis container_name: archivist-redis restart: unless-stopped expose: - "6379" volumes: - redis:/data depends_on: - archivist-es archivist-es: image: bbilly1/tubearchivist-es container_name: archivist-es restart: unless-stopped environment: - "ELASTIC_PASSWORD=verysecret" - "ES_JAVA_OPTS=-Xms1g -Xmx1g" - "xpack.security.enabled=true" - "discovery.type=single-node" - "path.repo=/usr/share/elasticsearch/data/snapshot" ulimits: memlock: soft: -1 hard: -1 volumes: - es:/usr/share/elasticsearch/data expose: - "9200"

volumes: media: cache: redis: es:

Default installation method with all required services

How to configure Tube Archivist

  • TA_HOSTServer IP or hostname with protocol and port (e.g. http://tubearchivist.local:8000)
  • TA_USERNAMEInitial username for first login
  • TA_PASSWORDInitial password for first login
  • TZUTCTimezone for scheduler (defaults to UTC)

    values: IANA timezone identifiers

  • HOST_UIDHost user ID for media file ownership

Tube Archivist releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Am I getting blocked/throttled by YouTube?

YouTube may block automated downloads. Solutions include waiting, using a VPN/proxy, rotating IPs, updating yt-dlp, or using the PoToken integration.

Why is there no flexible naming structure for media files?

File paths use static channel-id/video-id.mp4 format to guarantee compatibility across all filesystems and handle changing channel names/titles without data loss.

Why does subscribing to a channel not download the complete channel?

Subscribing only fetches new videos for ongoing updates. For complete channel archival, use the download queue with the channel URL or browser extension.

Why Elasticsearch?

Elasticsearch is used for full-text indexing and searching across 100k+ videos with minimal performance impact, enabling search over subtitles and comments.

How do I install this natively (without Docker)?

Docker is the only supported installation method. There are no native packages (.exe, .rpm, .pkg, .msi) and none are planned.

How do I import my videos to Emby/Plex/Jellyfin/Kodi?

Tube Archivist is designed as its own media server. Jellyfin and Plex plugins are available for metadata sync, but direct import into other media servers is not the primary focus.

What is the scope of this project?

Tube Archivist is a self-hosted YouTube media server for downloading, indexing, and playing YouTube videos offline. It focuses solely on YouTube with no plans to expand to other platforms.

More in Media Server

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…