A node deployment keeps a model that is stored on one of your compute nodes loaded and serving. The AI Deployer serves it at an OpenAI-compatible endpoint of its own, which applications call directly with the deployment’s serving key. No AI Gateway or Gateway API key is involved.
The node is never connected to directly. Requests travel over the agent’s outbound control channel, so a machine behind NAT or a firewall can serve models. Optionally, a deployment can also be published in a Gateway workspace. Gateway clients then reach it with their Gateway keys, and the workspace’s budgets, guardrails, usage and logging apply to it. Direct calls keep working either way. Node deployments and Kubernetes deployments share the same Deployments page and API. You pick the target when you create a deployment.

Engines and compatibility

Before anything starts, the Deployer reads the model’s record from the node and checks it against the compatibility registry: model format, architecture, CPU architecture, GPU and an estimate of the memory the model needs at the chosen context length. The agent repeats the check on the machine itself before it starts the engine. Problems are either errors, which block the deployment (for example a Safetensors model on llama.cpp, or not enough memory), or warnings, which are shown but allowed (for example an architecture llama.cpp is not yet known to run, or GPU offload on the CPU build). The console recommends an engine and dims the ones that cannot run the model, with the reason.
On a CPU machine, download GGUF models, for example manylayers pull Qwen/Qwen2.5-0.5B-Instruct-GGUF:Q4_K_M. On a machine with an NVIDIA GPU you can also download a Hugging Face snapshot, manylayers pull --snapshot Qwen/Qwen2.5-0.5B-Instruct, and serve it with vLLM or SGLang. When the node has a GPU, vLLM is recommended; choose SGLang for its prefix caching, which helps with long shared prompts.

Create a deployment

1

Choose Compute node as the target

In AI Deployer → Deployments → Create deployment.
2

Pick the node and a model stored on it

Only nodes connected to the Deployer, and only completely downloaded models, can be chosen.
3

Pick the engine

The recommended engine is preselected.
4

Configure it

5

Name it

Choose a deployment name and the model name clients pass as model.
6

Optionally, publish it in the Gateway

Turn on Also publish in a Gateway workspace and pick the workspace. The deployment then also becomes a self-hosted provider account named after the deployment, so Gateway clients call it as <deployment>/<model> or by the model name.
7

Copy the endpoint and the serving key

After Deploy, the console shows the endpoint, the model name, the serving key and ready-to-run examples. The serving key is shown once. If it is lost, issue a new one with New serving key in the deployment’s details.

Call a deployment

Each node deployment’s endpoint is an OpenAI-compatible base URL on the AI Deployer:
Authenticate with the deployment’s serving key (mldep_…) as the bearer token, and pass the deployment’s model name as model. The console and the API (endpoint, served_model) give both values.
Streaming responses are relayed chunk by chunk as the engine produces them. Errors use the OpenAI error shape ({"error": {"message", "type", "code"}}): Errors from the engine itself, such as a context that is too long, are passed through with the engine’s status and body.

GPU deployments

A Hugging Face snapshot is served on the node’s NVIDIA GPU by vLLM or SGLang.
  • First use installs it. The agent creates a Python virtual environment for the engine under <data-dir>/runtime/<engine>-<version>. Each engine gets its own, because they pin different PyTorch builds. The agent downloads the engine’s wheel and installs it only if its SHA-256 matches the digest built into the agent. pip then installs the engine’s dependencies, including PyTorch and its CUDA libraries, from the Python package index. That is several GB, so the first deployment can take a while; progress appears in the deployment’s log. Later deployments start straight away. SGLang may also compile GPU kernels the first time it starts.
  • Machine requirements: an NVIDIA driver with the nvidia-uvm module loaded, and a supported Python with the venv module (apt install python3 python3-venv).
  • GPU access. The agent’s service is sandboxed with no device access. On a machine with an NVIDIA GPU, the installer adds a systemd drop-in (manylayers-agent.service.d/gpu.conf) that lets through only the NVIDIA device nodes, plus the run-time code generation CUDA and PyTorch need. Set MANYLAYERS_AGENT_GPU=0 to leave it out, or =1 to force it. A machine connected before GPU deployments were available needs the install command run again; until then a GPU deployment fails with a message saying so.
  • Isolation. The model loads from its directory on the node. Both engines run offline, so they contact no model hub. Neither runs code shipped in a model repository: there is no --trust-remote-code. They listen on 127.0.0.1 only, like llama.cpp.
  • GPU memory. Nodes do not report GPU memory, so the compatibility check does not size the model against it. A model that does not fit fails to start with the engine’s out-of-memory message.
  • Your own installation. On an air-gapped machine, or one that needs a particular CUDA build, set the variable in the table in /etc/manylayers/agent.env. The agent then uses that installation instead of installing one, and reports its version.

Lifecycle

  • Restarts: the agent restarts a crashed engine with back-off (1 s doubling to 60 s). After 5 failed starts in a row the deployment is marked failed.
  • Persistence: the agent records its deployments in <data-dir>/deployments.json and brings them back after the agent restarts or the machine reboots, without the Deployer.
  • Reconciliation: every 10 s the Deployer compares what each agent runs with what it should run. It starts deployments the node has lost and stops ones that were deleted while the node was offline.
  • Deleting a deployment removes its provider account from the workspace and stops the engine. A node cannot be disabled while it still has deployments.

Security

  • The engine listens on 127.0.0.1 only. Neither engine runs code from a model repository. The tunnel reaches nothing else on the machine: only POST /v1/chat/completions, /v1/completions, /v1/embeddings and GET /v1/models, /health, with the Content-Type, Accept and Cache-Control headers.
  • Each deployment has its own serving key (mldep_…). It reaches only that deployment, and only the inference paths above. Only its SHA-256 is stored, so the key is shown once, when the deployment is created or the key replaced. New serving key (POST /admin/deployments/{id}/serving-key) replaces it; the old key stops working within 15 seconds.
  • A deployment published in a Gateway workspace has its serving key sealed in the provider account’s credential. This needs connectors.encryption_key on the Deployer; direct serving does not.
  • START_DEPLOYMENT and STOP_DEPLOYMENT can only be issued by the Deployments API, not through the generic commands endpoint.
  • Request bodies are limited to 8 MiB.

Configuration

The three addresses can also be set with the DEPLOYER_PUBLIC_URL, DEPLOYER_SERVING_URL and DEPLOYER_ADVERTISE_URL environment variables, which apply when the config file leaves them empty. Set DEPLOYER_PUBLIC_URL when the Deployer sits behind a proxy or load balancer that does not pass X-Forwarded-Proto and X-Forwarded-Host. Direct serving works with no Gateway configured and with DEPLOYER_SERVING_URL unset. With several Deployer replicas, a request has to reach the replica that holds the node’s connection. Set advertise_url on each replica so the one that receives a request can forward it. Without it, a request that lands on the wrong replica gets 503 node_on_other_replica.

API

The response is the deployment, with endpoint, served_model, published and, this once, serving_key. Add "workspace_id": "…" to also publish it in that Gateway workspace (the response then has published: true and gateway_model). A request without target_type is a Kubernetes deployment, exactly as before. If engine is omitted, the recommended engine is used.