Deploy anywhere
The uShelf server is one container image, released in lockstep with the CLI. You can run it on your laptop, on any Docker host you can reach over SSH, on Fly.io, or on any platform you already operate. Your machine keeps only the CLI and the MCP bridge.
Targets
Section titled “Targets”| Target | Where it runs | Library storage | HTTPS |
|---|---|---|---|
| Local Docker | The local Docker daemon | ~/.ushelf on this host |
Not needed on loopback |
| SSH with a domain | Any Docker host reachable by SSH | ushelf-data volume |
Managed Caddy certificate |
| SSH with your own proxy | Any Docker host reachable by SSH | ushelf-data volume |
Your proxy or Tailscale |
| Fly.io | One Fly.io Machine | ushelf_data Fly volume |
Provided by Fly.io |
| Self-hosted | Anywhere you deployed it yourself | Whatever you mounted | Your responsibility |
ushelf deploy localushelf deploy ssh me@vps.example.com --domain ushelf.example.comushelf deploy ssh me@nas.local --url https://nas.tailnet.ts.netushelf deploy fly --app my-ushelf --region cdgushelf context add homelab --url https://ushelf.example.comContexts
Section titled “Contexts”Each deployment is saved as a context: a name, the driver that operates it, its settings, and its credentials. ushelf deploy creates or updates a context and makes it current.
ushelf context listushelf context use vpsushelf --context fly statusCommands such as start, stop, status, logs, open, config, doctor, mcp, and kindle act on the current context. --context NAME or the USHELF_CONTEXT environment variable selects another one for a single command.
Redeploying a context keeps its saved settings and secrets unless flags override them, so ushelf start and ushelf update reconcile it in place:
ushelf config set base-path /reader/ushelf startushelf context remove NAME forgets a context on this machine without touching the deployment or its library.
Credentials
Section titled “Credentials”Every deployment gets a generated API token that authenticates the CLI and agents. Remote deployments also require a reader password for the browser. Both are stored in ~/.ushelf/credentials.json with owner-only permissions. See the Security model.
Moving a library
Section titled “Moving a library”Moving a library between deployments is not automated yet. Copy library/ and recipes/ from one data root to the other while both servers are stopped; the index rebuilds from Markdown on startup.