Skip to Content
ConceptsMachines

Machines

A machine is a computer running the cmdop program. Agents call tools on it; the machine decides whether each call may run, and runs it.

What a machine is

  • One program, on the computer. cmdop run keeps the machine online; on a Mac the CMDOP app starts it at login. macOS and Linux are supported; Windows is not.
  • It connects out. The machine connects to its contour’s address; it opens no inbound port. While it is offline, calls to it fail and its tasks keep their output until it is back.
  • It runs tools as its user. Every tool runs with the rights of the user account that runs cmdop: an agent with exec can do what that user can, and no more.
  • It enforces its own limit. The ceiling lives in a file on the machine and nothing on the hosted side can raise it. The machine also keeps its own record of the calls it ran (the record).

Names and ids

A machine has an id and a name. The name comes from machine.json or the host name, and is what the page, machines_list and the machine argument of every tool use. A tool call may leave machine out when only one machine is online.

Online and offline

StateCallsTasks
onlinerunrun; you can read and stop them
offline (the computer sleeps, the network drops)failkeep running on the machine; read them when it is back
the cmdop program stops or restartsfailare stopped and listed as lost
paused by the owneranswer pausedare stopped

Contours · Add a machine · machine.json