Deploy and connect agent-runtime
Connecting a server, cloud instance or edge node to OrbitSpace requires an execution identity, a running Worker or Runtime Host, and verification of the actual task route. Start with a single Docker node; use the separate Kubernetes guide for cluster deployment.
Choose the node role
| Mode | What runs on the node | Typical use |
|---|---|---|
| Worker + Host | A Worker drives Codex and embeds a Host in the same process | One managed execution machine; verify inference before adding tools |
| Worker only | The engine coordinator sends managed resource operations to a remote Host | Kubernetes coordinators or centralized Workers |
| Host only | Receives authorized resource operations and manages local workspaces and sandboxes | Edge devices, dedicated Docker or VM execution machines |
Worker and Host can share a machine or run separately. A Host-only node does not consume the task queue or configure a model Key. Workers use platform model routes; model credentials remain in platform Secret management.
The node's native, docker or kubernetes deployment mode describes how its process is deployed, not the task sandbox provider. A Kubernetes Worker does not automatically create a Pod for every task.
Prepare networking, images and storage
Obtain these settings from the platform operator. Do not infer internal addresses from the public API origin.
| Setting | Worker | Standalone Host |
|---|---|---|
| Control Plane gRPC endpoint and protected transport | Required | Required for identity and heartbeats |
| NATS endpoint, authentication and authorized event scope | Required | Not required |
| Model gateway and artifact endpoint connectivity | Allow the configured routes | Allow endpoints required by the resource protocol |
| Managed Worker-to-Host route | Required for Worker-only mode | Provide a private or supported tunnel route |
| Persistent disk | Engine state, workspace and caches | Resource state, workspace and caches |
The public HTTP API and internal gRPC are separate entry points. https://api.orbitspace.dev serves application APIs; that does not establish that it serves Runtime gRPC. The current Runtime gRPC client uses h2c; direct HTTPS/TLS is not enabled in the published client configuration. Use an operator-protected private endpoint, or terminate an encrypted tunnel/proxy before the client-facing h2c hop. Do not send node credentials over an unprotected public connection. NATS belongs to the trusted execution network and must not be exposed to product browsers or end users.
Use an operator-approved OCI image, such as a fixed digest from ghcr.io/orbitmesh-official/orbitspace/agent-runtime. Obtain the actual @sha256:… reference, supported architecture and registry access. The image contains the Worker, enrollment CLI, remote Host and Codex bridge. Language toolchains, browsers and domain tools come from approved task images and capability configuration.
Create an enrollment credential
In the Console's Runtime area, choose a deployment pool and connect a node. Set the role, stable node IDs, deployment mode and capabilities. Give every instance its own ID; never run two processes with the same Worker or Host identity.
A deployment pool records desired configuration and capacity. Operators deploy manual pools; Kubernetes and external modes require their corresponding deployment controller. Creating a pool alone does not create cloud instances or Kubernetes workloads.
Enrollment credentials normally expire after 15 minutes and can only be consumed once. Issued node credentials have a separate lifetime; check their actual expiry in the Console. An enrollment code expiring does not disconnect an enrolled node. Revoking a code, rotating a node credential, cordoning and retiring are different operations.
Run the enrollment CLI from the image
Run this from Bash on a controlled Linux execution machine. The commands use sudo docker because the enrollment output and environment files are restricted to the runtime user; a regular Docker-group user cannot read those host files directly. Set the approved image and gRPC endpoint first; these variables contain no model Key.
export RUNTIME_IMAGE='ghcr.io/orbitmesh-official/orbitspace/agent-runtime@sha256:REPLACE_WITH_APPROVED_DIGEST'
export RUNTIME_GRPC_URL='http://CONTROL_PLANE_PRIVATE_ENDPOINT:9000'
sudo install -d -o 65532 -g 65532 -m 0700 /etc/orbitspace/node-01
read -r -s -p 'One-time enrollment token: ' ENROLLMENT_TOKEN; echo
sudo docker run --rm --user 65532:65532 \
--entrypoint /usr/local/bin/orbitspace-runtime \
--mount type=bind,src=/etc/orbitspace/node-01,dst=/etc/orbitspace \
"$RUNTIME_IMAGE" enroll \
--control-plane "$RUNTIME_GRPC_URL" \
--token "$ENROLLMENT_TOKEN" --output /etc/orbitspace
unset ENROLLMENT_TOKENThe CLI currently accepts --token, not --token-file. Interactive input avoids storing the value in shell history, but it is briefly present in process arguments. Use a controlled node and do not log expanded commands.
| Role | Generated configuration | Generated credentials |
|---|---|---|
| Worker + Host / Worker only | worker.env | secrets/worker-token |
| Host only | remote-runtime-host.env | secrets/control-plane-token and secrets/remote-runtime-token |
enrollment.json contains a non-secret enrollment summary. Files have restricted permissions; do not repeatedly redeem credentials to overwrite an existing directory. The Host's remote-runtime-token authenticates the Worker-to-Host resource protocol and is separate from the platform-issued identity credential.
Start the first Worker + Host
Download the additional environment template as worker-extra.env in the node directory. Preserve the CLI-generated IDs and gRPC address. codex/openai must match the Agent Model Profile's engine/provider pair; it does not stand for any arbitrary route.
Write the complete operator-provided NATS connection setting to nats.env in that directory as ORBITSPACE_NATS_URL=…, readable only by the runtime user. The URL may contain authentication material; do not place it in a public ConfigMap, ticket or log.
sudo docker volume create orbitspace-node-01
sudo docker run -d --name orbitspace-node-01 --restart unless-stopped \
--user 65532:65532 --read-only \
--cap-drop ALL --security-opt no-new-privileges \
--cpus 2 --memory 2g --pids-limit 512 \
--tmpfs /tmp:rw,nosuid,nodev,size=256m \
--env-file /etc/orbitspace/node-01/worker.env \
--env-file /etc/orbitspace/node-01/worker-extra.env \
--env-file /etc/orbitspace/node-01/nats.env \
--mount type=bind,src=/etc/orbitspace/node-01,dst=/etc/orbitspace,readonly \
--mount type=volume,src=orbitspace-node-01,dst=/var/lib/orbitspace \
-p 127.0.0.1:9100:9100 "$RUNTIME_IMAGE"
curl --fail http://127.0.0.1:9100/readyzThis starting configuration does not mount a Docker socket. Run an inference-only task in an environment with no bound tools to check identity, queue and model routing. A healthy process does not establish tool availability: configure a managed Tool Executor or the remote Runtime route below, and admit the environment, capabilities and task image.
Worker-only nodes and remote Hosts
Worker-only enrollment requires a remote Runtime. Resource ID, endpoint ID and Host ID must identify the same approved resource endpoint, not a workspace.
ORBITSPACE_REMOTE_RUNTIME_RESOURCE_ID=REVIEWED_RESOURCE_UUID
ORBITSPACE_REMOTE_RUNTIME_ENDPOINT_ID=REVIEWED_ENDPOINT_UUID
ORBITSPACE_REMOTE_RUNTIME_HOST_ID=STABLE_HOST_ID
ORBITSPACE_REMOTE_RUNTIME_DIRECT_ADDR=PRIVATE_HOST:9300
ORBITSPACE_REMOTE_RUNTIME_PROFILE=native
ORBITSPACE_REMOTE_RUNTIME_TOKEN_FILE=/run/orbitspace/remote-runtime-tokenThese settings use private direct connectivity. OrbitMesh transport needs its own route and endpoint settings; do not assume both transports simultaneously. Distribute the Host protocol credential only to authorized Workers.
For a standalone Host, use the same image with entry point /usr/local/bin/orbitspace-remote-runtime-host and the generated remote-runtime-host.env. Set ORBITSPACE_CONTROL_PLANE_TOKEN_FILE and ORBITSPACE_REMOTE_RUNTIME_TOKEN_FILE to its two credential files. Set ORBITSPACE_REMOTE_RUNTIME_WORKSPACE_ROOT and ORBITSPACE_REMOTE_RUNTIME_STATE_ROOT on persistent storage. The resource service defaults to port 9300, and health to 9301. Restrict the resource port to authorized Workers.
Native systemd deployment requires an operator-installed binary set and dependencies matching the published image version; there is currently no public one-command Native installer. Use dedicated users, LoadCredential, persistent StateDirectory and a restart policy instead of putting credentials in a service command line.
Choose task isolation
| Provider | Additional requirements |
|---|---|
| Native | Actual host tools; hard limits require delegated cgroup v2 CPU/memory and ORBITSPACE_NATIVE_RESOURCE_CONTROL=required |
| Docker | Docker daemon on a dedicated execution node, approved immutable images and resource/network/mount policies |
| VM | A configured VM provider, guest image, virtualization support and lifecycle configuration |
A standalone Host enables Docker with ORBITSPACE_REMOTE_RUNTIME_ENABLE_DOCKER=true, optionally disabling Native with ORBITSPACE_REMOTE_RUNTIME_ENABLE_NATIVE=false. Its ORBITSPACE_DOCKER_* settings include PROFILES, IMAGES, DEFAULT_CPU_MILLIS, MAX_CPU_MILLIS, DEFAULT_MEMORY_BYTES, MAX_MEMORY_BYTES, PIDS_LIMIT and ALLOW_NETWORK. An embedded Host uses ORBITSPACE_CONTAINER_*; do not mix these prefixes.
The Docker daemon must see the real workspace bind paths. A container path may not exist on the daemon's host; host Docker requires explicit path mapping and permission review. Docker socket access grants substantial host authority and is unsuitable for a general application Pod. Pod CPU/memory limits also do not replace per-task sandbox enforcement.
Verify and operate the node
Check /livez and /readyz, Console heartbeat and identity, Worker model routing, actual Host capabilities, then a real task's Host/profile and artifacts. A restored heartbeat does not automatically remove a manual cordon.
For upgrades, cordon new scheduling, wait for runs and reservations to drain, replace the image, then verify. Rotate node credentials through the platform, confirm the new credential works, then revoke the old one. Do not enroll a second live process with the same ID as an upgrade shortcut.
Set separate retention policies for workspaces, engine history, artifacts and build caches. Never reclaim disk by deleting active directories. See Kubernetes deployment for node identity, Secrets and PVCs.