Skip to content

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.

Terminal window
# Local: Ollama / DGX
export 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: OpenAI
export 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.

VariableCanonical forNotes
MUSTER_ENDPOINTskills, sop, crosslayer, tools, heartbeat, memory-utilizationCanonical endpoint base URL
MUSTER_BASE_URLSame readers as MUSTER_ENDPOINTDeprecated alias supported through v1.2.x. When selected, it emits a one-line stderr notice. MUSTER_ENDPOINT wins silently when both are set
MUSTER_MODELSame readers as MUSTER_ENDPOINTDefaults 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 behaveRead at call time only, never logged
--base-url / --model flagsbehave run, memory run --behavioral, memory-utilization runbehave overrides its manifest endpoint; memory defaults to local Ollama; memory-utilization gives the flags precedence over the environment
MUSTER_A2A_ENDPOINT / MUSTER_A2A_TOKENBase URL and optional bearer token for A2A live probesUsed 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.

There is no single exit-code rule — read this per adapter:

SituationMost suites (check, resolve, cts, memory, heartbeat, a2a static, crosslayer, skills, sop, tools)behave / a2a behavioral
All cases pass, or all skipped00
At least one case fails11
Every run of every case errors (endpoint unreachable for the whole run)1 — an ordinary failed run, no special case2 — a deliberate execution-fault code
Manifest unreadable / invalid22
Unexpected internal error22

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:

Terminal window
MUSTER_ENDPOINT=http://127.0.0.1:9/v1 muster skills run examples/skills/manifest.yaml
echo $? # 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/v1
echo $? # 2

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.