Skip to content
Get started

Get started

docs.waldiez.io • November 28, 2026

The fastest way to get started — no repo clone or Python needed. See the dedicated guide:

→ Quickstart: Docker Hub

The image comes in two sizes: waldiez/wactorz:latest , and waldiez/wactorz:ultra with PyTorch, Ultralytics, OpenCV and what the Reachy Mini SDK needs. Which image says when the larger one is the one to pull.

Full Docker ( compose.yaml )

Docker + Compose plugin

LLM_API_KEY (Anthropic / OpenAI) or a local Ollama instance

Open (monitor UI) or (REST API).

Compose builds the image from the checkout. For vision agents or the Reachy Mini agent, build the larger one ( which image ) by setting WACTORZ_FLAVOUR=ultra in .env , then:

Both ask for the API key. With API_KEY blank in .env , the stack generates one on first start and keeps it in a volume. Read it with docker compose exec wactorz-python cat /run/wactorz/api_key , or follow the one-time sign-in link in docker compose logs wactorz-python . Set API_KEY in .env to choose your own.

Default profile (no flag) starts Mosquitto only. Add --profile flags to bring up more services.

Every port except the broker's TLS one is published to this host only. Reach the dashboard and the API from elsewhere through a TLS proxy; HA_EXTERNAL_BIND=0.0.0.0 opens Assistant to the network, and MQTT_EXTERNAL_BIND=0.0.0.0 the plain broker port.

Each container has a ceiling on memory and on process ids, so one that leaks is restarted instead of exhausting the host. The app's are settings, because what an agent loads varies: WACTORZ_MEM_LIMIT (default 8g ), WACTORZ_PIDS_LIMIT ( 4096 , threads included) and WACTORZ_CPUS (cores; 0 , the default, is no limit). An app container that restarts under a heavy agent, with OOMKilled in docker inspect , needs WACTORZ_MEM_LIMIT raised. Assistant's container has none.

Code the model writes runs in a container of its own, holding none of main's credentials: wactorz-sandbox starts with the app, under the python , full and sandbox profiles, and main sends the model's code there once it reports. WACTORZ_MODEL_CODE_NODE=main in .env keeps the code on main instead, and leaves the sandbox container idle.

sandbox-env , a one-shot, writes the node what /deploy writes any node: its name, the broker, its signing key and broker account, and the CA with TLS. It writes them into a volume that only wactorz-sandbox mounts. It runs again on every docker compose up , so after the broker's CA or the node's account changes, docker compose --profile python --profile sandbox up -d hands the node the new ones. The sandbox container mounts neither .env nor ./state , and its network has the broker on it and nothing else, so main's API and Assistant are out of its reach. The packages its agents install go into its own volume. It is limited by WACTORZ_SANDBOX_MEM_LIMIT (default 2g ) and WACTORZ_SANDBOX_PIDS_LIMIT ( 1024 ). See a node on main's own machine for what goes there and what stays on main.

Both servers answer the same probes, with no key:

/health (also /healthz , /livez ) is liveness . It fails only when the process cannot answer, which is what the compose files and the image's HEALTHCHECK restart on.

/ready (also /readyz ) is readiness . It answers 503 while the agents start or stop, and while the broker or the database is unreachable.

On Kubernetes, point each probe at its own path, and give liveness a start period that covers startup:

Never use /ready for liveness. A broker outage would then restart every replica in a loop, and restarting fixes nothing the broker's return would not. See the API reference for what each check means.

Assistant add-on

Use the add-on when Wactorz should run inside Assistant OS or a Supervised Assistant install. The add-on uses prebuilt multi-arch images from GHCR, so Supervisor updates pull an image instead of building Wactorz on the device.

See ha-addon/wactorz/README.md (or ha-addon/wactorz-ultra/README.md for the ML variant) for install and local testing details.

Environment variables

See .env.template for the full annotated list. The most important ones:

Backing up and moving an install

wactorz-state writes a state directory to one archive, and puts one back:

Both read WACTORZ_STATE_DIR as the server does; --state-dir names another directory.

What it holds: the database, each agent's state file and blobs, uploads, the models kept with wactorz-artifacts , the install's id, the nodes' SSH host keys and, unless --no-secrets is given, the install's keys: node_signing.key , which every node checks main's messages against, and the broker's TLS keys in mqtt_tls/ . With them, a restored install carries on as before; without them it makes new ones, and every node has to be deployed again. An archive with keys is written readable by its owner only, and is to be kept like the keys.

What it leaves out: logs, the MQTT outbox (what it holds would be stale by the time it was restored), dashboard sign-in sessions, files part way through being written or received, files moved aside as unreadable, and directory artifacts as unpacked for agents to read, which are unpacked again from the archive kept beside them.

Export while it runs. The database is copied with SQLite's own backup, consistent however busy it is, and every other file is replaced in one step whenever it is written. What was persisted in the last second may be missing.

Import with it stopped. A running server or node holds a lock on its state directory, and an import refuses while it is held; so does a second server started on the same directory by mistake. Import refuses a directory with anything in it unless --replace is given, which keeps what was there beside it as .before-import- - .

