New
Apps 6,419Makers 6,403This week 7
Promote your app−30%
mux screenshot 1 1 / 6
4views in
the last 30 days

mux

Claude Code and Codex-like coding experience over the model runner backends you choose

Built with Claude Code

by jchristn · Unclaimed · from USUnited States · added Oct 29, 2026
no ratings0 comments

mux

Your AI agent, your models, your infrastructure.

Beta software mux is in beta. APIs, interfaces, configuration formats, tool schemas, and CLI behavior are all subject to change. Feedback is welcome via issues and discussions.

Get started · Model providers · CLI usage · Configuration · Documentation

What is mux?

mux is an AI coding agent that gives you a Claude Code / Codex-like experience using the backend and model you choose — from the terminal, a web dashboard, a desktop app, or your editor. It connects to local runners, self-hosted inference servers, and hosted models through native and OpenAI-compatible adapters. See model providers for the supported connections.

mux can read and write files, run commands, search code, and manage a project across five surfaces that all share one engine (Mux.Core):

  • Interactive terminal UI — a full-screen REPL with per-job transcripts, a tool-approval modal, slash commands, and resumable sessions (mux).
  • Non-interactive command surface — single-shot runs for scripting and automation, including machine-readable jsonl output (mux print, mux --print).
  • Local web dashboard — mux serve hosts a loopback, token-guarded REST + WebSocket API and a self-contained single-page dashboard (chat, configuration, usage/pricing analytics, sessions), run in the background by a cross-platform system-tray agent. Web chats persist server-side into the shared session store, so they appear (and resume) in the TUI and desktop app too; read-only by default, mux serve --allow-tools lets mutating tools prompt the browser for approval.
  • Cross-platform desktop app — mux Desktop, an Avalonia client with conversations/threads, streaming chat, the full set of configuration managers, and the usage dashboard.
  • VS Code extension — mux in the editor: a chat panel with in-editor tool approvals, inline commands and code actions (explain, fix, tests, refactor, commit message), editor context injection, and the shared session store, driven over the local mux serve API. Source in src/Mux.VSCode; see docs/VSCODE.md.

mux does not install or manage model runners. You bring your own local or remote inference backend, and mux connects to it.

Screenshots

Click to expand

Interactive TUI — the terminal experience (mux)

mux TUI screenshot 1

mux TUI screenshot 2

mux TUI screenshot 3

mux TUI screenshot 4

mux TUI screenshot 5

Desktop app — the cross-platform Avalonia client (mux Desktop)

mux Desktop screenshot 1

mux Desktop screenshot 2

mux Desktop screenshot 3

mux Desktop screenshot 4

Web dashboard — the browser UI served by mux serve

mux web dashboard screenshot 1

mux web dashboard screenshot 2

mux web dashboard screenshot 3

mux web dashboard screenshot 4

