Operator guide to muster's CLI
muster ships eleven runnable commands today: check and resolve (single
Soul.md document) plus nine <layer> run <manifest> suites (cts, behave,
memory, heartbeat, a2a, crosslayer, skills, sop, tools). Every
one of them is provider-agnostic — the same invocation works unchanged
whether the endpoint is a local Ollama/DGX box, an NVIDIA NIM deployment, or
a hosted OpenAI-compatible API. Only the environment variables you export
beforehand change.
Bring your own model
Section titled “Bring your own model”# Local: Ollama / DGXexport MUSTER_ENDPOINT="http://localhost:11434/v1"export MUSTER_MODEL="qwen2.5:7b-instruct"
# Hosted: NVIDIA NIM (or any OpenAI-compatible provider)export MUSTER_ENDPOINT="https://integrate.api.nvidia.com/v1"export MUSTER_MODEL="meta/llama-3.1-8b-instruct"export MUSTER_API_KEY="nvapi-..." # env only; never a flag or file
# Hosted: OpenAIexport MUSTER_ENDPOINT="https://api.openai.com/v1"export MUSTER_MODEL="gpt-4o-mini"export MUSTER_API_KEY="sk-..."Static cases run offline. To keep skills run, sop run, tools run, and
heartbeat run static-only, unset both MUSTER_ENDPOINT and MUSTER_BASE_URL.
Use crosslayer run --static-only to skip behavioral cases even when a
manifest or the environment supplies an endpoint. behave run and
memory-utilization run always run behavioral cases.
The env-var matrix
Section titled “The env-var matrix”| Variable | Canonical for | Notes |
|---|---|---|
MUSTER_ENDPOINT | skills, sop, crosslayer, tools, heartbeat, memory-utilization | Canonical endpoint base URL |
MUSTER_BASE_URL | Same readers as MUSTER_ENDPOINT | Deprecated alias supported through v1.2.x. When selected, it emits a one-line stderr notice. MUSTER_ENDPOINT wins silently when both are set |
MUSTER_MODEL | Same readers as MUSTER_ENDPOINT | Defaults to gpt-4o-mini for skills, SOP, and crosslayer, gpt-4o for tools, default for heartbeat, and llama3.2 for memory-utilization. |
MUSTER_API_KEY (fallback OPENAI_API_KEY) | Every behavioral/live path, including behave | Read at call time only, never logged |
--base-url / --model flags | behave run, memory run --behavioral, memory-utilization run | behave overrides its manifest endpoint; memory defaults to local Ollama; memory-utilization gives the flags precedence over the environment |
MUSTER_A2A_ENDPOINT / MUSTER_A2A_TOKEN | Base URL and optional bearer token for A2A live probes | Used by a2a run for live cases. Legacy manifests with live case classes use these names directly. Manifests with kind: behavioral default to these names and can override them with endpoint.env and endpoint.token_env. |
Per-adapter exit codes
Section titled “Per-adapter exit codes”There is no single exit-code rule — read this per adapter:
| Situation | Most suites (check, resolve, cts, memory, heartbeat, a2a static, crosslayer, skills, sop, tools) | behave / a2a behavioral |
|---|---|---|
| All cases pass, or all skipped | 0 | 0 |
| At least one case fails | 1 | 1 |
| Every run of every case errors (endpoint unreachable for the whole run) | 1 — an ordinary failed run, no special case | 2 — a deliberate execution-fault code |
| Manifest unreadable / invalid | 2 | 2 |
| Unexpected internal error | 2 | 2 |
The muster CLI contract (contracts/cli.md) describes the endpoint-fatal
case as a uniform exit-2 rule. behave and a2a implement it; skills and
sop do not — that divergence is tracked as a recorded gap (RG-007), not
silently harmonized away here. Demonstrated together against the same
unreachable address:
MUSTER_ENDPOINT=http://127.0.0.1:9/v1 muster skills run examples/skills/manifest.yamlecho $? # 1
MUSTER_ENDPOINT=http://127.0.0.1:9/v1 muster behave run examples/behave/manifest.yaml --base-url http://127.0.0.1:9/v1echo $? # 2Planned, not yet implemented
Section titled “Planned, not yet implemented”PLANNED — tracked at M4 (MOES-Media/spec-kitty#24) and M6 (MOES-Media/spec-kitty#25). None of the paths below are runnable from this repo.
conformance/skprofile/**, conformance/crosslayer/manifest.yaml,
conformance/behavioral/profiles|directives/*.yaml, and
conformance/skills/behavioral-manifest.yaml do not exist yet in the sibling
spec-kitty-conformance repo. Two related paths, conformance/skills/manifest.yaml
(54 fixtures) and conformance/doctrine/*.yaml (13 directive manifests), do
exist there today — but are not muster-repo examples and are not wired into
examples/** here, a third category distinct from “planned.”
See the full operator guide in the repository for every command’s exact invocation and citation, and muster’s CLI reference for the flag-level detail.