OwnTube

Self-hosted YouTube client

Your subscriptions.
Your server.

OwnTube is a YouTube client you run yourself. The web app, the TV app and the iPhone app share one server that keeps your history, subscriptions and recommendations. No Google account, no ads, no tracking.

Runs with Docker on Linux and macOS.
Apps for Apple TV, Android TV, Fire TV, iPhone and iPad.

tube.example.org
The OwnTube home page with a block of new uploads from subscriptions
Search results in the OwnTube iPhone app
The OwnTube TV app on Apple TV, with rows of subscriptions and continue watching

On your TV

Made for the remote

The TV app runs on Apple TV, Android TV and Fire TV and plays in the platform's own player. Sign in by scanning a code with your phone.

  • Your home page as rows, starting with Continue watching.
  • Search by voice or keyboard, Shorts, channels, playlists and history.
  • Profiles for everyone in the house.
  • Unfinished videos in Android TV's Continue watching row, and a Top Shelf on Apple TV.
  • Play on TV from the web sends a video to the living room.
Install the TV app →
Search results in the OwnTube iPhone app
The OwnTube home tab on iPhone with the mini player

On iPhone and iPad

Keeps playing when you lock the phone

The iOS app wraps OwnTube in native tabs and navigation, and adds what a web app can't do on iOS.

  • Playback in the background and in Picture-in-Picture, with lock-screen controls.
  • A player panel you swipe down into a mini player while you keep browsing.
  • The queue under the video, and on iPad in a column beside it.
  • A Continue watching widget and quick actions on the app icon.
  • YouTube links open in OwnTube.
Build the iOS app →

Features

Everything runs on your own server. The only requests to Google are the ones needed to fetch videos.

Its own YouTube gateway

OwnTube reads YouTube directly and streams to your players. No Invidious, Piped or other frontend to run or depend on.

A home page you build

Stack blocks for subscriptions, favorites, a tag, recommended, trending, history, queue, saved or a playlist, each with its own layout, size and colour.

Recommendations on your server

A recommender built on your own history. See what it learned, add or remove keywords, and keep subscribed channels out.

Channel tags

Tag channels, then show only a tag, hide a tag, or see one row per tag. Star your favorite channels.

New uploads in a minute

With the optional feeds server, YouTube pushes new uploads to OwnTube as they are published.

Queue, saved, playlists

One queue on every device. Save videos, keep local playlists, mark watched, and ignore what you don't want to see.

SponsorBlock

Skip sponsor segments, intros and self-promotion automatically or with a button, per category, with undo.

Podcast feeds

Playlists, the queue, saved videos, channels and tags as audio and video podcasts with chapters.

Accounts for everyone

Separate history, subscriptions and recommendations per person. Import your Google Takeout history.

The OwnTube watch page

The player

Everything a video has to offer

  • Up to 4K, with AV1, VP9 or H.264 depending on the device.
  • Audio tracks for dubbed videos, and a limiter for loud ones.
  • Captions in the player, Picture-in-Picture and fullscreen, in your default language.
  • Chapters, speed, keyboard shortcuts, AirPlay and Chromecast.
  • Live streams you can rewind, with a jump back to live.
About playback →
The Algorithm page with viewing stats, topics and recommendation settings

Recommendations

A recommender you can read

Recommendations come from the titles, tags and channels of what you watch, like and save, scored on your server. They are spread out so one channel or topic doesn't take over.

  • The Algorithm page shows your stats and the topics with the most weight.
  • Add or remove keywords, and keep subscribed channels out.
  • Ignore a video or a whole channel from any card.
How recommendations work →
The Subscriptions page with tag filters

Subscriptions

Sorted the way you think

  • Everything in one feed, a row per tag, or channel by channel.
  • Tag filters that include, exclude or ignore each tag.
  • Hide what you've watched, in every view.
  • Export as OPML.
About subscriptions →

How it works

Two containers on your server, and apps that connect to them.

  1. 1

    Gateway

    Fetches metadata, streams, captions and thumbnails from YouTube, and nothing else.

  2. 2

    Web app

    Keeps accounts, history and subscriptions in SQLite, and signs every playback URL.

  3. 3

    Your devices

    Browser, TV and iPhone talk to your server. None of them talks to Google.

  4. 4

    Your data

    One database file to back up, export as JSON or OPML, or move to another server.

The details →

Principles

No Google account.
You never sign in to Google, and your devices never talk to it.
Nothing phones home.
No telemetry and no analytics, in the server or the apps.
Your history stays yours.
Recommendations use only your own data, on your own server.
Open source.
MIT licensed. Read the code, change it, run it however you like.

Run it at home

Two secrets and one command. The installation guide covers HTTPS, backups and the apps.

# in a clone of the repository
printf 'AUTH_SECRET=%s\nGATEWAY_SIGNING_KEY=%s\n' \
  "$(openssl rand -base64 48)" \
  "$(openssl rand -base64 48)" > .env
docker compose up -d --build