Muxin
One app for all your machines, run by you or by your AI agents.
muxin.dev · free and open source (Apache-2.0)
Point it at the machines you own (a Mac Studio under the desk, a NUC, a Linux box, a few MacBooks, a Windows laptop) and Muxin becomes the hub for all of them:
- Agent sessions: Claude Code, Codex, OpenCode, Gemini CLI, Antigravity, Amp, Pi, Copilot CLI, Cursor Agent, Qwen Code, Droid, Kimi Code or a shell on any machine, in a real terminal, still running after you close the app.
- Boxes: hand a task to an agent that works on it by itself, in a container of its own on one of your machines. A box pauses when it's quiet and picks up where it left off when you ask it more.
- Desktops: see a Linux machine's screen live and use it, beside an agent's terminal or in its own window. While a desktop has the keyboard, the shortcuts your own computer keeps (⌘Tab and Mission Control on a Mac, Alt+Tab and the Windows key elsewhere) go to the machine; Ctrl+Alt (⌃⌥) by themselves gives them back, and the Keys menu sends combinations by a click. On a Mac, that needs Muxin allowed under Privacy & Security › Accessibility.
- Files and clipboard: copy files and folders between any two machines, and copy on your Mac to paste on a machine (and back).
- GitHub: your inbox, repositories, issues and pull requests, with one click to hand an issue to an agent on the machine you pick.
- Self-hosted runners: which runners are working, idle or offline, which jobs no runner can take, and installing, starting, stopping or removing runners.
- Health: CPU, memory, disk and uptime, and a plain answer when a machine is offline or unreachable.
Agents can also borrow a machine as a work environment: an agent workspace is a persistent folder (optionally a git checkout) on one of your machines where an agent runs commands, edits files and syncs code.
- Native and fast. The window is built with GPUI, the GPU-accelerated UI framework behind the Zed editor. It runs on macOS, Linux and Windows.
- Keeps running when you close the window. Muxin goes on checking your machines and holding your connections and port forwards, with an icon in the menu bar or system tray. A dot on it shows when a session is waiting for you. Its menu lists those sessions and has Show Muxin and Quit Muxin. Opening Muxin again brings the window back too, from a terminal as well: there is one running copy. A desktop's stream stops while the window is closed and picks up when it's back, and shares you started end. Your sessions keep running on their machines either way.
- Mac: the Dock brings the window back as you left it too (Window › Show Muxin if another Muxin window is open). ⌘Q quits. Settings › General › Menu bar hides the icon.
- Windows: the window comes back as you left it. Click the icon for the window, right-click it for the menu. Windows 11 starts new icons under the ^ arrow by the clock; drag it out to keep it in view. Turn off Settings › General › Tray and closing it quits.
- Linux: the window really closes, and comes back on the same page and splits, with terminals reattached. Open dialogs and half-typed text don't come back, and a session running without Muxin's agent ends with the window. Turn off Settings › General › Tray and closing it quits. So does a desktop with no tray: GNOME shows tray icons only with the AppIndicator extension (Ubuntu has it on). If the tray goes away while the window is closed, the window comes back by itself.
muxin quitquits from a terminal, wherever the window is.
- Agent-first. Every capability is available as an MCP server (
muxin mcp) and as scriptable commands with--json. Claude Code, Codex and other agents can check your machines, explain problems and fix them. - Uses what you already have. Machines are first reached with your system
ssh, so your keys, agent and~/.ssh/configaliases just work; after that Muxin talks to its own small agent there, directly or through Tailscale. GitHub access uses yourghlogin.
Install
Download the app from the latest release:
- macOS 12 or later, Apple silicon and Intel:
Muxin-<version>-macos.dmg. Open it and drag Muxin to Applications. It's signed and notarized. - Linux with glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora 36, openSUSE Tumbleweed, RHEL 10 and later), for Intel and AMD (
x86_64) or Arm (aarch64):- Debian and Ubuntu:
Muxin-<version>-linux-x86_64.deb, thensudo apt install ./Muxin-<version>-linux-x86_64.deb. - Fedora, openSUSE and RHEL:
Muxin-<version>-linux-x86_64.rpm, thensudo dnf install ./Muxin-<version>-linux-x86_64.rpm(orzypper install). - Arch:
yay -S muxin-binfrom the AUR, orMuxin-<version>-linux-x86_64.pkg.tar.zstwithsudo pacman -U. - Any distribution:
Muxin-<version>-linux-x86_64.AppImage. Make it executable and run it; it needs no FUSE 2. - Or
Muxin-<version>-linux-x86_64.tar.gz: unpack it and run./Muxin/install.sh, which installs it for you, no root needed.
- Debian and Ubuntu:
- Windows 11:
Muxin-<version>-windows-x64-setup.exe, orwindows-arm64on Windows on Arm. The installer isn't signed yet, so Windows may say "Windows protected your PC": click More info, then Run anyway.
Or with Homebrew, on macOS and Linux:
brew install --cask lumarylabsllc/tap/muxin
SHA256SUMS.txt in each release has the files' checksums.
Muxin tells you when a new version is out: the sidebar says so, and About shows how to update the copy you have (with Homebrew or the AUR, or the new file to download). It asks GitHub for the latest release when it opens and twice a day; turn that off in Settings › General › Updates. muxin updates checks from a terminal.
Muxin was called Muxen before 0.5.1. Updating keeps your settings, machines and sessions, and the muxen command still works. On a Mac, the old Muxen app goes to the Trash the first time Muxin opens.
Build from source
git clone https://github.com/LumaryLabsLLC/muxin && cd muxin
cargo build --release --workspace
./target/release/muxin # opens the window
--workspace also builds Muxin's agent for this computer, which the app sets up on it. For your other machines' platforms, ./scripts/build-agents.sh builds every agent into dist/agents (it needs zig and cargo-zigbuild).
Requirements:
- A recent stable Rust (edition 2024).
- On macOS, Xcode (GPUI compiles Metal shaders).
- On Linux, GPUI's system libraries. On Ubuntu/Debian:
sudo apt install libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev libvulkan-dev libfontconfig-dev libx11-xcb-dev libxcb1-dev.
For servers, CI boxes and agent machines there's a headless build with no GUI libraries: just the CLI and the MCP server.
cargo build --release --no-default-features --features recipes
--no-default-features alone also leaves out recipes (muxin recipe, recipe_check and recipe_apply).
There's nothing else to set up. Fonts and icons are compiled into the binary.
To run muxin from a terminal, use Settings › General › Command line › Install, or muxin shell-command install. On macOS it links /usr/local/bin/muxin to the app (macOS asks for your password when that folder needs it), on Linux ~/.local/bin/muxin, and on Windows it adds Muxin's folder to your user PATH. muxen, its name from before, runs it too. muxin shell-command remove takes it out again.
To get a real app with the Muxin icon:
- macOS:
./scripts/bundle-macos.shbuildsdist/Muxin.app, signed with the Developer ID when it's in your keychain. Drag it to Applications. Agents can still use the binary inside it:Muxin.app/Contents/MacOS/muxin mcp. - Linux:
./scripts/package-linux.shmakes a tarball; itsinstall.shputs Muxin in~/.localwith an entry in your app menu. - Windows:
scripts\package-windows.ps1makes the installer.
Releases (a notarized DMG, and for Linux and Windows a tarball and an installer each for Intel/AMD and Arm) are built by GitHub Actions from a version tag: see RELEASING.md.
Quick start
muxin --demo # explore simulated machines first; nothing real is touched
muxin # your machines: starts with this computer in config.toml
muxin add-machine --name "Mac Studio" --host ci@mac-studio.local
muxin watch acme # live runner status and jobs for the acme org
muxin install mac-studio --count 2 # two runners, registered with acme, as services
muxin status
The app
Overview: the day in one line (machines online, agents working, runners busy), a few notices for what needs a look (each with a button that fixes or explains it), a card per machine with what's running on it (its agents, desktop and runners) and live CPU, memory and disk, and every agent session across your machines. The Jobs page shows how busy your runners have been over the last few minutes.
Machines and runners: install runners on a machine, and start, stop, restart, show logs for or remove each one. A machine that's off or out of reach says so in plain words (offline, Remote Login off, ssh key not accepted, Tailscale off on this Mac, …), with when it was last seen and what to do; Muxin picks it back up by itself when it returns. A Mac that goes to sleep shows as Asleep, and Muxin lets it sleep (see Connections and desktops).
Adding machines (⌘N): suggestions from your
~/.ssh/config, your Tailscale network, and this network (machines advertising ssh over Bonjour, and Macs that would be addable once Remote Login is on). Once you've saved a recipe, the dialog can apply one as soon as the new machine answers.Components: a machine's page says which tools it has (git, Docker, Node.js and other languages, the agent CLIs), installs the ones you pick, and updates the agent CLIs. What you pick can be saved as a recipe for the next machine (see Recipes).
Agent sessions (⌘T): a real terminal on any machine running Claude Code, Codex, OpenCode, Gemini CLI, Antigravity, Amp, Pi, Copilot CLI, Cursor Agent, Qwen Code, Droid, Kimi Code or a shell. Sessions are listed under their machine in the sidebar (a spinner while the agent works, an amber dot when it needs you, a dot in the accent color when it's done), with its open desktop and one line for its runners, and keep running when you quit the app. A long list shows the first five (and any that need you) with the rest behind more, a folded machine still shows what's on screen from it, and right-click › Hide takes a session out of the lists until it needs you. Terminal font size, line height and a blinking cursor are in Settings.
Usage (⌃5): what Claude Code and Codex used on all your machines today or over the last 7, 30 or 90 days, read from their own logs there: tokens and requests by day, model, machine and folder, and what it would cost at Anthropic's and OpenAI's API list prices. With a Claude or ChatGPT plan you don't pay per token; it's what the same use would cost through the API.
Run (⌃6): one command on several machines at once (
df -h /,brew upgrade,git -C ~/code/api pull), each one's output side by side as it comes, and its exit status. It runs in your login shell from your home folder; right-click a machine › Run a command… to start with just that one. Snippets are commands you save once, in folders, and run with one click: there on the machines picked, from the palette (⇧⌘P), or typed into the terminal you're in from its Snippets menu. Recent commands are kept across restarts.Open in your editor: sessions, workspaces, GitHub checkouts and Compose projects have a button that lists the editors on this computer (Zed, Cursor, VS Code) and opens their folder in the one you pick, over the editor's own ssh support. Settings › General › Editor picks which comes first (and which
muxin edituses).What's running: a machine's Services › Processes lists its busiest processes (CPU, memory, how long they've run, GPU memory on NVIDIA) and stops or kills one; its page shows its GPU (NVIDIA, AMD on Linux, Apple), how busy it is and its memory.
Fleet warnings and Wake: a machine's page and the Overview say when it wants a reboot (Linux updates) or has failed services. A machine that's asleep or off has a Wake button. A Mac that's asleep is woken for real by its agent, as a key press there would. Otherwise it's Wake on LAN, sent from this computer and from your machines on its network, once Muxin has seen its network card.
Copy files: a two-pane dialog to copy files and folders from one machine to another (see Files and the clipboard); or drop files from the Finder onto a machine in the sidebar.
Activity (⌘J): one timeline of everything happening on your machines: operations started in the app (with live output) and every command agents ran in workspaces, filterable by kind or failures.
Boxes (⌃3): tasks you hand to an agent that works on them by itself, each in a container on one of your machines (see Boxes). Below them, Agents' workspaces: folders that AI tools you use elsewhere work in through Muxin. Open one to see every command it ran, with its exit code and output, review its git changes, copy a shell command to step in, or destroy it.
Jobs: queued and running self-hosted jobs, and which queued jobs no online runner can take.
Appearance: follow the system, or pin light or dark, each with its own theme. Built-in themes:
- dark: Muxin Graphite, macOS Dark, Gruvbox Dark, Catppuccin Mocha / Macchiato / Frappé, Tokyo Night, Nord, Rosé Pine, Solarized Dark, Dracula, Everforest Dark, Kanagawa Wave, GitHub Dark, Terminal, Terminal Midnight;
- light: Muxin Paper, macOS Light, Gruvbox Light, Catppuccin Latte, Tokyo Night Day, Nord Light, Rosé Pine Dawn, Solarized Light, Everforest Light, Kanagawa Lotus, GitHub Light, Terminal Paper.
The macOS themes also switch to the system fonts (SF Pro, and SF Mono when it's installed). The Terminal themes make Muxin look like a TUI in a terminal: one monospace font, square corners,
[ Buttons ]and── Headings ──. The choice is saved inconfig.toml([ui]).
Keyboard: ⌘P goes to any machine, session or desktop by name, and ⇧⌘P (or ⌘P then >) runs any command, including Theme: Choose…, which previews each theme as you move through the list, your snippets and your saved recipes · ⌘1…⌘9 go to your machines · ⌃1…⌃7 overview, jobs, boxes, GitHub, usage, run, schedules (Alt on Linux and Windows) · ⌘J activity · ⌘R check machines · ⇧⌘R sync GitHub · ⌘N add machine · ⌘T new session · ⌘F or / search your machines and sessions · ⌘B sidebar · ⌘[ / ⌘] back / forward · ⇧⌘] / ⇧⌘[ next / previous session · ⌘, settings. Hold ⌘ to see them in the app, and change them in Settings › Keyboard. On Linux and Windows, use Ctrl instead of ⌘. Coming from herdr? Keys like › herdr at the top of Settings › Keyboard uses herdr's keys wherever Muxin does the same thing (a herdr space is a machine here, a tab a session).
Your settings: config.toml
Muxin keeps everything you set in one file, config.toml, in ~/.config/muxin/ (%APPDATA%\muxin\ on Windows), or in $MUXIN_HOME if that's set. Run muxin paths to see where it is. Older versions kept fleet.toml, settings.json and ui.json in ~/.config/muxen/; the first run brings them into config.toml and leaves the old folder as it was.
[[machine]]tables list your machines. Edit them by hand if you like: Muxin also edits them when you add machines or install runners, and keeps your comments.[settings]holds the watched GitHub orgs and repos, the polling intervals, whether the clipboard is shared, and cloud machine options.[ui]holds the app's look: theme, icons, terminal font and size, shortcuts, favorite machines.state.jsonholds the last machine check, and what Tailscale last said about each machine.direct.jsonholds the machines paired for direct connections, and their addresses.recipes.jsonholds the recipes you saved.
[[machine]]
name = "Mac Studio"
host = "ci@mac-studio.local" # anything `ssh` accepts, or "local" for this computer
runners = ["mac-studio-01", "mac-studio-02"] # expected runners; missing ones are flagged
# runner_dirs = ["/Volumes/Fast/runners/*"] # extra places to look (globs)
# shell = "powershell" # Windows; auto-detected when omitted
# user = "ci" port = 2222 ssh_options = ["-i", "~/.ssh/ci"]
# discover = false # don't list runners found but not declared
# notes = "Under the desk"
# direct_address = "nas.example.com:47822" # where a direct connection reaches it (NAT, a forwarded port)
# ignore_warnings = ["low-disk"] # warnings it's meant to have (a NAS's small system volume)
[[machine]]
name = "StudioNAS" # no runners: shown under "Other machines"
host = "nas"
A machine that runs on another one is shown under it: a VM or container reached through that machine (ProxyJump to its own address or 127.0.0.1), or at its address on another port. Muxin works this out from ~/.ssh/config, what each machine reports about itself (a VM says so), and the Docker containers that publish the port ssh goes to. When it can't be reached, it says whether the machine it's on is off or its container is stopped, and it can start or stop that container (muxin power win11 on).
Runners installed in the usual places are discovered automatically: ~/actions-runner*, ~/actions-runner/*, ~/runners/*, /opt/actions-runner* and C:\actions-runner\*. A runner is found from its .runner file and its running Runner.Listener / Runner.Worker processes.
GitHub
Watch an org or a repo in Settings, or with muxin watch acme (or acme/api). Muxin then reads live runner status (online, busy) and the queued and running jobs of the most recently pushed repos.
The token comes from MUXEN_GITHUB_TOKEN, GITHUB_TOKEN, GH_TOKEN, or gh auth token. Like gh, Muxin sends those variables only to github.com; for GitHub Enterprise Server it uses GH_ENTERPRISE_TOKEN or GITHUB_ENTERPRISE_TOKEN. Polling uses conditional requests, so unchanged responses don't count against your rate limit.
Reading and registering org runners needs an org admin token with the admin:org scope:
gh auth refresh -h github.com -s admin:org
Repo runners need admin access to the repo. For GitHub Enterprise Server, set the API URL in Settings or run muxin settings --api-url https://HOST/api/v3.
Use it from AI agents
Muxin ships an MCP server. Print setup snippets that point at your binary:
muxin mcp --print-config
Claude Code
claude mcp add muxin -- /path/to/muxin mcp
Codex (~/.codex/config.toml)
[mcp_servers.muxin]
command = "/path/to/muxin"
args = ["mcp"]
Other MCP clients (Claude Desktop, Cursor, …)
{ "mcpServers": { "muxin": { "command": "/path/to/muxin", "args": ["mcp"] } } }
Add "--demo" after "mcp" to let an agent practice on the simulated machines.
The MCP server has these tools:
| Tool | What it does |
|---|---|
status |
Counts, GitHub state, every machine, and the attention list. Start here. |
get_machine |
One machine's resources, runners and diagnostics, with hints. |
list_runners |
Runners, optionally filtered by machine or state. |
list_jobs |
Queued and running jobs, including which ones no runner can take. |
check_machines |
Runs the read-only machine check over ssh now. |
add_machine, remove_machine, rename_machine |
Edit config.toml. Nothing on the machine changes, except that add_machine connects to it directly once it answers (unless direct: false or Connect directly is off) and remove_machine turns off a direct connection from this app. remove_machine refuses a cloud machine: cloud_destroy deletes its droplet too. |
connect_machine |
Disconnect from a machine (connected: false) or connect again. Its sessions keep running there. |
ignore_warning |
Stop showing one of a machine's warnings by its code (low-disk), or show it again. Saved in config.toml. |
machine_ports |
What's listening on a machine: ports, programs or containers, and web servers' page titles. |
machine_processes, process_signal |
A machine's busiest processes and its GPUs; stop or kill one. |
run_on_machines |
Runs one shell command on several machines at once, with each one's output and exit status. |
snippet_list, snippet_save, snippet_delete, snippet_run |
Your snippets (saved commands, in folders): list, add or change, delete, and run one on several machines. |
wake_machine |
Wakes a machine: one that's asleep through its agent, one that's off with Wake on LAN. |
machine_power |
Powers a machine on or off, or restarts it: a cloud machine, a VM in a Docker container on another of your machines, or any other machine through its own system (off and restart) |
vm_options, vm_create, vm_destroy |
VMs on your machines: Windows (Docker with KVM) or Linux containers, added to your machines. |
recipe_check, recipe_apply |
Which of Muxin's components a machine has (git, Docker, Node.js, languages, agent CLIs); install the missing ones, and update the agent CLIs. See Recipes. |
schedule_list, schedule_save, schedule_delete, schedule_run, schedule_log |
Commands and agent sessions that run on a machine at set times, run there by its own scheduler. |
agent_usage |
What Claude Code and Codex used over the last N days: tokens, requests and cost at API prices, by model and machine. |
install_runners |
Downloads, registers and starts runners on a machine. |
runner_action |
Starts, stops, restarts, updates or removes a runner, or reads its logs. |
get_operation, list_operations |
Progress and output of long operations. |
github_scopes |
Watches or unwatches orgs and repos, with access checks. |
get_settings, update_settings |
Settings. |
list_ssh_hosts |
Hosts to add: your ~/.ssh/config, your Tailscale network, and this network. |
list_files, copy_files, cancel_operation |
Browse a folder on a machine; copy files and folders between machines; stop a copy. |
machine_connection, direct_connection |
How a machine is reached (direct, ssh, which network, Tailscale's view); pair it for direct connections. |
desktop_screenshot, desktop_input |
Look at a machine's screen (or one monitor of it); click, type and scroll there. |
desktop_displays, desktop_add_display, desktop_remove_display, desktop_set_display, desktop_fit_display |
A machine's monitors; add or remove virtual ones, change their resolution or scale, fit a Mac's screen to a view. |
desktop_windows |
A machine's apps' windows, to see and use just one (display: "window:<id>"). |
log_sources, logs_read |
A machine's logs: its system log, files, containers and services, and their last lines. |
machine_services, service_action |
A machine's services, containers, images and Compose projects (with CPU and memory); start, stop, restart, enable or disable one. |
docker_run, docker_pull, compose_action |
Run a container, pull an image, bring a Compose project up or down (or start, stop, restart one of its services). |
compose_project |
A Compose project's parts: services, ports, what waits for what, networks, volumes, health. |
session_list, session_start, session_read, session_send, session_rename, session_stop |
Agent sessions on the machines. |
session_question, session_answer |
What a session's agent is asking (its options), and pick one. |
github_inbox, github_repos, github_repo, github_item, local_checkouts, git_sync, … |
The user's GitHub, and git checkouts on the machines. |
workspace_create, workspace_list, workspace_get |
Check out a machine as a work environment; see what exists. |
workspace_exec |
Runs a command in a workspace (or starts it in the background). |
workspace_read_file, workspace_write_file, workspace_list_files |
Work with a workspace's files. |
workspace_changes, workspace_sync |
Review the git diff; rsync code to or from your local checkout. |
workspace_destroy, workspace_allow |
Clean up; turn workspaces on or off for a machine. |
Every tool returns structured JSON. Failures come back with a code an agent can branch on:
not_foundinvalidbusygithubunreachableoperation_failedinternal
Many failures also include a hint with the exact command that fixes them. AGENTS.md has guidance written for agents.
Agent skill
Agents that load skills (Claude Code, Codex, OpenCode, Gemini CLI, Pi, Hermes, …) can learn Muxin's CLI from the skill in skills/muxin, with no MCP server to set up. It has the ground rules (start with muxin status --json, confirm before changing things, pass hints on verbatim) and how to work with sessions, boxes, workspaces, runners, machines, cloud machines and VMs. Ask your agent to "review PR 142 in my session on beelink" and it knows what to run.
muxin skill install # for every agent found on this computer
muxin skill install --agent hermes # just one: claude, codex, opencode, gemini, pi, hermes, copilot, cursor, qwen, droid, kimi, or agents
muxin skill install --dir ~/my-agent/skills
muxin skill remove
muxin skill show # the guide the skill reads
What muxin skill install puts in place is a short stub: the skill's description, and a line that tells the agent to run muxin skill show. The guide comes from the Muxin you have, so it's never out of date, even after an update. Copies that an older Muxin wrote in full are replaced with the stub when you run muxin skill install again. It goes in ~/.claude/skills/muxin, ~/.config/opencode/skills/muxin, ~/.gemini/skills/muxin, ~/.pi/agent/skills/muxin, ~/.hermes/skills/muxin, or the shared ~/.agents/skills/muxin for Codex, Copilot CLI, Cursor Agent, Qwen Code, Droid and Kimi Code (and agents, for any other agent that reads it).
To follow this repository instead, copy or link the folder into your agent's skills folder (muxin skill install leaves a link alone):
ln -s "$PWD/skills/muxin" ~/.claude/skills/muxin
The CLI, for scripts and agents without MCP
Every command takes --json. In that mode stdout carries JSON only, and errors are printed as {"error": {...}}. Progress and logs go to stderr. Exit codes:
0: success.1: the operation failed.2: bad input, or the thing wasn't found.
Commands that start long work (installing runners, copying files, making a VM, a cloud machine or a box) wait until it's done and print its log as it goes. The command's own process does the work, so there is no --no-wait: to get your prompt back, run the command in your shell's background (muxin cp … &). install and runner take --timeout <seconds> to give up sooner; the work stops there, and the command says so and exits 1.
muxin status [--refresh] # overview + what needs attention
muxin machines | machine <id>
muxin runners [--machine <id>] [--state offline]
muxin jobs
muxin add-machine --name <name> --host <ssh-host> [--no-check]
muxin remove-machine <id>
muxin rename-machine <id> <new name> # the id stays the same
muxin ports beelink # what's listening there (web servers first)
muxin forward beelink 3000 # its port 3000 at localhost:3000 here, until Ctrl-C
muxin run --on beelink,mac-studio -- df -h / # one command on several machines (--all: every one online)
muxin snippet add "Disk space" --folder Checks -- df -h / # save a snippet (ls, rm, run --on a,b too)
muxin ps beelink [-n 20] # its busiest processes and its GPUs
muxin kill beelink 4242 [--force] # stop a process (--force: SIGKILL)
muxin wake beelink # wake it: through its agent when it's asleep, else Wake on LAN
muxin power win11 off # shut a machine down (or restart it); a VM or cloud machine also turns on
muxin vm create win-test --system windows-11 --on beelink # a VM on one of your machines
muxin recipe check beelink [claude] # which of Muxin's components it has (git, docker, node, claude, ...)
muxin recipe apply beelink gh claude [--update] # install the missing ones (--update: and update the agent CLIs)
muxin schedule add beelink --name Tests --every day --at 09:00 --command "make test"
muxin usage [--days 30] [beelink] # what the agents used, and the cost at API prices
muxin edit beelink:~/code/api [--editor zed] [--print] # open a folder there in your editor
muxin disconnect <id> # stop connecting to it (its sessions go on there)
muxin connect <id> # connect again, and check it
muxin ignore <id> low-disk [--undo] # stop showing one of its warnings (--undo: show it again)
muxin install <machine-id> [--scope acme] [--count N | --name a --name b] [--label gpu] [--mode auto|service|background|docker] [--image IMAGE] [--docker-socket] [--timeout SECONDS]
muxin runner <start|stop|restart|logs|remove> <runner-id> [--delete-files] [--timeout SECONDS]
muxin watch <org|owner/repo>... / unwatch ...
muxin settings [--poll 20] [--scan-repos 10] [--check-interval 15]
muxin ssh-hosts # ~/.ssh/config, your tailnet, and this network
muxin files <machine>[:<folder>] # what's in a folder (alias: ls)
muxin cp <machine>:<path>... <machine>:<folder> # copy between machines
muxin connection <machine> [--direct on|off]
muxin ipad pair [--machine <machine>]... # pair an iPad: a QR code to scan (ls, rm <name>)
muxin check [--json] # one-shot full report
muxin workspace … # agent workspaces, see below (alias: ws)
Ids:
- Machines are slugs of their names, such as
mac-studio. - Runners are
<machine-id>/<runner-name>, such asmac-studio/mac-studio-01. - A runner that GitHub knows but no machine lists is
github/<name>.
Every command also accepts --demo.
The window, the CLI and MCP servers can all run at once. They share the files in the config directory and pick up each other's changes: settings, edits to config.toml, and newer machine checks.
Agent workspaces
A place on your machines for an agent you're using elsewhere (Claude Code on your laptop, say). The agent asks for a workspace and gets a persistent folder on one of your machines, optionally with a repo cloned at a branch or ref. It then works there like it would on a remote dev box. Nothing works there on its own: to hand a task to an agent that works by itself, use a box.
- Run commands with your login environment (Homebrew, nvm, asdf and the rest of your
PATH). Long-running things such as dev servers go in the background, with their output in a log file inside the workspace. - Read, write and list files.
- Review with
git statusand the diff. - Sync code both ways with your local checkout over rsync: push uncommitted local changes to test them on Linux, pull a fix back.
Host or Docker. By default commands run directly on the machine. With isolation: "docker" (CLI --docker), each workspace gets its own fresh container instead, from an image the agent picks (node:22, python:3.13, rust:1, …; default buildpack-deps:bookworm). The workspace folder is mounted at /workspace, the container runs as the ssh user so files aren't root-owned, and a container that disappears (reboot, docker system prune) is recreated on the next command with the files intact. docker_socket shares the machine's Docker for docker-in-docker; that's root-equivalent, so only use it when the task needs it. Docker workspaces need Docker on the machine and the ssh user in the docker group. They aren't available on Windows machines yet.
A worktree of a checkout. When the repository is already checked out on the machine, a workspace can be a git worktree of that checkout instead of a clone (worktree_of, CLI --worktree-of): its own folder and branch, sharing the checkout's history, so it's ready in a moment and several agents can work on one repository side by side. New sessions offer it too (Where › New worktree), and so does handing an issue to an agent when there's a checkout of its repository. Deleting the workspace removes the worktree and keeps its branch; once the branch's pull request is merged, the workspace's card offers to clean it up. (A worktree's git history lives in the checkout's .git folder, so an agent with a sandbox, such as Codex, asks before it commits there.)
The machine can be named, or picked for you: the least-loaded online machine that allows workspaces, optionally matching a platform such as linux or darwin-arm64. Private GitHub repos are cloned with your gh login; the token is passed through the environment for that one command and never written to disk or logs.
Every command an agent runs is recorded with its exit code, duration and the end of its output. You can see that history in the app (Boxes › Agents' workspaces, or a machine's page), or open a terminal in any workspace with muxin workspace shell <id>.
muxin ws create --platform linux --repo acme/api --ref main
muxin ws create --docker --image node:22 --repo acme/web # an isolated container
muxin ws create --machine beelink --worktree-of ~/code/api --branch fix-login # a worktree of a checkout there
muxin ws exec ws-7f3a2c -- cargo test # exits with the command's exit code
muxin ws exec ws-7f3a2c --background -- npm run dev
muxin ws cat ws-7f3a2c .muxen/logs/1.log
echo 'hello' | muxin ws write ws-7f3a2c notes.txt
muxin ws files ws-7f3a2c src --depth 1
muxin ws changes ws-7f3a2c
muxin ws sync ws-7f3a2c ~/code/api --push # or --pull, add --delete to mirror deletions
muxin ws shell ws-7f3a2c # an interactive shell in the workspace, for you
muxin ws ls
muxin ws rm ws-7f3a2c [--keep-files]
muxin ws allow studionas --off # forbid workspaces on a machine
ws exec passes the command's stdout and stderr through and exits with its exit code (124 if it timed out), so it composes in scripts. With --json it prints the full result instead.
Safety. Host workspace commands run as the ssh user on your machine, with that user's permissions; they aren't sandboxed. Use Docker isolation for code you don't trust. Workspaces are on by default for every machine with a host. Turn them off per machine with workspaces = false in config.toml, the toggle on the machine's page in the app, or muxin workspace allow <machine> --off. Nothing is deleted automatically: workspaces stay until you or an agent destroys them. Folders live under ~/muxen/workspaces/<id> on each machine (workspace_root in config.toml changes that).