amux
amux (short for agent multiplexer) is a tiny CLI that keeps your local AI/code agents organised inside tmux. Launch, attach, detach, and remove agent sessions with one consistent interface that works across shells.
Features
- Works with multiple sessions per agent (e.g.
--name review-123) - Understands built-in agent commands (
codex,claude,gemini) out of the box - Respects
CA_AGENT_CMD_<NAME>environment overrides and--cmd/--params - Provides status, attach, detach, start, and remove subcommands
Installation
Or build from source:
Usage
# List running agent sessions
# Launch the default codex agent (short flag or positional shortcut)
# Launch a second codex session with extra params
# Attach to an existing session (start it automatically if absent)
# Detach all clients from a session
# Remove the tmux session entirely
Custom agents
To register additional agents, set environment variables before running amux:
You can also bypass configuration per command with --cmd and append extra arguments with --params.
License
Licensed under the MIT license.