> ## Documentation Index
> Fetch the complete documentation index at: https://dromeus.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# dromeus command-line reference

> Reference for the dromeus command: draft, check, doctor, run and watch, how the task option finds your code, the doctor checks, and every exit code.

Installing Dromeus provides the `dromeus` command. Each command makes one library call, so anything a command does you can also do from Python.

| Command | Does | Library call |
| - | - | - |
| `dromeus draft` | Writes the group's shared draft | `make_draft` |
| `dromeus check` | Checks a draft against your task and this machine, offline | `check_draft` |
| `dromeus doctor` | Checks that this machine is ready to run a node | |
| `dromeus run` | Joins the group and trains every round | `Node.run` |
| `dromeus watch` | Follows a node's rounds, loss and consensus distance | |

Every command accepts `--debug` to print the full traceback on error, and `dromeus --version` prints the installed version.

## Point at your task

`draft`, `check`, `run` and `doctor` take a `--task` option of the form `module:function`. Dromeus loads `module` from the current directory and calls the function with no arguments. It may return:

* the `TrainingTask`, which is enough for `draft`, `check` and `doctor`;
* `(TrainingTask, LocalData)`, which `run` needs, since a running node trains on its own records.

The [example](https://github.com/devesh1011/dromeus/blob/main/examples/custom_training.py) has both: `task()` and `setup()`.

## dromeus draft

```bash theme={null}
dromeus draft draft.yaml --task my_training:task --run-id regression-2026-11 \
  --participants 4 --rounds 20 --local-steps 10
```

| Option | Meaning |
| - | - |
| `output` | Draft YAML file to write |
| `--task` | `module:function` returning the task |
| `--run-id` | A new ID for this run |
| `--participants` | Group size: even, 4 to 16 |
| `--rounds` | Number of training rounds |
| `--local-steps` | Optimizer steps per round |
| `--axl-version` | AXL build every node runs. Defaults to the bundled AXL; required where none is bundled. |
| `--seed` | Peer schedule seed. Default `0`. |

Prints the draft hash. It uses the default NoLoCo and transport settings, without privacy or divergence warnings. For those, call [`dromeus.make_draft`](https://dromeus.mintlify.site/guides/run-a-group) from Python.

## dromeus check

```bash theme={null}
dromeus check --draft draft.yaml --task my_training:task
```

Confirms that the model, task and loss definitions in the draft match your task, and that this machine has the Dromeus and PyTorch versions the draft names. Prints the draft hash so nodes can compare it. Doesn't touch the network.

## dromeus doctor

```bash theme={null}
dromeus doctor --config node.yaml --task my_training:task
```

`--task` is optional. Doctor runs these checks and prints one line for each, with a fix for anything not `ok`:

| Check | Fails when |
| - | - |
| `config` | The node configuration is invalid. No other check runs. |
| `draft` | The draft can't be read, or names other Dromeus or PyTorch versions |
| `task` | With `--task`: the draft was made from a different task |
| `axl build` | Warning only: the draft names an AXL build other than the bundled one, or none is bundled. Doctor can't see which build the running AXL is. |
| `axl bridge` | Nothing answers at `axl_bridge_url` |
| `node key` | The AXL bridge doesn't report this node's public key |
| `peers` | No AXL peer link is up |
| `invitation` | Participants only: the invitation is invalid, for another draft or bootstrap URI, or expired. Not delivered yet is a warning. |
| `clock` | The system clock isn't NTP-synchronized. On Linux this is read from `timedatectl`; elsewhere it's a warning asking you to confirm NTP is on. |

Example output:

```text theme={null}
ok    config      examples/quickstart/node-0.yaml is valid; role initiator
ok    draft       run quickstart: 4 participants, 10 rounds
ok    axl build   draft pins AXL 628e28ace077f26dfe8d0259009b357216a9d8d4, the bundled build
ok    axl bridge  reachable at http://127.0.0.1:9201
ok    node key    public key 73afb3483b229f8a...
ok    peers       connected to 3 peer(s)
warn  clock       could not tell whether the clock is synchronized
                  fix: Make sure NTP is enabled; invitation expiry compares clocks across machines.
```

## dromeus run

```bash theme={null}
dromeus run --config node.yaml --task my_training:setup
```

Prints the run ID, committed rounds and manifest hash when the run completes. Progress goes to the node's event log; follow it with `dromeus watch`.

## dromeus watch

```bash theme={null}
dromeus watch --run-root runs/regression/node-0
```

Prints one line per event as the node writes it: formation, each committed round and each consensus distance. It waits for the log to appear and stops when the run completes or fails. `--once` prints what is logged so far and exits. See [Monitor a run](https://dromeus.mintlify.site/guides/monitoring.md).

## Exit codes

Errors print as one line on stderr. Add `--debug` for the full traceback.

| Code | Meaning |
| - | - |
| `0` | Success |
| `1` | Unexpected error: a bug, or an exception from your task code |
| `2` | Malformed command line |
| `3` | Invalid input: node configuration, draft, task or privacy settings (`ConfigError`, `DraftError`, `TaskError`, `PrivacyError`) |
| `4` | The group didn't form (`FormationError`) |
| `5` | The run failed after formation (`RunError`); also `watch` when the run failed |
| `6` | `doctor` found a failing check |
| `130` | Interrupted with Ctrl+C |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.