Skip to main content

Why

This section is Sam’s text, lightly cleaned up from dictation.
TinyCloud should be usable sovereignly. This means if TinyCloud Labs as an organization goes away, you should still be able to use the technology. You should be able to use it without interference from anyone. And you should be fully in control of where your data lives and who has access to it. We use the same tools as crypto, which already lets people use money in a sovereign way. This is how we apply them to data. This is a little more involved and more technical, but sovereignty requires you to be more involved. We think TinyCloud should be available and accessible to everyone, which is why we built it as a service. This guide is for those who are called to sovereignty.

This path is more involved than the hosted service

The hosted service needs an account and nothing else. Running your own node means you provision a server, own a domain, keep two secrets safe, take your own backups and run your own upgrades. Nobody does those for you. TinyCloud’s hosted service and free tier stay available. If you want your data and your node under your control, keep reading.

The three parts

Sovereignty in TinyCloud is three abilities:
  1. Run your own node on your own server.
  2. Replicate your data to that node.
  3. Use your own Ethereum key as your identity.
This guide gives working steps for parts 1 and 3. Part 2 is covered by the offline backup and restore below.

Run a node

The node is the same Rust binary and image that TinyCloud’s hosted service runs. Its source and container image are public, and the source is licensed under EGPL-1.5. Everything in this section is the personal-node guide in the tinycloud-node repository, deploy/personal-node. A GitHub Actions job runs the same node.sh operations on a clean runner on every change to that guide. That job is the evidence for every step here.

What you need

  • An ordinary Linux VPS with Docker Engine and Compose v2, bash, curl, jq, openssl, tar, sudo, Node.js 22 and npm.
  • A domain you own, with its A/AAAA record pointing at the VPS. Ports 80 and 443 are free and reachable, so Caddy can get a certificate and serve HTTPS.
  • A persistent local disk with room for your live data and a full backup.
  • A clone of the tinycloud-node repository at the revision that carries the guide. Run every command below from its root.
Keep the node’s plain HTTP port (8000), its unauthenticated metrics port (8001) and the Docker socket off the internet. Only Caddy’s 80 and 443 are public.

What this node is, and is not

  • It runs one node with local SQLite and local blocks. Caddy terminates HTTPS.
  • It uses a digest-pinned published image (1.20.6) and a digest-pinned Caddy (2.10.2). Do not use latest or any other tag.
  • There is no hosted billing or quota service in this setup. CI checks that the node reports no quota URL.
  • It is not a TEE. You, the server operator, can read its filesystem and its key. The guide makes no attestation claim, and neither does this page. TLS proves your domain to clients; it does not prove the machine.
  • The node still depends on DNS and a certificate authority to be reachable over public HTTPS.

Provision and launch

Replace node.example.com with your domain.
  • init writes a unique random node key to a private node.env (mode 0600) in NODE_HOME. It never prints it.
  • check-missing-key must run before start. It proves the node refuses to start with no key, rather than falling back to a shared default.
  • check-version confirms the node is running the pinned version, with no hosted quota URL and not inside a TEE.
CI runs this same sequence with a local test certificate instead of a public one. Issuing a certificate for your own domain is the one part of launch CI does not run. The guide’s Caddy notes tell you how to check issuance and renewal on a staging domain first.

Stop and restart

CI restarts the node and checks that signed data is still there. stop ends the node’s containers and keeps its data.

Your Ethereum key

In TinyCloud your identity is an Ethereum address. This guide proves the plainest form of it: an externally owned account (EOA), a wallet key you hold, signing directly to your node. Put your wallet’s 32-byte hexadecimal private key (no 0x) in its own file, mode 0600, outside NODE_HOME. Then:
seed signs in to your node with that key, creates a space the key owns, writes a key-value object and a SQL row. verify runs after the restart. It checks the exact KV and SQL values and checks that the node’s public identity (its DID) is unchanged. Only the key file’s path is passed on the command line, never the key. Two keys matter, and they are different: What CI proves is signing with a private key read from a file. Signing through a browser wallet, a hardware wallet or a contract wallet is not in this guide’s steps.

Back up, and what happens if you lose your node key

Take an offline backup. backup stops the node, archives its whole data directory, encrypts node.env as a separate file, and restarts the node.
The data archive itself is not encrypted. Protect it as sensitive data. The passphrase is in neither artifact. Keep the backup and the passphrase in separate, secure places. To restore on a fresh host or directory, copy the backup, the passphrase and your owner wallet key over separate secure channels, then:
Stop the old node before you repoint DNS, and never run two live nodes with the same identity and domain. CI restores into a fresh directory and checks that the node’s DID and signed KV and SQL data match. If you lose the node key. The node key is what makes your node that node. Restore with the original key and the node comes back with the same identity and data. Start from a different key and verify fails rather than quietly giving you a new identity. A changed key can leave encrypted or sealed state unreadable: if the node key is lost, treat the node and its data as gone. So back up node.env independently of the data, every time you change anything. If you lose your Ethereum key, nothing in the node backup recovers it. It is not in the backup.

Deleting your data

Today, on a node you run, your data is in the data directory under your NODE_HOME, on your own disk. You delete it the way you delete any files on your own machine. A protocol cannot reach into someone else’s hardware: the owner of a machine decides whether the bytes are really gone.