Configuration#

micromux is configured by a single micromux.yaml (or .micromux.yaml / .yml) in your project directory. Its shape is deliberately close to Docker Compose, so services, depends_on, healthcheck, restart, ports, environment, and env_file mean what you’d expect.

# yaml-language-server: $schema=https://github.com/romnn/micromux/raw/main/micromux.schema.json
version: "1"
name: my-project        # optional; surfaced to agents, defaults to the directory name
restart: unless-stopped # default policy, inherited by services
services:
  api:
    command: ["sh", "-c", "./run-api"]
    # …

Add the $schema comment at the top and an editor with the YAML language server gives you completion and validation against micromux.schema.json.

Top-level keys#

KeyPurpose
versionConfig format version. Use "1".
nameSession name shown to agents via the control plane. Defaults to the working-directory name.
strictTreat config warnings as errors. Also --strict / MICROMUX_STRICT.
servicesThe map of service definitions. See Services.
restartDefault restart policy inherited by services.
healthcheckDefault healthcheck timing inherited by services (timing only — it never creates a probe).
logsDefault log retention inherited by services.
uiTerminal-UI options — see below.
controlThe agent control plane and runtime-service policy.

In this section#

Inheritance#

restart, healthcheck timing, and logs can be set once at the top level and overridden per service. A service that omits a field inherits the global default; a service that sets it wins for the fields it sets. This keeps common policy in one place while letting individual services differ.

UI options#

ui:
  width: 40              # initial sidebar width, in columns
  pretty_json_logs: true # render structured JSON logs as compact colored lines (default)

Services that emit JSON logs are, by default, rendered in the TUI as compact colored log lines. Opt out per run with --no-pretty-json-logs, or for everyone with ui: { pretty_json_logs: false }. The raw JSON is always preserved for the control plane and MCP tools.