An archive is code. Agents' state files are pickles, unpickled when the system starts: importing an archive runs whatever its maker put in it. Import only archives you made. Import checks that an archive holds exactly the files its manifest lists, each matching its SHA-256, at a path inside the directory, which catches a damaged archive, not a forged one.

A node's state is moved the same way, on the node: wactorz-state export --state-dir ~/wactorz/state , and an import there with the node stopped. The Assistant add-on's state is in /data/state , which Assistant's own backups already include.

wactorz-artifacts keeps models and other large files that agents load, each under a name and a version:

A name and a version name one file. Each add of a name is its version. A reference is NAME:3 for the third version, NAME:latest for the newest, NAME:active or NAME:shadow for the version a pointer names, or NAME alone for the active version, which is the newest until one is marked active; each resolves to the file's SHA-256, so what a machine fetches can be checked against it. The same bytes, under any names, are kept once.

Two pointers say which version is served and which is on trial. activate NAME:V marks the version agents get when they name the model without a version; a new version stored after that changes nothing until it is activated, and going back is activating the earlier one again. shadow NAME:V marks one to run beside it, on the same input, acted on by nobody; promote NAME makes the shadow active and clears shadow . A move records who made it and --reason why, and list and show say where the pointers stand. Pointing shadow at the active version is refused, as is moving a pointer to where it is. With no version active the newest is the one served, so a shadow on the newest starts no trial (there is nothing to try it beside): the agents keep no pairs, and the Models tab says to make another version active; a version a pointer names cannot be removed until the pointer is moved; remove NAME --every-version takes the pointers with the name. An agent that named the model, or NAME:active , follows the pointer: restarted after a move, it is pinned to where active stands then; one that named a version, or latest , keeps what it ran. docs/design/model-pointers.md records the decision, and the rest of the model loop builds on it.

What was said of a version reaches its agent. --meta KEY=VALUE (repeatable; a value that reads as JSON is kept as JSON) is kept with the version and goes wherever the version does: an agent reads it as me.artifacts[key]["metadata"] (or agent.artifacts in a program), on main or on a node, and a shadow pass sees the version on trial's. It is for what an agent reads, a threshold, a calibration constant, the dataset's name, and cannot change once stored: a new threshold is a new version. Since it travels in every spawn that names the version, add refuses more than 64 KiB of it, as JSON; a model card belongs inside the artifact.

A version says what it is judged on. --positive VALUE (repeatable) names the label values that count as what the model should flag: a fault an operator confirmed, a label an agent wrote. A trial then judges both sides against the labels without being asked, each input against the labels of its own source (the device or topic it came from), or of the one source --label-source names. A version added without it takes the version's; judge NAME:V sets or changes it on a stored version, and --clear removes it, each change kept with who made it and when. In chat: /artifacts judge NAME:V fault,bearing [label source] , or none . The judged figures -- precision, recall, F1, the false-positive rate, false alarms per day, faults caught and how soon, the Matthews correlation, each rate with its 95% interval, and whether the two sides really differ -- are in the Models tab's trial card, GET /api/models/NAME/trial and the outcome written when a trial ends. That is a detector , the default --kind : it flags an input by publishing something for it. A classifier answers with a class in one field of its output, named with --field , and is right when that is the label's value; an input it published nothing for, or no class in the field, counts as wrong and as no answer. Its figures are accuracy with its interval, precision, recall and F1 per class, their macro and weighted means, and the confusion of labels against answers. A regressor answers with a number in its --field , held against the label's value read as a number (a label that is not one is left out and counted): the mean absolute error, the RMS error, the bias and the worst error, and which side was nearer the truth more often, with a sign test saying whether that could be chance. Chat sets only a detector; the other kinds are declared with wactorz-artifacts .

A version trained inside the loop says what it learned from. The trainer library agent and wactorz-train store the versions they make with the recipe's hash, the seed and settings, the window and split, the figures on the held-out rows, and data , the windows of readings the retention sweep keeps for it ( docs/design/train-step.md ); show NAME:V prints them. Such a version inherits what the one is judged on.

A policy says when the shadow becomes active. policy NAME --metric f1 --margin 0.02 --min-days 1 --min-labelled 100 --significant --manual sets when main may promote the shadow ( docs/design/promotion-policy.md ): the trial's figure on the metric must beat the active version's by the margin, over at least that many days and labelled inputs, with the difference not chance; what is not said keeps what was set, else the default. With no --metric , the trial is compared on the main figure of the kind it is judged as: f1 for a detector, macro_f1 for a classifier, mae for a regressor (less is better, as for false_positive_rate and rmse ), and a regressor's difference is tested by the sign test on which side was nearer the truth. A metric the kind does not report is never met, and the trial card says which it does. With --automatic main promotes as policy when every term is met; with --manual , the default, it asks on the dashboard, and the answer promotes or clears the shadow. --clear unsets it; show prints it. In chat: /artifacts policy NAME margin=0.02 automatic=yes , or none . The Models tab's trial card shows each term met or short.

