Environment variables

Environment variables

Variables muster sets for your hooks, and the ones you can set to change how muster behaves.

Set by muster for hooks

MUSTER_SERVICE_NAMEstring
Display name of the service, e.g. API Server.
MUSTER_DEPLOY_TIMEOUTsecondsdefault 120
deploy_timeout from muster.json.
MUSTER_DEPLOY_MODEstring
deploy_mode from muster.json, when set.
MUSTER_DEPLOY_VERSIONstring
Version label: --version, else the git tag or SHA.
MUSTER_IMAGE_TAGstring
Tag to build and push. Rolling: $IMAGE_TAG or latest. Blue-green / canary: a unique tag (the version), since both run side by side.
MUSTER_STRATEGYstring
rolling, blue-green or canary.
MUSTER_DEPLOY_STATUSstring
Outcome for post-deploy and skill hooks: success, failed or skipped.
MUSTER_CRED_<KEY>string
One per credentials.required entry, uppercased. Read from the environment first, so CI can set it.
MUSTER_LOGS_TAIL / MUSTER_LOGS_FOLLOWnumber / 0|1
For the logs hook, from muster logs --tail / --follow.

Git

MUSTER_GIT_COMMITsha
HEAD being deployed.
MUSTER_GIT_PREV_COMMITsha
Commit of the last successful deploy.
MUSTER_GIT_COMMIT_COUNTnumber
Commits between the two.
MUSTER_GIT_DIFF_SUMMARYstring
git diff --shortstat between the two.

Kubernetes and rollouts

MUSTER_K8S_DEPLOYMENTstring
k8s.deployment. During a blue-green / canary deploy it points at the candidate.
MUSTER_K8S_NAMESPACEstring
k8s.namespace.
MUSTER_K8S_SERVICEstring
Service key with underscores turned into hyphens (api_v1 → api-v1).
MUSTER_K8S_TRAFFIC_SERVICEstring
k8s.service: the Service that carries traffic, when set.
MUSTER_TARGET_DEPLOYMENTstring
Rollouts: the Deployment to update, e.g. acme-api-canary.
MUSTER_K8S_BASE_DEPLOYMENTstring
Rollouts: the Deployment named in muster.json.
MUSTER_ROLLOUT_TRACKstring
Rollouts: the track being deployed (canary, blue, green).
MUSTER_STRATEGY_TRAFFICstring
Rollouts: service-selector or replicas.
MUSTER_K8S_CONTAINERstring
k8s.container, when set.

Skill hooks

MUSTER_HOOKstring
Which hook fired, e.g. post-deploy.
MUSTER_SERVICEstring
Service key, for per-service hooks.
MUSTER_PROJECT_DIR / MUSTER_CONFIG_FILEpath
Project root and its muster.json.
MUSTER_FLEET_NAME / _MACHINE / _HOST / _MODE / _STRATEGYstring
Fleet deploy hooks: fleet, machine, user@host, push or muster mode, sequential / parallel / rolling.

A project .env (or the muster env store) is loaded too, without overriding variables you already set.

Behaviour

MUSTER_APPROVE_HOOKS1
Approve changed or new hooks without a prompt. Same as --yes.
MUSTER_NO_VERIFYtrue
Skip the startup integrity check. Same as --no-verify.
MUSTER_MINIMALtrue
Plain text, no TUI. Same as --minimal.
MUSTER_QUIET / MUSTER_VERBOSEtrue
Same as --quiet / --verbose.
MUSTER_ASCII1
ASCII symbols and bars instead of Unicode.
NO_COLOR / FORCE_COLOR1
Turn colour off / force it on (CI defaults to off).
MUSTER_HEALTH_WAITsecondsdefault 30
How long health checks keep retrying after a restart or rollback.
MUSTER_PREFLIGHT_TTLsecondsdefault 60
How long a clean preflight result is cached.
MUSTER_DEPLOY_USERstring
Deployer name for locks and history. Falls back to the deploy_name setting, then git user.name / whoami.
MUSTER_HOOK_UNSAFE1
Skip the dangerous-command scan of hooks. Avoid it.
MUSTER_DEBUG1
Print Fleet Cloud activity delivery errors.
MUSTER_INSTALL_DIR / MUSTER_BIN_DIRpathdefault ~/.muster, ~/.local/bin
Where install.sh puts muster and its links.
MUSTER_WITH_CRYPT1
install.sh also installs muster-crypt (for muster env secrets).

