Skip to content

Deploy to a machine

Put a project on a server or a small box by the door, keep it running without anyone logged in, update it, and manage it remotely.

There’s no separate deployment system in Tato. A machine runs its own runtime, and every project it opens stays open, playing or stopped as it was, across the runtime’s restarts. Deploying means getting the project onto the machine, opening it there, and keeping the runtime running.

This page assumes a Linux machine you reach over ssh: a server, a small box next to a camera, or a cloud machine with a GPU.

On the machine:

Terminal window
curl -fsSL https://get.tatolab.com/install.sh | sh

The installer puts tatolab and tatolabd in ~/.local/bin and starts nothing. To keep the runtime up on a machine nobody sits at, run it as a systemd user service, and turn on lingering so it runs while nobody is logged in: Install on Linux has the unit file. Then check:

Terminal window
tatolab streams

A project is just files, so use what you already use: git clone, rsync, scp. Leave .venv/ and .tatolab/ out; they belong to the machine they were made on.

Terminal window
git clone https://github.com/your-org/door-camera.git
cd door-camera

The runtime makes the project’s .venv on this machine when it opens the project, with the uv it carries, from your pyproject.toml and uv.lock. Commit uv.lock so the machine gets exactly the versions you tested with.

If a node needs files that aren’t in the repository, such as model weights, put them in place now, so the node doesn’t download them while it starts.

Terminal window
tatolab open --play
Output
Rk3x9q2m7v1c8b4n6p0w5z2ty-1 queued: open of /home/ops/door-camera
follow it: tatolab logs -f --dir /home/ops/door-camera

That’s the deployment. tatolab open returns at once; the runtime makes the .venv, loads every stream in streams/, and plays the project, now and every time it starts again. The first .venv downloads Python and your dependencies, so follow it with tatolab logs -f until the streams start, and check tatolab streams shows them running. To check they survive a reboot, reboot and run tatolab streams again.

A server has no desktop and no Tato Studio, so plan the stream for that:

  • See the picture from elsewhere. Encode the video and send it to a MoQ relay with the tatolab-moq nodes, and read it from any other machine. See Across machines.
  • Edit it from elsewhere. The graph document is in the project: edit it where you develop, commit it, and pull it here. Or let an agent edit the running stream over ssh.
  • Audio: with no sound devices, MicrophoneSource produces silence and SpeakerSink discards its input, so the stream still runs.

A machine with several cameras needs to say which one. On Linux, list them with v4l2-ctl --list-devices (from the v4l-utils package), then set the camera node’s device_id in its input_values:

{ "name": "camera", "type": "tatolab.camera:CameraSource", "input_values": { "device_id": "/dev/v4l/by-id/usb-Logitech_C920-video-index0" } }

A device_id that can’t be opened is refused by name when the stream starts, instead of silently falling back to another camera. /dev/video numbers can change when cameras are plugged in a different order; the stable names under /dev/v4l/by-id/ don’t.

Terminal window
cd door-camera
git pull
tatolab reload

A reload reads the project from disk again and keeps its playback, and each stream keeps its ID. When pyproject.toml or uv.lock changed, the runtime syncs the .venv first.

Every tatolab command works over ssh. A command run over ssh doesn’t get ~/.local/bin on its PATH on Debian and Ubuntu, so give the path where the installer put tatolab, relative to your home folder there:

Terminal window
ssh door-box .local/bin/tatolab streams
ssh door-box .local/bin/tatolab logs --dir door-camera --level warn -f
ssh door-box .local/bin/tatolab stop --dir door-camera

To let an agent manage the machine, run tatolab mcp over ssh:

Terminal window
claude mcp add door-box -- ssh door-box .local/bin/tatolab mcp

Control never travels over the network by itself: the runtime only listens on a local socket, and remote access is always ssh, with ssh’s keys and permissions. On a Tailscale tailnet, ssh to your machines by their tailnet names, from anywhere, without opening ports.

Where there’s no systemd, as in most containers, run tatolabd as the container’s main process. It runs in the foreground until it gets a stop signal. Giving the container the GPU and camera devices is your container runtime’s job (for NVIDIA GPUs, the NVIDIA Container Toolkit). A container that shares the host’s network counts as the same machine as the host, so only one of them can run a runtime.

  • tatolab streams shows every stream’s state. A stream that can’t load, or keeps taking the runtime down, is listed failed, with the reason, and the runtime runs the others without it.
  • tatolab logs --dir <project> --level warn shows a project’s problems; journalctl --user -u tatolabd shows the runtime’s own output.
  • tatolab graph shows whether frames are being dropped, and where.

Each machine runs its own runtime and its own projects. You deploy to each the same way. Streams on different machines share through a MoQ relay they can all reach. See Across machines.

  • Runtime installed and running as a service, lingering on, tatolab streams answers
  • Project copied, model weights and other files in place
  • Cameras chosen by stable device_id
  • tatolab open --play, then a reboot, then tatolab streams shows every stream running