Set up private workers on your hardware.
Requirements
Linux
- Ubuntu 22.04+ or Debian 12+ (what
engine setupsupports) - NVIDIA GPU (for GPU tasks): setup installs the driver and container toolkit
- Outbound internet access
Setup installs Docker when it is missing.
macOS
On macOS, the engine uses a bare runtime by default — it runs the visor worker as a native process without Docker. Apple Silicon GPU tasks use Metal (MPS) when the app supports it.
Docker is not required on macOS unless you set runtime: docker in the engine config. Linux production deployments should continue to use Docker.
Install and set up (Linux)
In the web app, open Engines → add engine. It makes a one-time enrollment token (infen-…) and shows one command with the token in it. Run it on the machine:
1curl -fsSL https://engine.inference.sh | sudo sh -s <token from add engine>The installer puts the engine in /usr/local/bin, then runs engine setup, which installs what the host's roles need (Docker; the NVIDIA driver and container toolkit on GPU hosts; boxd for sandboxes), enrolls the engine, and runs it as the inferencesh-engine systemd service.
By default this is auto mode: engine setup --dedicated --unattended, the best settings for a server only for the engine (it also hardens the host: SSH logins by key only, unattended security updates, a check that nothing but sshd listens on a public address, no firewall change; and tunes it: performance CPU governor, boost), with no questions. Add --ask after the token (auto mode off in add engine) to see each step and confirm before setup applies it, without the server-only changes.
Setup is Linux only (Ubuntu 22.04+, Debian 12+); on macOS, see Start on macOS. The token works once, within 24 hours, and enrolls one engine; setup makes the engine's own key (engine.key, next to engine.yml), so no API key is handed to the host. New token in add engine makes another. Other engine setup flags after the token are passed on (--plan prints what setup would do and changes nothing), and VERSION pins a release: curl -fsSL https://engine.inference.sh | sudo VERSION=v1.2.3 sh -s <token>.
The service runs as the user who ran sudo (--user picks another). Run as root with no one behind sudo (a root login, cloud-init), setup makes an inferencesh system user and runs the engine as it.
In two steps
Install, then run setup yourself:
1curl -fsSL https://engine.inference.sh | sh2sudo engine setup --dedicated --token infen-... # or without --dedicated on your own computerWithout sudo, the installer places the inferencesh-engine binary in ~/.local/bin (with sudo, /usr/local/bin) and creates an engine alias symlink. Ensure the install directory is on your PATH. On Linux it ends with the next step: engine setup. engine setup --plan prints what setup would do and changes nothing. engine setup docker, engine setup gpu and engine setup sandbox run those steps alone. Each run writes a report; engine setup --report prints the last one.
Start on macOS
1curl -fsSL https://engine.inference.sh | sh2engine serveOn first start, the engine prompts for an API key when the engine has no credential. Get an API key with the engine preset (engines:read, engines:write, apps:execute) at settings → workspace → api keys. See Configuration for ~/.config/inferencesh/engine.yml.
engine serve and bare engine both run the worker daemon in the foreground. Pass flags such as --name and --api-url to override config for a single run.
Verify
On the host, run a preflight:
1engine doctorengine doctor checks Docker, GPU detection, the engine's credential, that the API answers, the base port, disk space, and the worker link: whether a worker reaches the engine the way a task does. With Docker it runs visor linkprobe in a short-lived container shaped like a worker's; on a bare runtime it dials from the engine process. It prints what to fix for each failed check.
Once the engine runs, check Engines in the web app. Your engine should appear as online.
Run as service
On Linux, engine setup installs, enables and starts inferencesh-engine.service (/etc/systemd/system/inferencesh-engine.service). Restart it from the web app (Restart waits for running tasks) or on the host:
1sudo systemctl restart inferencesh-engine2sudo journalctl -u inferencesh-engineUpdating the engine
The engine checks dist.inference.sh for new releases on startup and can update automatically. To upgrade safely from the web app or your own code, see Engines API.
On the host:
1engine update # latest stable release2engine update canary # canary channel3engine update --version v1.10.15 # specific version4engine rollback # previous version (if saved)Disable startup auto-update with --disable-auto-update or INFSH_NO_AUTOUPDATE=1.