CI

MUSTER_TOKENtoken
API token for every --json command (muster auth create ci --scope deploy).
MUSTER_NONINTERACTIVE1
Treat any run without a TTY as CI: no prompts, no git credential prompts.
MUSTER_SSH_HOSTKEY_CHECKyes | accept-newdefault yes on CI, else accept-new
StrictHostKeyChecking for every SSH connection.
MUSTER_GITHUB_ANNOTATIONSoff
Stop writing ::error / ::warning annotations on GitHub Actions.
MUSTER_SSH_KEY / MUSTER_KNOWN_HOSTSsecret
Secret names the generated workflow passes to the action's ssh-key and known-hosts inputs.
No prompt ever reads stdin without a TTY. Each one names the flag or variable that replaces it.

Fleet Cloud

MUSTER_CLOUD_TOKENtoken
Fleet Cloud CLI token, instead of muster cloud login.
MUSTER_CLOUD_RELAY / MUSTER_CLOUD_ORGstring
Relay URL and org, with MUSTER_CLOUD_TOKEN.
MUSTER_CLOUD_APIurldefault https://cloud.getmuster.dev
Dashboard API for activity and alerts.
MUSTER_CLOUD_ACTIVITY0
Don't report deploy activity to Fleet Cloud.
MUSTER_CLOUD_NO_KEYCHAIN1
Store the cloud token in ~/.muster/tokens/ (0600), not the keychain.
MUSTER_NO_BROWSER1
muster cloud login doesn't try to open a browser.
MUSTER_CLIENT_UIstring
Set by a client such as muster-tui (muster-tui/0.4.1). Added to X-Muster-Client; marks activity as tui.
MUSTER_DEPLOY_SOURCEmcp | assistant
Marks where a deploy came from in Fleet Cloud activity.

Assistant & AI

MUSTER_AI_PROVIDERstring
anthropic, openai, openai-compatible or ollama. Same as --provider.
MUSTER_AI_MODEL / MUSTER_AI_BASE_URLstring
Model and endpoint. Same as --model / --base-url.
MUSTER_AI_API_KEYsecret
Provider key. Checked before ANTHROPIC_API_KEY / OPENAI_API_KEY and the stored key.
MUSTER_AI_MAX_TURNS1–100default 25
Tool rounds per question.
MUSTER_AI_MAX_TOKENSnumberdefault 16000
Output tokens per response (Anthropic, OpenAI).
MUSTER_AI_EFFORTlow … max
Anthropic only. Default: the model's.
MUSTER_AI_TIMEOUTsecondsdefault 600
Request timeout.
MUSTER_AI_MAX_CONTEXTbytesdefault 600000
Conversation size limit.
MUSTER_OLLAMA_NUM_CTXnumberdefault 16384
Context window sent to Ollama.
MUSTER_AI_NO_KEYCHAIN1
Store the AI key in ~/.muster/tokens/ai.json, not the keychain.
MUSTER_ASSIST_URLurldefault https://cloud.getmuster.dev
Hosted assistant server.
MUSTER_ASK_TIMEOUTsecondsdefault 600
Hosted assistant request timeout.
MUSTER_PROJECTpath
Project muster-mcp serves. Same as --project.
MUSTER_MCP_ALLOW_ACTIONS1
Enable muster-mcp's action tools. Same as --allow-actions.

Env & secrets

MUSTER_ENVstringdefault local
Which environment to load: --env, then this, then env.default_env.
MUSTER_ENV_KEYsecret
Decryption key for CI, from muster env keygen --ci NAME.
MUSTER_ENV_KEY_DIRpathdefault ~/.muster/env-keys
Where your env keys live.
MUSTER_CRYPT_BINpath
muster-crypt binary. Else PATH, then ~/.muster/bin.
MUSTER_FLAG_<NAME>string
Each feature flag's value, set for hooks and muster run.
MUSTER_FLAGS_FILEpath
flagd JSON for OpenFeature SDKs (.muster/runtime/flags.<env>.json).