Skip to content

Settings Reference

Complete reference for all AgentMux settings. Settings are stored in settings.json and edited directly in your default editor.

Settings is not a pane — there’s no defwidget@settings widget anymore. Open settings.json from the hamburger menu in the top tab bar:

  1. Click the hamburger icon (≡) at the start of the tab bar.
  2. Select Settings.
  3. AgentMux opens settings.json in your default editor (via ensure_settings_file + open_in_editor).

You can also use the command palette (“Open Settings File”) if you prefer keyboard navigation.

The hamburger menu also includes inline submenus for the most-changed preferences so you don’t have to touch the file directly:

  • Theme ▸ Pick from Default, Midnight, High Contrast, Monokai, Nord, Dracula, Tokyo Night, Catppuccin, or Gruvbox. Selection persists across restart (writes window:theme).
  • Opacity ▸ Global window translucency from 100% down to 35% in 5% steps (writes window:opacity + window:transparent). For per-window control, use the InstancePanel slider — click the version chip in the status bar. See Window appearance.

Under Midnight specifically, the agent pane background is pure black; other panes use the theme’s deep-navy --main-bg-color.

Settings are per-instance, under the unified data layout:

ModePath
Installed / Portable~/.agentmux/versions/<version>/config/settings.json
Dev (task dev)~/.agentmux/dev/<branch>/config/settings.json

Override the ~/.agentmux/ root with the AGENTMUX_HOME_OVERRIDE environment variable (intended for tests). See Multi-instance & dev mode for the full layout.

SettingTypeDefaultDescription
term:fontsizenumber12Font size in pixels
term:fontfamilystring"JetBrains Mono"Font family
term:themestring"default-dark"Terminal color theme
term:scrollbacknumber1000Scrollback buffer lines
term:copyonselectbooleantrueAuto-copy text on selection
term:transparencynumber0.5Pane transparency (0.0–1.0)
term:localshellpathstring"/bin/bash"Default shell executable
term:localshelloptsarray[]Shell launch arguments
term:disablewebglbooleanfalseDisable WebGL renderer (falls back to Canvas)
term:allowbracketedpastebooleantrueEnable bracketed paste mode
term:shiftenternewlinebooleanfalseShift+Enter creates newline
term:agentmaxruntimehoursnumber0Max runtime for an agent pane in hours (0 = unlimited)
term:agentidletimeoutminsnumber0Idle timeout for an agent pane in minutes (0 = unlimited)
SettingTypeDefaultDescription
window:themestring"default"UI color theme. One of default, midnight, high-contrast, monokai, nord, dracula, tokyo-night, catppuccin, gruvbox. Easier to switch from the hamburger menu’s Theme submenu.
window:transparentbooleanfalseEnable window transparency
window:blurbooleanfalseBlur background (macOS only)
window:opacitynumber1.0Window opacity (0.0–1.0). The hamburger menu’s Opacity submenu (global) and the InstancePanel per-window slider both clamp to 0.35–1.0; direct edits to settings.json accept any number. Windows only — see Window appearance.
window:bgcolorstring""Custom background color
window:zoomnumber1.0Global zoom factor
window:tilegapsizenumber3Gap between panes in pixels
window:showmenubarbooleanfalseShow native menu bar
window:nativetitlebarbooleanfalseUse native title bar
window:confirmclosebooleanfalseConfirm before closing window
window:savelastwindowbooleantrueRestore last window size and position
window:dimensionsstring""Saved window dimensions (WxH)
window:reducedmotionbooleanfalseReduce animations
window:magnifiedblockopacitynumber0.6Opacity of background when a pane is magnified
window:magnifiedblocksizenumber0.9Size of magnified pane (0.0–1.0)
window:magnifiedblockblurprimarypxintegerPrimary blur radius (px) behind a magnified pane
window:magnifiedblockblursecondarypxintegerSecondary blur radius (px) behind a magnified pane
window:maxtabcachesizenumber10Maximum cached tabs
window:disablehardwareaccelerationbooleanfalseDisable GPU acceleration
SettingTypeDefaultDescription
app:globalhotkeystring""Global activation hotkey
app:defaultnewblockstring""Default pane type for new blocks
app:showoverlayblocknumsbooleanfalseShow block numbers as overlay
app:dismissarchitecturewarningbooleanfalseSuppress the architecture-mismatch notice
SettingTypeDefaultDescription
cmd:envobject{}Environment variables passed to all shell processes
SettingTypeDefaultDescription
telemetry:enabledbooleantrueEnable telemetry collection
telemetry:intervalnumber1.0Metrics collection interval in seconds
telemetry:numpointsnumber120Number of history data points to track
SettingTypeDefaultDescription
conn:wshenabledbooleantrueEnable wsh shell integration on remote connections
conn:askbeforewshinstallbooleantruePrompt before installing wsh on remote hosts
SettingTypeDefaultDescription
network:lan_discoverybooleanfalseAdvertise this instance + browse for peer AgentMux instances via mDNS. Off by default — on Windows, flipping it on triggers the firewall prompt for UDP 5353. See LAN discovery for the toggle in the HostPopover (preferred over editing this file directly, since the UI flips the daemon live without a restart).
SettingTypeDefaultDescription
widget:showhelpbooleantrueShow help widget in top bar
widget:icononlybooleanfalseIcon-only widget bar (no labels)
blockheader:showblockidsbooleanfalseDisplay block IDs in pane headers
preview:showhiddenfilesbooleanfalseShow hidden files in file previews
tab:presetstring""Default tab layout preset

