Skip to content

Deployment ​

mold supports multiple deployment modes; from a single GPU machine to cloud GPU providers.

Remote Rendering ​

The simplest setup: run the server on a GPU host, generate from anywhere.

bash
# On your GPU server
mold serve
mold host invite                 # prints a one-use pairing link

# Paste the link on your laptop, then generate there
mold host add                    # then paste the link
mold run "a cat" --host workstation

Secure is the default for both direct connections and the optional proxy. Hosts can also opt into Regular direct HTTP(S) for REST apps. See Secure and Regular connections, including persistent app-key generation.

Deployment Options ​

MethodBest For
Docker & RunPodCloud GPUs, RunPod pods
mold runpod CLIIntegrated pod and volume control
mold lambda CLIPrivate Lambda Cloud web UI
Secure and Regular connectionsPair clients or issue a direct REST app key
NixOSNixOS systems, declarative setup
Systemd serviceAny Linux with NVIDIA GPU

Systemd Service ​

Two sample units ship in contrib/. Pick one.

System-wide (contrib/mold-server.service), for a dedicated service user:

bash
sudo cp contrib/mold-server.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now mold-server

User mode (contrib/mold-server.user.service), for a single-user GPU box:

bash
cp contrib/mold-server.user.service ~/.config/systemd/user/mold-server.service
sudo loginctl enable-linger "$USER"   # survive logout; once per box
systemctl --user daemon-reload
systemctl --user enable --now mold-server

Key settings:

ini
[Service]
ExecStart=/usr/local/bin/mold serve --port 7680 --bind 0.0.0.0
Environment=MOLD_LOG=info
# NixOS with a non-flake `/usr/local/bin/mold`: uncomment for CUDA driver access
# Environment=LD_LIBRARY_PATH=/run/opengl-driver/lib