homelab
← The journey

07 · November 2026

Saga

Paste and file sharing between my own devices.

Problem

I didn't trust ad-supported paste sites for one-off sharing, and uploading to a cloud drive just to move a file across my own network was overhead I didn't want. Setting up a new machine meant emailing scripts to myself.

Fix

Every paste or file gets a short numeric code. On the other device I type the code, scan the QR code or follow the link.

What it is

Paste and file sharing between my own devices

Saga is a self-hosted paste and file drop for moving things between your own devices. Pastes and files expire on a schedule you pick, can open only once, and can be encrypted on your device before they leave it. Collections go further: a named set of dotfiles and keys that sets up a new machine with one command.

Pastes

Plain text with line numbers, wrapping, copy, a raw view and download.

Files

Drag and drop, paste a screenshot from the clipboard, or browse, several at once with progress. Images, video and audio preview in the page, and uploads stream to disk.

Expiry and open-once

10 minutes to 30 days, or never. Delete-after-first-open items take a deliberate click to open, so chat link previews can't use them up.

Collections

Config files, dotfiles and keys, each with a target path and mode. sagacp --install <code> lays them down on a new machine and keeps the files it replaces.

Encryption on your device

Tick Encrypt and the item is encrypted with a password before upload. The format is what openssl enc writes, so you never need Saga to get a file back.

NAS backups

Scheduled snapshots of the database and every file, plus Save to NAS for any item or collection as plain files.

Google Drive

Send an item or collection to Drive through rclone, in the same layout as the NAS copies.

sagacp and API keys

Share and fetch from a terminal through /api/v1, which always takes a key, so it works behind SSO.

Recent

Everything you've shared, with search, text and file filters, thumbnails and view counts.

Screens

A closer look

Demo data throughout. Click any screen to see it full size.

Saga: a 'New laptop' collection of dotfiles with their target paths and an install command
Saga: a shared compose file with line numbers
Saga: recent pastes and files, some open-once or encrypted
Saga showing a paste on a phone

How it fits

What it talks to

  • NAS sharescheduled snapshots and saved copies of items and collections
  • Google Drive (rclone)optional copies of items and collections
  • Your SSOthe site sits behind it; only <code>/api/v1/*</code> bypasses it, with an API key

See it on the network diagram →

Security

How it keeps things safe

  • Encrypted items are encrypted on the device with AES-256-CBC and PBKDF2-SHA256 (600,000 iterations). The password never reaches Saga, so the server and its backups hold only ciphertext.
  • Lookups of codes that don't exist are rate-limited per IP (30 per 10 minutes), which makes guessing codes impractical.
  • Opening a delete-after-first-open item takes a POST, so link previews can't burn it.
  • /api/v1 always requires an API key, even behind SSO. Only that path should bypass the proxy's sign-in.

Run it

One container

Port
3040
Image
ghcr.io/vitafortis/saga

Put it behind your SSO and leave SAGA_PASSWORD empty, or set a password of its own. Set SAGA_BACKUP_DIR to a NAS mount to turn on snapshots.

Gaps

What it doesn't do yet

  • Anyone who can reach Saga and has a code can open that item, so codes should be treated like the links they are.
  • Lose an encryption password and the item is gone; nobody, including Saga, can recover it.
  • Behind SSO with no password of its own, everyone the IdP lets through can share, see the index and delete.