Highlights

  • Backend-agnostic: one CLI for local and remote model runners
  • Built-in tools: file edit/read/write/delete, directory management, glob, grep, process execution, and rendered web retrieval. File edits preserve existing UTF-8/UTF-16/UTF-32 encoding, BOM, and line endings; new files use UTF-8 without a BOM.
  • External web search: optional Tavily and You.com providers expose web_search for result discovery
  • Shell-aware process execution metadata: run_process tells the model which OS and shell it will run under
  • MCP tool servers: define stdio/HTTP servers in mcp-servers.json or manage them with /mcp; the interactive UI connects to them, discovers their tools, exposes those tools to the model, and shows per-server connectivity
  • Project instructions: MUX.md, AGENTS.md, or CLAUDE.md files from the repository root down to the working directory (plus a user-level ~/.mux/MUX.md) are loaded into the system prompt on every surface, so a repository already set up for Codex or Claude Code works in mux unchanged
  • Skills: versioned Markdown-plus-code capabilities in ~/.mux/skills (and checked into a project under .mux/skills, .claude/skills, or .agents/skills) that turn a request into a fixed, deterministic procedure or a reusable playbook; run one by name with /<skill> args on any surface, author, inventory, and manage them in-app with /skills (or the mux skill verb), and a curated default set ships on first run. Project skills with commands load only after /trust, and skills declare appliesTo globs so only the relevant ones are listed to the model
  • TUIKit interactive UI (v0.8.2): a full-screen shell with per-job transcripts, a job sidebar, a multi-line composer, slash commands / key bindings / menu over one command catalog, an interactive tool-approval modal, and autosaved resumable sessions. Multiple prompts run as concurrent background jobs (a single-writer lease serializes file edits); enqueue-while-busy lets you start a new job or append to the focused one. See USAGE.md.
  • Loops: /loop 5m <prompt> re-runs a prompt on a fixed interval and /loop <prompt> lets the model pace itself with a schedule_next tool (an iteration that does not call it stops the loop); every loop has an iteration cap, iterations never overlap typed prompts or each other, /loops lists, pauses, resumes, and cancels them, the sidebar shows the next fire time, and loops persist with the session (restored paused). Headless: mux print --loop 5m "<prompt>" or --loop self. Skills loop-until, fix-until-green, ci-watch, and flaky-test-hunt cover the in-turn loops
  • Background tasks: for a large request the model lays out the work as a tracked plan of tasks and advances them as it goes; the interactive shell draws a live checklist that updates in place (pending → running → done), the sidebar shows TASKS n/m, /tasks opens a viewer to inspect and hand-annotate the plan, and the plan persists across save/resume. A task_plan_updated event is emitted in jsonl mode for orchestrators. See USAGE.md
  • Subagents: define named subagents in ~/.mux/subagents.json and the model can delegate a scoped sub-task to one with the spawn_subagent tool; each runs in an isolated conversation (its own system prompt, endpoint, and tool allow-list) and returns only its final answer, keeping the primary agent's context clean
  • Universal prompt management (v0.12.3): every string mux feeds a model — the persona, the compaction framing, the tool descriptions, the little tool-result payloads — is legible and editable, never buried in code. A single catalog defines every prompt with a sensible default (grouped by kind), overrides persist to ~/.mux/prompts.json, and each surface (terminal, desktop, web, VS Code) can browse the catalog and edit or reset any entry; prompt profiles now expose all three persona fields. Editable over REST via /v1.0/api/prompts/catalog. See docs/PROMPTS.md
  • Smart large-file context (v0.12.3): a file too big to inline becomes a navigable map (a structural outline with line ranges, so the model reads exact ranges with read_file(offset, limit)) instead of being truncated or refused — with summarize (a cached map-reduce summary that keeps line pointers) and truncate modes selectable per a context settings group. read_file returns a map by default, and POST /v1.0/api/context/file lets thin clients (the VS Code extension) offload mapping/summarizing to the server
  • Cross-surface session portability: the terminal UI, desktop app, and web dashboard are three windows onto one session store (~/.mux/sessions, keyed by a shared session id). Start a conversation in any surface and pick it up in any other — the full transcript comes with it, in any ordering (web → TUI, desktop → web, and back). Every surface can see, resume, rename, duplicate, export, and delete the same sessions. Web chats persist server-side automatically (no lost turns if you close the tab), and tool-call structure survives the round trip. Sessions also record their working directory so a resumed agent continues against the same project. Point every surface at the same directory (or share it) and your work follows you.
  • Local session export: /export (or mux export <id>) renders a session to a self-contained HTML file and Markdown — server-free, no network
  • Custom keybindings: rebind or unbind any command's key chord in ~/.mux/keybindings.json
  • Undo/redo: in a git repository, mux snapshots the working tree before each turn so /undo and /redo roll a turn's file changes back and forward (git plumbing only — your branch, history, and stash are untouched)
  • Plugin system: out-of-process event hooks (session-start, user-prompt-submit, session-end, and the tool-level pre-tool-use, post-tool-use, and stop) and custom /<name> slash commands configured in ~/.mux/hooks.json; inspect with mux plugin list. Tool hooks follow Claude Code's payload and exit-code contract (exit 2 blocks a call, appends feedback, or makes the model continue), take an optional tool-name matcher, and run on every surface
  • Interaction: @path mentions attach files to a prompt (with path completion in the terminal); persistent memory (remember, recall, forget, # quick-add, /memory, mux memory) carries facts across sessions per project and globally; plan mode (/plan, Shift+Tab, mux print --plan) explores read-only and then executes an approved plan; and the model can ask a multiple-choice question with ask_user
  • MCP server: mux mcp serve exposes mux to Claude Code, Codex, or any MCP client over stdio or Streamable HTTP (--http <port>, optional bearer key), with a run tool for headless turns plus read-only session, endpoint, and skill tools; built on Voltaic. Runs are recorded in usage telemetry, and stdio logs show message summaries instead of prompts (--log-messages for the full log). scripts/<os>/run-mcp-server.sh serves a source checkout. See archive/MCP_SERVER_PLAN.md and USAGE.md
  • Worktree isolation: subagents with "isolation": "worktree" run in their own git worktree on a mux/... branch without the shared write lease; unchanged worktrees are removed and changed ones are kept on their branch with a summary. mux worktree list|prune|remove, /worktrees (terminal and desktop), the /v1.0/api/worktrees REST routes, and scripts/<os>/worktrees.sh manage them, and the desktop subagent editor has an Isolation choice. See archive/WORKTREE_ISOLATION_PLAN.md
  • Background processes: the model starts dev servers, watchers, and docker compose up with process_start (optionally waiting for a ready line), reads only new output with process_output, and stops them with process_stop; output is kept in a bounded buffer, the number of running processes is capped, and everything is killed when the session ends. /processes in the terminal and desktop lists, shows output, and stops them, and the sidebar shows each one. The react-dev-server skill starts a React dev server this way and reports its URL
  • Structured automation support: mux print --output-format jsonl emits one machine-readable event per line
  • Local REST server & tray agent (v0.9.0, opt-in): mux serve starts a loopback-bound, token-guarded REST + WebSocket API (Watson 7) over mux's in-process services; a cross-platform Avalonia system-tray agent hosts it in the background with About / Launch Mux / Exit. Never auto-starts from a plain run. See docs/REST_API.md
  • Command completion and model switching: slash-command suggestions in TUI, desktop, web chat, and VS Code; /endpoint <name> completion and direct switching in TUI, desktop, and web. Every surface records model changes as saved transcript notices, excluded from model context.
  • Usage analytics: every model call is recorded to a local SQLite database (~/.mux/usage.db, multi-process safe, no external service) — tokens, cost, time-to-first-token, streaming time, latency, and throughput. See it via /usage and the live sidebar cost in the TUI, or the Usage and Pricing pages on the mux serve dashboard (charts and token heatmaps over time with endpoint/model filters; heatmaps have labeled axes and clock-aligned buckets). The TUI /usage view fills the screen. Cost derives from an editable pricing.json. See docs/CONFIG.md
  • Desktop app (v0.11.0): mux Desktop is a cross-platform Avalonia client that links Mux.Core in-process. It offers streaming chat with Markdown, tables, and syntax-highlighted code (with per-response copy), thinking and tool-call cards, and auto-safe tool approvals; parallel conversation tabs that each run their own agent turn concurrently (switch tabs mid-turn without blocking); conversations/threads with AI-summarized titles, rename/export/bulk-delete; a command palette (Ctrl+K) and slash commands; MCP tools and skills in turns; live context/usage stats and the mux serve usage dashboard (candlestick charts with endpoint/conversation filters). Configuration is fully managed in-app — endpoints (with model import and validation), MCP servers (with connectivity checks), prompt profiles, skills, subagents, pricing, hooks, custom commands, keybindings, and web-search providers, plus a grouped settings surface, /compact and /effort, system/light/dark/high-contrast theming, and full localization in 11 languages (with right-to-left support for Arabic). Launch it with scripts\windows\run-desktop.bat / ./scripts/macos/run-desktop.sh / ./scripts/linux/run-desktop.sh. See docs/DESKTOP.md
  • Run lifecycle (v0.12.0): mux serve tracks each streamed run as an addressable object you can list (GET /v1.0/api/runs), inspect (GET /v1.0/api/runs/{runId} — status, counters, task plan), and cancel (POST /v1.0/api/runs/{runId}/cancel, cooperative and server-side). The /v1.0/ws WebSocket is a live per-run event bridge: subscribe by run or session id and replay-then-tail the same event envelope mux print --output-format jsonl emits. Stop in the dashboard and the VS Code extension now cancels server-side. Live session mirroring works across surfaces — a run on one surface can be watched read-only on another (mux mirror <sessionId> in the terminal, /mirror in the dashboard, Mirror a session's live run in VS Code); the desktop app publishes its in-process runs through its embedded server. See docs/REST_API.md
  • Observability (v1.1.0): OpenTelemetry metrics, traces, and logs for operators. Mux.Core emits on the Mux meter and activity source (agent runs and their stages, LLM calls with time-to-first-token and tokens, tools, approvals, MCP, web search, git checkpoints, hooks, subagents, the job pipeline, the write lease, the usage writer, sessions), the REST server adds Watson's HTTP metrics and per-request spans, and mux, the tray agent, and the desktop app export it all (OTLP, optional in-process Prometheus, Loki logs with trace correlation) when observability.enabled is on. docker/compose.yaml brings up a provisioned Prometheus + Tempo + Loki + Grafana stack with six per-domain dashboards and alert rules, and the web dashboard's home page links to it. See TELEMETRY.md
  • Engine as a library: Mux.Core (and Mux.Search) publish to NuGet with a symbol package, so you can build your own experiences on the mux engine (AgentLoop, SessionStore, McpToolManager, UsageQueryService, SettingsLoader)
  • Config isolation: set MUX_CONFIG_DIR to run with a fully isolated config directory
  • Health checks: mux probe validates config, backend reachability, auth, and model access
  • Endpoint & model inspection: mux endpoint list/show report the configured endpoints, and mux endpoint models live-enumerates the models each backend advertises (Ollama /api/tags, OpenAI-compatible /v1/models) — as a table or --output-format json

Getting Started

Every surface — the terminal UI, the web dashboard, the desktop app, and the VS Code extension — runs on the same mux engine and the same configuration under ~/.mux. Install the CLI once and all four surfaces share your endpoints, sessions, and settings. Pick the surface (or surfaces) you want below; they are not mutually exclusive, and a conversation started in one resumes in another.

Prerequisites

  • .NET 8 SDK or later (the install scripts default to .NET 10 when present, otherwise .NET 8).

  • A model backend. Choose a supported provider. For a local start with Ollama:

    ollama pull qwen2.5-coder:7b
    ollama serve
    

Install the CLI (the foundation for every surface)

git clone https://github.com/jchristn/Mux.git
cd Mux

# Windows
scripts\windows\install-tool.bat     # or: scripts\windows\install-tool.bat net8.0

# Linux (use scripts/macos/ on macOS)
./scripts/linux/install-tool.sh       # or: ./scripts/linux/install-tool.sh net8.0

On macOS, scripts/macos/install-tool.sh and reinstall-tool.sh also build and install self-contained Mux.app and Mux Agent.app in ~/Applications, visible in Finder. run-desktop.sh and run-agent.sh refresh and launch their installed app; run-tui.sh runs the terminal UI from source. No administrator access is required.

Framework selection and packaging scripts

All source run and tool-install scripts on Windows, Linux, and macOS accept a leading net8.0 (or --framework net8.0 / -f net8.0). Selection applies to restore, build, and execution, so a .NET 8 SDK can build without evaluating the .NET 10 target. Without a CLI selection, MUX_TFM is used; otherwise scripts choose net10.0 when a .NET 10 SDK is installed and net8.0 when it is not. Building from source requires the selected framework's SDK and runtime.

scripts\windows\run-agent.bat net8.0
./scripts/linux/run-agent.sh --framewo

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#coding-agent · #cli · #llm