micromux

Configuration

On this page

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.
session, allocate_ports, routes, proxyThe session’s name, its allocated ports, and its hostnames on the shared proxy.

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)
  mouse: true            # what the TUI's mouse may do: true, false or { select, navigate, scroll }
  copy_on_select: false  # copy a mouse selection when the drag ends, not on y (default off)

ui.mouse and ui.copy_on_select can also be set for every project in your user config, and per run with --mouse on|off and --copy-on-select on|off.

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.

Esc

Type # for headings only ↑↓ move ↵ open Ctrl ↵ new tab Ctrl U/D scroll preview

Keyboard shortcuts

/ ⌘ K Ctrl K
Search
← →
Previous or next page
?
Show these shortcuts