Every machine hears a move. Main publishes where each pointer stands, retained, on models/NAME/active and models/NAME/shadow : the pointer as the store keeps it, or an empty payload when it is unset. Everything is published when main starts, and a move made beside it by wactorz-artifacts reaches the broker at main's look at the index, a few seconds later; one made in chat is published at once. Each move found is a line on the activity feed. The topics are main's to publish: a pointer is moved through the store or through main, never by writing there.

The format comes from the file's ending : .onnx , .safetensors , .npz , .npy , .gguf , .tflite , .skops . --format names it where the ending does not say, as for a .pt , which may hold a state_dict or a whole module; raw keeps bytes as they are. A state_dict may be a whole checkpoint, the weights beside numbers and numeric numpy arrays (a normalisation, a threshold); where torch is installed add reads it as an agent will and refuses one that would need code to load, and where it is not, says the file went in unread. A directory is kept as one archive of it, written the same way on every machine, so the same directory has the same hash wherever it is added; a link inside it is refused.

Formats that run code when they load are refused unless --allow-code is given: a pickle ( .pkl ), a joblib file and a whole torch module ( --format torch ). One stored anyway is marked as running code.

Where: /..artifacts/ , beside the rest of the state, in what wactorz-state export writes. --state-dir names another state directory. Adding and removing work while the server runs.

In chat. /artifacts lists what is kept, and /artifacts every version of one. /artifacts activate [reason] , /artifacts shadow [reason] , /artifacts promote [reason] and /artifacts clear active|shadow [reason] move the pointers as the command does, recorded as made from chat; a social channel may list but not move. Main's model is given the same list on each turn, with the active and shadow version of each model, and so is the planner when a request becomes a pipeline, so asking for an agent that uses a model ("flag IMU readings far from normal with the imu-detector model") gets one that names it, and the one being served. Main's model has no way to move a pointer: serving a model is the operator's decision, or a deployed program's.

On the dashboard. The Models tab lists every stored model, saying which is serving a version, which is trying one beside it ("on trial") and which has none active, and opens one at #/models/ : its versions along a line with the active, the shadow and the active marked, a table of versions with what was said of each, and the history of its pointer moves, each with who made it and why. From there a version is tried as shadow, the shadow or cleared, and the active rolled back to the version it replaced; each move asks first and takes an optional reason, recorded as made from the dashboard. A pointer moved anywhere else (the CLI, chat, an agent) shows there within seconds. Making a version active directly is left to the CLI and chat: from the dashboard a version is served by being tried first.

Which store. Every wactorz-artifacts command says which store it used, and add warns when it had to make a new state directory: the default is ./state in the folder it runs from, which is Wactorz's own only when run from where Wactorz runs. Pass --state-dir , or set WACTORZ_STATE_DIR for both.

In an agent. A generated or catalogue agent names artifacts in its spawn config, "artifacts": {"model": "imu-detector:3"} , and its program opens one with agent.artifact_path("model") : the file, or for a directory the directory it unpacks to, once, in /..unpacked-artifacts/ (left out of an export, and unpacked again when needed). A spawn on main that names an artifact that is not stored is refused.

On a node. Main pins each artifact to the version and the bytes it means when the spawn goes out — imu-detector alone means the newest then — and keeps that pinned form, so the agent restarted or moved later runs the same model. The node keeps what it fetches in /..artifact-cache/ across restarts, asks main only for what it lacks, and starts the agent once every file is there and matches its SHA-256; one that does not arrive leaves the agent unstarted, and a migration is put back where it was. Main sends a node only the artifacts an agent placed on it names. A spawn naming an artifact that is not stored, or one over WACTORZ_ARTIFACT_MAX_BYTES , is refused before anything is sent.

Wactorz reaches remote machines over SSH when bootstrapping an edge node with /deploy . Key auth is preferred over a password — generate a dedicated deploy key:

Then point the node's deploy target at it in .env :

Credentials are read from here and never from chat — /deploy takes a node name and nothing else. Host keys are verified on every connection, learned on first unless DEPLOY_STRICT_HOST_KEYS=1 . Full details in Remote nodes .

Updating Assistant integration

Wactorz can send REST commands to Assistant and receive automations.

Set HA_URL and HA_TOKEN in .env .

Connecting to an existing Assistant instance

If you already have Assistant running (in Docker or elsewhere), point Wactorz at it via .env :

Then start only the Wactorz stack (no embedded HA):

The full profile ( docker compose --profile full up -d ) starts a fresh Assistant container alongside Wactorz on the same Docker network — useful for a clean dev environment, not for connecting to an existing production HA.

Assistant OS / Supervised users — use the Wactorz HA addon instead. It runs inside the Supervisor and connects to your existing HA instance automatically.

Assistant OS / Supervised users — use the Wactorz HA addon instead. It runs inside the Supervisor and connects to your existing HA instance automatically.

Extracted Entities

Tools (1)