Skip to main content
A User Service is an automatically managed process on Zo Computer that has a public endpoint. These services will be restarted if they crash, and they will persist across restarts of Zo Computer. They are intended for long-running services that you want to expose via a public URL or TCP address (web/API servers, databases, SSH server, etc). Services should bind to the PORT environment variable.

Parameters

service_id
string
required
Identifier of the service to update.
label
string
Optional. Unique label for the service (lowercase and hyphens).
local_port
number
Optional. Localhost port to expose (injected as PORT env var).
entrypoint
string
Optional. Command to run the service.
workdir
string
Optional. Working directory; the entrypoint runs from here.
env_vars
object
Optional. Environment variables (PORT will be overridden).