Skip to content

Boxes, nodes and machines

moor has three words for where work happens. A Box is the work. A node is where a Box runs. A machine is a computer a person paired with moor. This page explains how they relate and why they are split that way.

A Box

A Box is one piece of work on one repo. It has:

  • two Docker containers on a node, with their own disk, processes, and ports
  • a branch, moor/ID-NAME, which the agent pushes to
  • an agent session, a real Claude Code session in a terminal inside the Box
  • a Proxy on the host that adds its user’s secrets to its requests

The id in the branch name means a reused Box name never shares a branch with an earlier Box. To continue earlier work, start from that Box’s branch with base.

A Box moves through these states:

flowchart LR
S[starting] --> U[setting up] --> W[working]
W --> N[needs you] --> W
W --> I[idle] --> A[asleep] --> W
U --> F[setup failed]
I --> C[closed]
A --> C
F --> C

An idle Box sleeps after box.sleep_after, five minutes by default. Sleep stops the Box’s containers, which frees the host’s memory. A message from any front wakes it, and the agent resumes its Claude session on the same work tree. Processes that ran in the Box start again. A Box stays in every list while it sleeps, and only a person closes it.

A node

A node is a place that runs Boxes. It is a host whose machine agent makes Docker Boxes.

A node has no cap on its Boxes by default. Free memory and memory pressure decide whether another Box starts, and a start that does not fit waits. You can set a cap and labels on a node in the portal’s Machines section, with moor node set, or with the set_node_settings tool. The Machines section also shows each node’s load. A change applies to the next start, and raising or removing a cap starts the Boxes that were waiting. The cap is a decision of moor, not of the machine, so the agent has no flag for it.

  • A shared node is a machine an operator adds with moor node add. Every user may use it, and a start that names no node lands there when the user has no personal node. It suits a team’s server.
  • A personal node is a machine its owner paired with a runtime. Only its owner’s Boxes run there. It is online while the machine’s agent is linked.

A personal node exists so that a teammate can lend their own hardware to their own work, with no admin step. Nobody else’s Box can land on it, so pairing needs no approval. The cost is that an offline machine fails its owner’s start, rather than quietly sending the Box elsewhere. Every front shows node state before a start, so the failure is not a surprise.

A machine

A machine is a computer that runs moor-machine-agent and is paired with one person. The agent dials out to moor and keeps a link open, so the machine needs no open port and moor never logs in to it.

A machine serves one of two roles:

  • By default, it is a personal node and hosts its owner’s Boxes in Docker.
  • With --allow-exec, it is a tool machine. It hosts no Boxes. A Box borrows a slot on it to build and run what a Box cannot, such as an iOS simulator. Machine tools covers how.

The two roles are separate because they trust the machine differently. A personal node runs code only inside containers, and each Box’s work place is a privileged one, so run it where its owner may be root. A tool machine runs commands as its owner, so it does so only when the owner passed --allow-exec.

Who owns what

A Box acts for the person who started it. Only that person and the operator on the controller host can see or change it. Anyone else gets not your Box, which is also the answer for a Box that does not exist. Box names are global, so two people cannot open Boxes with the same name at once.