Config, secrets and feature flags that live in your repo and roll out with your code.

muster env init imports an existing .env as 3 config and 2 secret keys, encrypting the secrets, then asks whether to install the pre-commit guard and installs it. muster env set STRIPE_KEY asks for the value twice with a hidden prompt and stores it encrypted. muster run starts npm run dev with config, secrets and flags injected; the output shown is the app's own, muster prints nothing. muster env check for production fails because DATABASE_URL is missing and PORT is not a number. muster flag set new_checkout on turns the flag on.
shop — muster env

Browse it in muster-tui. Keys, flags, diffs, history and env check in one screen. Secrets only ever show as fingerprints. Space toggles a flag; L sets a local override only on this computer.

The muster-tui Env & flags screen lists staging's keys with secrets shown as fingerprints, then switches to local's Flags, where new_checkout is a local override, and toggles dark_mode on.
acme-store — muster-tui
muster › Env & flagsstagingacme-store ⎇ main
Environment local [staging] production
[Keys] Flags Diff History Check
──────────────────────────────────────────────────────────────
Key Type Source Value
▸ API_URL url staging https:/…
DATABASE_URL url staging ‹secret:41c0e8d7›
LOG_LEVEL enum staging info
MUSTER_FLAG_NEW_CHECKOUT string flag new_checkout false
PORT number default 8080
SENTRY_DSN url — ! not set
STRIPE_SECRET_KEY string staging ‹secret:c83e1f0b›
7 keys · 2 secrets, shown by fingerprint only
e environment · tab section · r refreshctrl+k commands

Typed in code, flags included. codegen writes a zero-dependency reader for TypeScript, Python or Go. Secrets print as [REDACTED]. Flags are flagd JSON, so OpenFeature works with no lock-in.

Tabs show an excerpt of the generated env.generated.ts with a Secret type that prints as REDACTED, app code that uses env.PORT, env.STRIPE_KEY.reveal() and env.flags.newCheckout, and an OpenFeature flagd provider reading the flags file that muster run exposes as MUSTER_FLAGS_FILE.
src/server.ts
import { env } from "./env.generated";
app.listen(env.PORT); // number
const stripe = new Stripe(env.STRIPE_KEY.reveal());
console.log(env.STRIPE_KEY); // Secret([REDACTED])
if (env.flags.newCheckout) { // from MUSTER_FLAG_NEW_CHECKOUT
router.use("/checkout", checkoutV2);
}
// Missing or invalid keys fail at startup, all listed at once:
// DATABASE_URL is required in production; PORT must be a number

Encrypted per value, readable per diff. Each secret is encrypted to the people and machines allowed to read it. A PR still shows which key changed. Removing someone rotates the data key. No server, no account.

The files muster env keeps in .muster/env: config, encrypted secrets, flags in flagd format, recipients and history, plus the schema, and the encryption used per value, per file and per recipient. A second tab shows the CI steps: env check, codegen check and muster run with MUSTER_ENV_KEY.
shop — .muster/env
.muster/env/
production.config.json # plain values, reviewed in the PR diff
production.secrets.json # each value encrypted; key names stay readable
production.flags.json # flagd format
recipients.json # who may decrypt which environment
history.jsonl # who changed what (secrets as fingerprints)
muster.env.schema.json # every key: type, required, format, default
# per value: XChaCha20-Poly1305, bound to env|key
# per file: HMAC over every entry
# per recipient: X25519 + ML-KEM-768 key wrapping

Delete your last plaintext .env.

Read the env docs