MCP servers are configured per-agent in a Memory bundle, not via a global settings.json key. The agent runtime materializes the bundle’s mcp_servers field into the agent’s .mcp.json at launch and the AgentMux MCP server is auto-injected alongside any user-defined entries.

See Memory bundles for the bundle schema (including the mcp_servers field).

AgentMux respects these environment variables:

VariablePurpose
AGENTMUX_HOME_OVERRIDEOverride the ~/.agentmux/ root (intended for tests)
AGENTMUX_RUNTIME_MODESet by the launcher; consumers read it to know they’re running installed/portable/dev
AGENTMUX_DATA_DIR, AGENTMUX_CONFIG_DIR, AGENTMUX_LOG_DIR, …Per-instance paths exported by the launcher; never set these manually
CLAUDE_CONFIG_DIRPer-instance Claude Code auth/config dir; AgentMux sets this automatically
CODEX_HOMEPer-instance Codex CLI auth dir
GEMINI_CLI_HOMEPer-instance Gemini CLI auth dir
GEMINI_FORCE_FILE_STORAGEtrue — required for Gemini CLI auth-dir isolation
OPENCLAW_HOMEPer-instance OpenClaw auth dir
KIMI_SHARE_DIRPer-instance Kimi Code CLI auth dir
COPILOT_HOMEPer-instance GitHub Copilot CLI auth dir
PI_HOMEPer-instance Pi auth dir
CLAUDE_API_KEYOptional fallback for Claude agent panes (OAuth is the primary path)
OPENAI_API_KEYOptional fallback for Codex agent panes (OAuth is the primary path)
GEMINI_API_KEYOptional fallback for Gemini agent panes (OAuth is the primary path)

The per-provider *_HOME / *_CONFIG_DIR variables are set automatically by AgentMux at launch (sourced from each provider’s authConfigDirEnvVar field in PROVIDERS). Setting them manually is only useful when scripting an out-of-AgentMux workflow against the same auth dirs.

All per-version state lives under <data-dir>/, where <data-dir> is ~/.agentmux/versions/<version>/ (installed / portable) or ~/.agentmux/dev/<branch>/ (dev). See Persistence and Multi-instance & dev mode for the full layout.

PurposePath
Config (settings.json, etc.)<data-dir>/config/
Logs (rotated daily, 7-day retention)<data-dir>/logs/
SQLite stores (objects, filestore, sagas)<data-dir>/data/db/
Launcher event log (JSONL)<data-dir>/data/launcher-events.log
Account-wide state (cookies, OAuth)~/.agentmux/shared/