@ssdavidai/zotail
v1.2.0
Published
Set up Tailscale on your Zo workspace with auto-restart on session reboot
Downloads
483
Readme
zotail
Connect your Zo Computer workspace to your private Tailscale network. Access your workspace from any device on your tailnet — SSH, VS Code Remote, HTTP services, everything — without exposing ports to the public internet.
Why Tailscale on Zo?
Zo workspaces are ephemeral cloud environments. By default, you access them through the browser. With Tailscale, your workspace joins your private mesh network and gets a stable IP address, so you can:
- SSH directly into your workspace from your laptop, phone, or any device on your tailnet
- Access dev servers (Next.js, Flask, Jupyter, etc.) without port forwarding or tunnels
- Use VS Code Remote SSH for a native editor experience connected to your Zo workspace
- Connect to other machines on your tailnet from inside Zo (databases, APIs, NAS, home servers)
- Persist across reboots — zotail configures supervisord so Tailscale auto-starts when your workspace restarts
Quickstart
npx @ssdavidai/zotail setupThat's it. You'll be prompted for:
- Tailscale auth key — get one at https://login.tailscale.com/admin/settings/keys (use a reusable key if you restart workspaces often)
- Hostname — defaults to
zo-workspace, shown in your tailnet
Once setup completes, your workspace appears on your tailnet and you can reach it from any device.
Commands
zotail setup
Interactive setup. Installs the Tailscale sidecar, saves your auth key, configures supervisord for auto-restart, and connects to your tailnet.
npx @ssdavidai/zotail setupzotail status
Shows your Tailscale connection status, IP addresses, and all nodes on your tailnet.
npx @ssdavidai/zotail status📡 Tailscale Status
Supervisor: tailscale RUNNING pid 37555, uptime 1:23:45
Backend: Running
Hostname: zo-workspace
Tailnet: yourname.ts.net
IPs: 100.x.y.z
Nodes (3):
★ zo-workspace (this node) 100.x.y.z linux
● my-laptop 100.x.y.w macOS
● my-phone 100.x.y.v iOSzotail cleanup
Remove stale/offline nodes from your tailnet. Useful when you've spun up many Zo workspaces and old ones are cluttering your device list. Requires a Tailscale API key.
npx @ssdavidai/zotail cleanupzotail teardown
Removes Tailscale from your workspace — stops the sidecar, removes the supervisor config, and cleans up stored keys.
npx @ssdavidai/zotail teardownTips
- Use a reusable auth key. Zo workspaces restart between sessions. A reusable key means Tailscale reconnects automatically without re-auth.
- Enable MagicDNS. With MagicDNS on your tailnet, you can reach your workspace as
zo-workspace.yourname.ts.netinstead of remembering the IP. - SSH access. Once connected,
ssh root@zo-workspace(or whatever hostname you chose) works from any device on your tailnet. - Multiple workspaces. Give each workspace a unique hostname during setup (e.g.,
zo-project-a,zo-project-b) so they don't conflict. - Cleanup regularly. Ephemeral workspaces leave behind stale nodes. Run
zotail cleanupperiodically to keep your tailnet tidy.
How It Works
Under the hood, zotail:
- Stores your Tailscale auth key in
~/.zo_secrets - Writes a startup script to
/usr/local/bin/start-tailscale.shthat runstailscaledin userspace networking mode - Adds a
[program:tailscale]entry to/etc/zo/supervisord-user.confso the sidecar auto-starts and auto-restarts - Tailscale authenticates using your auth key and joins your tailnet
All operations are idempotent — running setup multiple times is safe.
Requirements
- A Zo Computer workspace (Tailscale binaries are pre-installed)
- A Tailscale account with an auth key
- Node.js (pre-installed on Zo)
