OwnNAS
Self-hosted NAS in one binary: file browser and previews, photo gallery, and terminals in any folder.
OwnNAS is a small web server you compile yourself (or download). It shares one folder and its subfolders on your own network or VPN, behind a username and password. Your files stay where they are. Accounts, tags and albums live in a SQLite file next to a thumbnail cache, and nothing is moved, copied or locked into a format.
One binary for Windows, macOS and Linux, plus native Android and iPhone apps.
What it does
- File browser: upload, download, move, rename, a Trash, earlier versions of saved files, and Undo for renames and moves.
- Previews: photos (RAW, HEIC, Live Photos), video, music, PDFs, Office documents, e-books, 3D models, maps and SQLite databases. Text and spreadsheets can be edited in place.
- Search: file names and the words inside documents and pictures (OCR with
tesseract), plus tags and comments. - Photo gallery: a timeline, nested albums that never move your files, places on a map, and workspaces like Family, Work or a customer.
- Smart photos: optional search by description ("dog on the beach"), similar photos, and faces grouped into people, all running on your own machine.
- Terminals in any folder: open a shell from the browser or your phone, with live status for coding agents like Claude Code.
- Library tools: duplicate finder, folder sizes, and disk health and temperatures.
- Backups: encrypted, scheduled backups to a USB drive, an S3-compatible bucket, or another computer over SFTP, with restore from any snapshot.
- Users: several accounts, administrators, read-only mode and an activity log.
- Sync: a two-way folder sync client for your computer.
A terminal next to your files
The feature I use most. Right-click any folder and choose Open terminal here to get a shell in that folder, in the browser, from any device.
- Terminals keep running when you close the tab or lose the connection. Reopen them anywhere and the recent output is replayed.
- Every terminal tiles into a grid beside the file list, with keyboard shortcuts for everything.
- On phones there's a key row with Esc, Tab, sticky Ctrl/Alt, arrows and paste (images too).
- Drag files from the list into a terminal to type their paths, or paste a screenshot to upload it and type its path.
Built for coding agents
Each terminal tab shows which agent is running in it and what it's doing: Claude Code, opencode, Codex, Gemini CLI, Aider and others are recognized automatically. You get a badge, a count in the page title, and a browser notification when an agent needs permission, asks a question, or finishes. Edited lists the files the agent changed and Changes shows git status, both opening right in OwnNAS.
Terminals are off by default, admin-only, and refused over plain HTTP unless you're on the same machine, your LAN, or a VPN.
A photo library that doesn't move your photos
The Gallery shows every photo and video by the day it was taken. Albums are virtual: they point at photos wherever they live, and can hold other albums like folders. Workspaces keep groups apart (Family, Work, Customer 1β¦), and the switcher shows one at a time.
Two optional smart features run entirely on the server, with models downloaded once:
- Search by what photos show, or drop in a picture to find similar ones (CLIP ViT-B/32, about 155 MB).
- Faces and people: name, merge, hide or correct groups (YuNet and SFace, about 39 MB). Face data stays in OwnNAS's database and can be deleted at any time.
Backups you can actually restore
Settings β Backup uses restic to back up the library and OwnNAS's own data.
- Where: another drive, an S3-compatible bucket (AWS, Backblaze B2, Cloudflare R2, Wasabi, MinIOβ¦) or another computer over SFTP.
- Encrypted with a password OwnNAS generates and shows you once.
- Scheduled daily or weekly. Missed runs catch up, failures retry, and only changes are sent.
- Kept as 7 daily, 4 weekly and 12 monthly snapshots by default, with a monthly read-back check.
- Restored into a new folder in the library, so nothing is ever overwritten.
Run it
Download a release for your platform, or build it yourself with Rust and a C compiler:
cargo build --release
ownnas serve --root /path/to/library --username admin --password "a long passphrase"
Then open http://127.0.0.1:8787, or http://<vpn-address>:8787 from another device on your VPN. On first start OwnNAS asks for anything you left out.
- HTTPS without a proxy:
ownnas tls generatemakes a private CA and server certificate. - Signed updates: installations check the signed release feed daily, and admins choose when to install.
- Runs as a service under launchd, systemd, Task Scheduler or NSSM.
The login is the application boundary; the VPN is the network boundary.
Apps
- Android: packages the same Rust server as a native library, so your phone can be the NAS too.
- iPhone and iPad: a native SwiftUI app with folders, search, uploads, the Gallery and terminals.
- ownnas-sync: keeps a local folder and a server folder in sync both ways. Deletions go to a Trash on either side, and conflicts keep both copies.
Under the hood
Rust server with SQLite compiled in, a plain JavaScript web UI, Kotlin for Android and Swift for iOS. Thumbnails use ffmpeg and sips/heif-convert when available. The full walkthrough is in DOCS.md.