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_NAMEstringDisplay name of the service, e.g. API Server.
MUSTER_DEPLOY_TIMEOUTsecondsdefault 120deploy_timeout from muster.json.
MUSTER_DEPLOY_MODEstringdeploy_mode from muster.json, when set.
MUSTER_DEPLOY_VERSIONstringVersion label: --version, else the git tag or SHA.
MUSTER_IMAGE_TAGstringTag to build and push. Rolling: $IMAGE_TAG or latest. Blue-green / canary: a unique tag (the version), since both run side by side.
MUSTER_STRATEGYstringrolling, blue-green or canary.
MUSTER_DEPLOY_STATUSstringOutcome for post-deploy and skill hooks: success, failed or skipped.
MUSTER_CRED_<KEY>stringOne per credentials.required entry, uppercased. Read from the environment first, so CI can set it.
MUSTER_LOGS_TAIL / MUSTER_LOGS_FOLLOWnumber / 0|1For the logs hook, from muster logs --tail / --follow.
Git
MUSTER_GIT_COMMITshaHEAD being deployed.
MUSTER_GIT_PREV_COMMITshaCommit of the last successful deploy.
MUSTER_GIT_COMMIT_COUNTnumberCommits between the two.
MUSTER_GIT_DIFF_SUMMARYstringgit diff --shortstat between the two.
Kubernetes and rollouts
MUSTER_K8S_DEPLOYMENTstringk8s.deployment. During a blue-green / canary deploy it points at the candidate.
MUSTER_K8S_NAMESPACEstringk8s.namespace.
MUSTER_K8S_SERVICEstringService key with underscores turned into hyphens (api_v1 → api-v1).
MUSTER_K8S_TRAFFIC_SERVICEstringk8s.service: the Service that carries traffic, when set.
MUSTER_TARGET_DEPLOYMENTstringRollouts: the Deployment to update, e.g. acme-api-canary.
MUSTER_K8S_BASE_DEPLOYMENTstringRollouts: the Deployment named in muster.json.
MUSTER_ROLLOUT_TRACKstringRollouts: the track being deployed (canary, blue, green).
MUSTER_STRATEGY_TRAFFICstringRollouts: service-selector or replicas.
MUSTER_K8S_CONTAINERstringk8s.container, when set.
Skill hooks
MUSTER_HOOKstringWhich hook fired, e.g. post-deploy.
MUSTER_SERVICEstringService key, for per-service hooks.
MUSTER_PROJECT_DIR / MUSTER_CONFIG_FILEpathProject root and its muster.json.
MUSTER_FLEET_NAME / _MACHINE / _HOST / _MODE / _STRATEGYstringFleet 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_HOOKS1Approve changed or new hooks without a prompt. Same as --yes.
MUSTER_NO_VERIFYtrueSkip the startup integrity check. Same as --no-verify.
MUSTER_MINIMALtruePlain text, no TUI. Same as --minimal.
MUSTER_QUIET / MUSTER_VERBOSEtrueSame as --quiet / --verbose.
MUSTER_ASCII1ASCII symbols and bars instead of Unicode.
NO_COLOR / FORCE_COLOR1Turn colour off / force it on (CI defaults to off).
MUSTER_HEALTH_WAITsecondsdefault 30How long health checks keep retrying after a restart or rollback.
MUSTER_PREFLIGHT_TTLsecondsdefault 60How long a clean preflight result is cached.
MUSTER_DEPLOY_USERstringDeployer name for locks and history. Falls back to the deploy_name setting, then git user.name / whoami.
MUSTER_HOOK_UNSAFE1Skip the dangerous-command scan of hooks. Avoid it.
MUSTER_DEBUG1Print Fleet Cloud activity delivery errors.
MUSTER_INSTALL_DIR / MUSTER_BIN_DIRpathdefault ~/.muster, ~/.local/binWhere install.sh puts muster and its links.
MUSTER_WITH_CRYPT1install.sh also installs muster-crypt (for muster env secrets).
CI
MUSTER_TOKENtokenAPI token for every
--json command (muster auth create ci --scope deploy).MUSTER_NONINTERACTIVE1Treat any run without a TTY as CI: no prompts, no git credential prompts.
MUSTER_SSH_HOSTKEY_CHECKyes | accept-newdefault yes on CI, else accept-newStrictHostKeyChecking for every SSH connection.
MUSTER_GITHUB_ANNOTATIONSoffStop writing ::error / ::warning annotations on GitHub Actions.
MUSTER_SSH_KEY / MUSTER_KNOWN_HOSTSsecretSecret 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_TOKENtokenFleet Cloud CLI token, instead of muster cloud login.
MUSTER_CLOUD_RELAY / MUSTER_CLOUD_ORGstringRelay URL and org, with MUSTER_CLOUD_TOKEN.
MUSTER_CLOUD_APIurldefault https://cloud.getmuster.devDashboard API for activity and alerts.
MUSTER_CLOUD_ACTIVITY0Don't report deploy activity to Fleet Cloud.
MUSTER_CLOUD_NO_KEYCHAIN1Store the cloud token in ~/.muster/tokens/ (0600), not the keychain.
MUSTER_NO_BROWSER1muster cloud login doesn't try to open a browser.
MUSTER_CLIENT_UIstringSet by a client such as muster-tui (muster-tui/0.4.1). Added to X-Muster-Client; marks activity as tui.
MUSTER_DEPLOY_SOURCEmcp | assistantMarks where a deploy came from in Fleet Cloud activity.
Assistant & AI
MUSTER_AI_PROVIDERstringanthropic, openai, openai-compatible or ollama. Same as --provider.
MUSTER_AI_MODEL / MUSTER_AI_BASE_URLstringModel and endpoint. Same as --model / --base-url.
MUSTER_AI_API_KEYsecretProvider key. Checked before ANTHROPIC_API_KEY / OPENAI_API_KEY and the stored key.
MUSTER_AI_MAX_TURNS1–100default 25Tool rounds per question.
MUSTER_AI_MAX_TOKENSnumberdefault 16000Output tokens per response (Anthropic, OpenAI).
MUSTER_AI_EFFORTlow … maxAnthropic only. Default: the model's.
MUSTER_AI_TIMEOUTsecondsdefault 600Request timeout.
MUSTER_AI_MAX_CONTEXTbytesdefault 600000Conversation size limit.
MUSTER_OLLAMA_NUM_CTXnumberdefault 16384Context window sent to Ollama.
MUSTER_AI_NO_KEYCHAIN1Store the AI key in ~/.muster/tokens/ai.json, not the keychain.
MUSTER_ASSIST_URLurldefault https://cloud.getmuster.devHosted assistant server.
MUSTER_ASK_TIMEOUTsecondsdefault 600Hosted assistant request timeout.
MUSTER_PROJECTpathProject muster-mcp serves. Same as --project.
MUSTER_MCP_ALLOW_ACTIONS1Enable muster-mcp's action tools. Same as --allow-actions.
Env & secrets
MUSTER_ENVstringdefault localWhich environment to load: --env, then this, then env.default_env.
MUSTER_ENV_KEYsecretDecryption key for CI, from muster env keygen --ci NAME.
MUSTER_ENV_KEY_DIRpathdefault ~/.muster/env-keysWhere your env keys live.
MUSTER_CRYPT_BINpathmuster-crypt binary. Else PATH, then ~/.muster/bin.
MUSTER_FLAG_<NAME>stringEach feature flag's value, set for hooks and muster run.
MUSTER_FLAGS_FILEpathflagd JSON for OpenFeature SDKs (.muster/runtime/flags.<env>.json).