Overview

allternit-mux is a local terminal multiplexer daemon designed for agent workflows. It manages sessions, panes, and PTY processes over a Unix domain socket and exposes an NDJSON request/response API. The CLI can start the daemon, create sessions, split panes, run commands, send input, and inspect agent state. allternit-mux is used by Gizzi Code for terminal and PTY features and is bundled into the Allternit Hosted Runtime image.

Socket path

By default the daemon listens on:
Override with:
The environment variable ALLTERNIT_MUX_SOCKET also overrides the socket path.

Start the daemon

The daemon runs until it receives SIGINT, SIGTERM, or a server.stop request.

CLI commands

Examples

Create a session and pane

Run a command

Send input

Use --verified to confirm the text renders before pressing Enter:

Read output

Attach interactively

Detach with Ctrl-b q.

Wait for an agent state

Daemon API protocol

Clients connect over the Unix socket and send one JSON object per line. The daemon responds with one JSON object per line. Event subscriptions use the events.subscribe method.

Request format

Response format

Error format

Daemon methods

Error codes