CLI reference
The distribution is myxos; imports and the operator CLI use myxos. From a source checkout, prefix runtime commands with uv run --no-dev to avoid installing the default contributor group. Use installation first; there is no assumption of a published PyPI package.
Operator commands
These commands run on the trusted control host, from the repository root unless paths are absolute.
| Command | Purpose |
|---|---|
myxos --version | Installed distribution version |
myxos doctor | Installation metadata and selected prerequisite plan |
myxos setup --bundle linux | Record explicit tmux/bubblewrap selection for this Python installation |
myxos auth list | Credential reference names, kinds and consumers |
myxos auth check | Local credential-source availability/format checks |
myxos prepare | Plan, apply reviewed task preparation or inspect cache readiness |
myxos run | Validate configuration, start/recover a Run or continue a Campaign |
myxos desktop | Inspect, stop or export a Mac Docker Desktop Campaign |
Inspect installation and credentials
uv run --no-dev myxos doctor --core-only
uv run --no-dev myxos doctor --config runs/campaign.local.yaml --json
uv run --no-dev myxos auth list --user-config runs/user.local.toml
uv run --no-dev myxos auth check --config runs/campaign.local.yaml --json
Doctor accepts either --config, --core-only, or component selections --harness codex|claude-code (repeatable), --sandbox docker|apptainer|podman, --compute none|local|slurm, --compute-executor docker|apptainer, with optional --observer and --json. A selectable planner value does not establish a runnable backend: Podman and Slurm report unsupported. An installed Linux bundle is inherited from its installation record; conflicting selectors fail. --user-config expands researcher profiles.
Auth commands accept --user-config, --config and --json. check can target --profile NAME and an exact --consumer (which requires --profile). They do not perform an online authentication attempt. Exit-code details live in installation and authentication.
Prepare a task
uv run --no-dev myxos prepare --config runs/campaign.local.yaml --plan
uv run --no-dev myxos prepare --config runs/campaign.local.yaml --status
Choose exactly one source (--config PATH or --task PATH) and one operation (--plan, --apply, --status). With --task, optional --resource-options PATH reads JSON and --sandbox-backend docker|apptainer selects preparation. With --config, these settings come from its task/sandbox configuration. Both paths accept --cache-root and repeatable --approve-step STEP_ID; --config also accepts --user-config. Apply may execute reviewed recipes/builds/downloads; plan does not. See task preparation.
Run or continue
uv run --no-dev myxos run --config runs/campaign.local.yaml --check
uv run --no-dev myxos run --config runs/campaign.local.yaml
uv run --no-dev myxos run --config runs/campaign.local.yaml --resume
--config is required; --user-config is optional. --check validates structure without launching research. Ordinary invocation recovers the latest unfinished Run with its original deadline. --resume creates a new Run only after previous finalization. Execution runs on Linux, directly or through the Mac Docker Desktop control profile, with prepared/runtime prerequisites. The Mac profile uses its own narrower auth/config contract. See operations and the Mac runbook.
Mac control operations
uv run --no-dev myxos desktop status --config runs/campaign.yaml
uv run --no-dev myxos desktop export --config runs/campaign.yaml --output runs/exported-campaign
uv run --no-dev myxos desktop stop --config runs/campaign.yaml
desktop requires an action (status, export, stop) and --config; export uses --output. These are trusted host operations, not Session-bound tools.
Session-bound tools
The following tools run inside a researcher sandbox with its bound transport. They inherit trusted Campaign/Run/Session identity and access, not arbitrary host paths or operator credentials. An unbound operator shell cannot use them as a remote administration API. Global --endpoint is an operator/debug override before the tool's subcommand, not a permission grant.
| Tool | Commands |
|---|---|
myxos compute | capabilities, run, status, wait, logs, outputs, fetch, cancel, list; optional leases: request, exec, release |
myxos evaluate | submit, status, result, output, cancel, publish |
myxos communication | call ACTION --json OBJECT [--request-id ID] for actions advertised by the selected bundle |
Compute run/request/exec require --request-id; executable argv follows --. Job run accepts resources such as --gpus, --duration, a relative --cwd, repeatable --env KEY=VALUE and --timeout. wait --timeout limits waiting and does not cancel the job. Use bounded logs --cursor/--limit-bytes and fetch --output PATH. Exact supported resource requests remain backend-specific. See compute.
Evaluation submit --path RELATIVE_DIRECTORY --request-id ID snapshots private research files. output ID --name NAME supports --offset and --max-bytes; other result operations take the evaluation ID. See evaluation.
The shipped shared_artifacts bundle advertises publish, list and read actions. Use explicit mutation request IDs for recoverable retries. See communication for payload fields and limits.
Compatibility publication helper
The operator CLI also exposes myxos publish for a prepared publication outbox. Inside standard shared_artifacts sandboxes the mounted helper remains available:
python /workspace/myxos/publish.py /workspace/research/notes.txt --kind notes
The helper stages a publication for reconciliation. Its printed Artifact ID must appear in the catalog before another publication can reference it as a parent. Use the bound communication action for acknowledged publication and bounded reads.
Observer
Observer is independently installed; it is not a subcommand of myxos:
uv tool install --python 3.12 ./observer
myxos-observer --db runs/kernel_builder/state.sqlite3 --workspace --port 8765
Choose exactly one source, --db PATH or --demo. --workspace enables the recorded board, --objects PATH can select its local object root, and --port defaults to 8765. Ordinary use binds loopback. --container-bind explicitly binds inside a trusted control container; publish its host port on loopback only. See Observer and the Mac runbook.
Use --help on the actual command/subcommand for parser-level syntax. Successful help or configuration output is an offline check, not runtime qualification.