ozvault home

ozvault CLI · v0.1.0

Encrypted storage
from your terminal.

Upload, share, back up and restore from any machine with Node 22. Files are encrypted on your machine before upload. One file, no dependencies, nothing to install globally.

TERMINAL
$ node ozvault.mjs login
API key (from ozvault.lol/dashboard/keys): ********
✓ Saved · 2.10 GB of 15.00 GB used on the free plan

$ ozvault backup bot.db --bucket backups --name bot.db --keep 14
✓ Backed up bot.db → backups/2026-10-13T20-15-00Z_bot.db

$ ozvault share 6f1c… --expires 7d --ask-password --max-downloads 5
https://ozvault.lol/share#token=…&w=…

Install

Download, verify, run.

curl -fsSL https://ozvault.lol/cli/ozvault-0.1.0.mjs -o ozvault.mjs
echo "0f659a112aba912996215675e2a3a02fb95f2b60a75ada460b55bfce7789ba00 ozvault.mjs" | sha256sum --check
node ozvault.mjs --help

Windows PowerShell: Get-FileHash ozvault.mjs should print the same SHA-256. Add an alias (alias ozvault="node ~/bin/ozvault.mjs") to type just ozvault.

Version
0.1.0
Size
302 KB
Requires
Node >=22
SHA-256
0f659a112aba912996215675e2a3a02fb95f2b60a75ada460b55bfce7789ba00

Set up

Two secrets, kept on your machine.

  1. 01

    Create an API key

    In the dashboard, create a key with objects:read and objects:write, ideally limited to one bucket. Then run ozvault login. It’s saved in your user config folder, readable only by you.
  2. 02

    Create or reuse a vault key

    ozvault keygen -o ~/.ozvault-key creates one. Point the CLI at it with ozvault login --vault-key-file ~/.ozvault-key or OZVAULT_VAULT_KEY. The vault key never leaves your machine, so keep a copy somewhere safe.
  3. 03

    Pick a bucket

    ozvault buckets lists them. Commands take --bucket as a name or ID, or read OZVAULT_BUCKET.

Reference

Every command.

Add --json to most commands for scripts. NO_COLOR turns off colours.

CommandWhat it does
ozvault login [--api-key KEY]Save an API key (or set OZVAULT_API_KEY)
ozvault keygen [-o FILE]Create a new vault key
ozvault whoamiPlan, storage used and free
ozvault bucketsList buckets
ozvault ls [--bucket B] [--prefix P] [--trash]List files
ozvault upload FILE... --bucket B [--to PATH]Encrypt and upload
ozvault download ID [-o FILE]Download, verify and decrypt
ozvault rm ID... [--forever]Move to the trash, or delete for good
ozvault restore IDTake a file out of the trash
ozvault share ID [--expires 7d] [--ask-password] [--max-downloads N]Create a share link
ozvault get LINK [--password PW] [-o FILE]Download a share link (no account needed)
ozvault backup FILE --bucket B --name NAME [--keep N]Timestamped, rotating backup
ozvault backups --bucket B [--name NAME]List backups
ozvault restore-backup --bucket B --name NAME [-o FILE]Restore the newest backup
ozvault statusOzVault uptime and capacity
ozvault init TEMPLATE [DIR]Start a Next.js, Discord.js, Python or GitHub Actions project

Recipes

Things people do with it.

CRON
# Back up a database every 6 hours, keep 28 (one week)
0 */6 * * * OZVAULT_VAULT_KEY=$(cat ~/.ozvault-key) \
  node ~/bin/ozvault.mjs backup /srv/app/app.db \
  --bucket backups --name app.db --keep 28
SHELL
# Send a build to a tester: 3 downloads, 2 days, password
ozvault upload dist/app.zip --bucket releases --to builds/
ozvault share <id> --expires 2d --max-downloads 3 --ask-password

# Restore yesterday's database on a new machine
ozvault restore-backup --bucket backups --name app.db -o app.db
The CLI is a single JavaScript file built from the open JavaScript SDK. It isn’t on npm yet. Download it from this page and check the SHA-256 above.

Automate it in CI.

The GitHub Actions workflow runs this CLI, pinned by its checksum, to back up your repository every night.