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, Amp, Pi 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.
- 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.
- 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
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 [email protected]
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.
-
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). -
Agent sessions (⌘T): a real terminal on any machine running Claude Code, Codex, OpenCode, Gemini CLI, Amp, Pi or a shell. Sessions are listed under their machine in the sidebar (a spinner while the agent works, a colored dot when it wants you), with its open desktop and one line for its runners, and keep running when you close the app. 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. -
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 (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 · ⌘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 · ⌘, settings. Hold ⌘ to see them in the app, and change them in Settings › Keyboard. On Linux and Windows, use Ctrl instead of ⌘.
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.
[[machine]]
name = "Mac Studio"
host = "[email protected]" # 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)
[[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:
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.
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.
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 ps beelink [-n 20] # its busiest processes and its GPUs
muxin kill beelink 4242 [--force] # stop a process (--force: SIGKILL)
muxin wake beelink # Wake on LAN
muxin power win11 off # a VM in Docker on another machine (or a cloud machine): on or off
muxin vm create win-test --system windows-11 --on beelink # a VM on one of your machines
muxin schedule add beelink --name Tests --every day --at 09:00 --command "make test"
muxin usage [--days 30] [--machine 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 install <machine-id> [--scope acme] [--count N | --name a --name b] [--label gpu] [--mode auto|service|background|docker] [--image IMAGE] [--docker-socket] [--no-wait]
muxin runner <start|stop|restart|logs|remove> <runner-id> [--delete-files]
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 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).
Your GitHub, and handing issues to agents
The GitHub page is built for the loop of picking an issue, handing it to an agent, and moving on:
- For you: pull requests waiting for your review, issues assigned to you, and your open pull requests.
- Repositories: everything you own, collaborate on or reach through your orgs, with each one's open issues, pull requests and GitHub Actions runs. Star the ones you work on to keep them at the top, and show the list as one list or grouped by owner (you, then your organizations, then repositories other people shared with you).
- On your machines: each machine's agent finds git checkouts in your code folders (
~/Developer,~/code,~/src, … add yours in Settings › General › Code folders) and links them to their GitHub repository, with branch, commits ahead/behind and uncommitted changes. Fetch, Pull and Push from there. - Work on it with an agent: on any issue (or Review with agent on a pull request), one click opens a new session in that repository's checkout on the machine you pick (this computer first), with the issue's link, title and description as the agent's first message. With no checkout there, Muxin clones the repository in a new workspace (an issue gets its own branch, like
issue-910-content-excalidraw; a pull request checks out its branch, forks included), then starts the agent in it. Right-click a pull request for Review in a new workspace… to get a fresh clone anyway. - Hand off in a box: on an issue, opens New box filled in: the repository, a task to fix the issue and open a pull request that closes it (its title and description go along), and a branch named for it. An agent then works on it by itself, in a container on one of your machines (see Boxes).
Muxin uses the GitHub CLI's login (gh auth login) or GITHUB_TOKEN. Settings has a Sign in with GitHub button that runs the CLI's browser sign-in; each machine's page shows whether its own gh is signed in (agents there use it for issues and pull requests) and can sign it in too.
Git on each machine. A machine's page has a Git card: whether its GitHub CLI is signed in, who commits there, and how pushes reach GitHub. When something's missing, one click fixes it: Use my GitHub identity sets git's name and email to your GitHub name and private noreply address, and Use the GitHub CLI runs gh auth setup-git so pushes use the machine's gh login. Agents working there can then commit and push.
muxin git status beelink
muxin git setup beelink --identity --credentials
Permissions. Watching an organization's runners needs the admin:org permission on your GitHub login. Settings shows when it's missing, with a Grant access button that runs gh auth refresh -s admin:org in a terminal (it finishes in your browser), and lists your organizations so watching one is a click.
More than one account. Click your name at the top of the GitHub page to switch. The menu lists every account the GitHub CLI here is signed in to, plus each machine's own gh login: with a work laptop signed in to your work account, pick "@you-at-work · Work MacBook" and Muxin sees that account's repositories, inbox and runners (the token is fetched over ssh when needed and kept in memory only). Work on it with an agent then prefers checkouts on that machine. Switching doesn't change which account gh uses in your terminal. "Add another account…" runs gh auth login.
muxin github inbox # what needs you
muxin github repos # favorites first (★)
muxin github favorite ZenNotes/zennotes # --remove to unstar
muxin github accounts
muxin github use work-login # or: --machine work-macbook
muxin github repo ZenNotes/zennotes # issues, PRs, runs, and where it's checked out
muxin github issue ZenNotes/zennotes#632 # or the issue's URL
muxin checkouts --repo ZenNotes/zennotes
muxin checkouts --machine beelink --path ~/code/api --git pull
Agent sessions
Start an AI agent on one of your machines and come back to it whenever you like, from the app, from your own terminal, or through another agent.
- Keeps running. Sessions live in Muxin's agent on the machine (
~/.muxen/bin/muxen-agent), a small background program that holds each session's terminal, the way tmux would. Closing the app, sleeping your laptop or losing the network only detaches; the agent keeps working until you end the session, and reopening it shows the screen as it is with its recent scrollback. A restart of the machine ends its sessions, as with tmux. - Nothing to install. When Muxin connects to a machine it uploads the agent build for that OS and CPU (macOS, Linux and Windows, x86_64 and arm64; a few MB) and keeps it up to date.
- Split panes. ⌘D splits a terminal to the right, ⇧⌘D below it (or the buttons in its header): a new shell on the same machine, in the same folder. ⌥⌘← and ⌥⌘→ move between panes, or click one. Each pane is a session of its own, so it keeps running like any other; type
exitto close it, or × on its bar to take it out of the split. Splits come back when you reopen Muxin. - A real terminal in the app. Everything goes to the agent: Esc, Ctrl-C, Tab, arrows, Option/Shift+Enter for newlines. ⌘C copies a selection, ⌘V pastes, the wheel scrolls back. Nerd Font icons (Neovim's file icons, prompt glyphs) show with any terminal font: Muxin brings the symbols. Right-click a machine for a new terminal or agent session.
- Names you choose. Right-click a machine or a session and pick Rename… (or ⇧⌘P › Rename on its page). A machine keeps its id, so its runners, sessions and favorites stay with it;
config.tomlgetsid = "<old id>"when the new name would give a different one. A session's title is kept by the agent on its machine (~/.muxen/titles.json), so every Muxin sees it; an empty title goes back to the one it started with. - Your environment. The agent starts in your login shell, in the folder you pick, so nvm/fnm/asdf and the CLI's own login work as they do in your terminal. Muxin finds which agent CLIs each machine has:
claude,codex,opencode,gemini,amp. - What it changed. Each session shows its branch, the lines and files it changed since the default branch, its commits and uncommitted files, and the branch's pull request with its checks (click it to open it on GitHub). Muxin looks when a session stops working, and at least every minute while sessions run.
- Actions. A session's Actions button (or its right-click menu) asks its agent to commit, commit and push, open or update the pull request, review the changes, fix the review comments, resolve conflicts or write a recap. Each one types a prompt into the agent; change any of them in Settings › Prompts (
[settings.prompts]inconfig.toml), where{branch},{base}and{pull}are filled in. - Hand off to another agent. Started with Claude Code and want Codex to finish (or Claude Code ran out of usage)? Hand off on a session's page picks the agent. Muxin writes a note in the session's folder,
.muxin/handoff.md. It has where the git work stands, the agent's to-do list, and the conversation so far: what you asked, what the agent said, and one line per tool call. Muxin reads that from the agent's own transcript (Claude Code, Codex, Gemini CLI and Pi keep one on the machine; for OpenCode and Amp the note has what the terminal showed instead). Then the new agent starts in the same folder, asked to read the note first, and the old session ends. The note stays out of git (.muxin/goes in the checkout'sinfo/exclude). A fresh … session does the same with the same agent, for a conversation that's grown too long. A box changes agents the same way, in the box. - Move it to another machine. Started on your laptop and want it to keep going on a server? Hand off › Move to Beelink… picks the agent there. The branch's commits that aren't on GitHub yet, its uncommitted changes and its new files go along, copied through Muxin (the machines don't need to reach each other), into a workspace there: a worktree of a checkout of the same repository when the machine has one, else a fresh clone with your GitHub login (a repository without a remote goes whole). The work stays on its branch; a branch there that went its own way isn't touched. Then the agent starts on the note, and the session here ends. The folder here stays as it was. Git checkouts only, and not to Windows machines yet. A box stays on its machine: hand it to another agent there.
- Agents can drive agents.
session_start,session_read(the screen as text),session_questionandsession_answer(what it asks, and an answer),session_send(type into it),session_action,session_handoffandsession_stopare MCP tools and CLI commands too.
muxin session ls # every session, and which agents each machine has
muxin session start beelink claude --cwd ~/code/api --prompt "fix the failing test"
muxin session read beelink/claude-3f9a # what's on its screen
muxin session send beelink/claude-3f9a "yes" # type, then Enter (--no-enter to skip it)
muxin session do beelink/claude-3f9a pull_request # an action: commit, commit_push, pull_request, review, fix_comments, conflicts, recap
muxin session question beelink/claude-3f9a # what it's asking, and the options' keys
muxin session answer beelink/claude-3f9a 1 # pick one
muxin session attach beelink/claude-3f9a # open it in this terminal; detach with Ctrl-] then d
muxin session restart beelink/claude-3f9a
muxin session rename beelink/claude-3f9a "API server" # "" goes back to the original title
muxin session handoff beelink/claude-3f9a codex # Codex takes over, with a note of the work so far (--keep keeps the old one)
muxin session handoff box-7k2m9q gemini # a box changes agents
muxin session handoff this-mac/claude-3f9a codex --on beelink # the work moves to beelink, and Codex picks it up there
muxin session stop beelink/claude-3f9a
Build the agent for every platform with scripts/build-agents.sh (needs cargo-zigbuild and Zig for the Linux builds); scripts/bundle-macos.sh runs it and ships the builds inside the app.
Boxes
Hand a task to an agent and let it work on it by itself, on your own hardware. A box is one task: a fresh checkout of a repository on a new branch, in a Docker container of its own on one of your machines, with an agent CLI working in it.
- Start one. Boxes › New box: the repository, the task, the agent (Claude Code, Codex, Amp, OpenCode, Gemini CLI or Pi) and where it runs (the online machine with Docker and the most free memory, or one you pick). Type to search your GitHub repositories and the checkouts on your machines.
- A local project. Pick a checkout on one of your machines (or type its folder): the box goes on that machine and starts from it as it is now, its uncommitted changes and new files included, on a branch of its own. It pushes where the checkout does (an ssh remote goes over https in the box), and the checkout stays as it was; it's the box's
checkoutremote, to fetch its branch from. Muxin clones the repository, runs its.agents/setupif it has one, and starts the agent on the task. The first box on a machine builds Muxin's image there (Debian, Node.js, git, the GitHub CLI and the agent CLIs), which takes a few minutes; later boxes start in seconds. - On its own. The container is the agent's sandbox, so it runs with its permission prompts off (
--dangerously-skip-permissionsand the like). It works as you, with your GitHub login, so it can push its branch and open a pull request. It sees its own checkout and home and the machine's agent folders (below), not the machine's other files, and Docker isn't shared with it. Its network isn't closed off. - Pauses by itself. When its agent has printed nothing for 15 minutes (an open terminal nobody types in doesn't keep it going), or has quit, Muxin's agent on the machine stops the container. That works whether or not the app is open. Its files, branch and conversation stay. Ask it something more (or Resume) and it starts again: the agent continues its last conversation, after the repository's
.agents/resumeif it has one. Dev servers and shells it ran don't survive a pause. - Watch it. Open shows its agent's terminal, like any session. ⌘D (or the split buttons) opens a shell in the box beside it: same container, checkout and tools, so you can run the tests or another agent CLI there. Typing in it counts as using the box, and pausing the box ends it. The Boxes page shows each box working, waiting for you, idle or paused, with its branch, what it changed and its pull request with checks.
- Signed in as on the machine. A box shares the machine's agent folders (
~/.claude,~/.codex,~/.gemini,~/.pi, and Amp's and OpenCode's), so the agent is signed in, with your settings, skills and MCP servers, wherever it is on that machine. Keys likeANTHROPIC_API_KEYset in the machine's shell come along too. If it isn't signed in there, sign it in once from a box's terminal (/login); every box on that machine has it from then on. On a Mac, where Docker runs in a VM, two things differ: Claude Code keeps its login in the Keychain, which a container can't read, so boxes there need that one/login; and Codex's and OpenCode's folders hold databases that can't be shared across the VM, so each box gets a copy of their sign-in instead. - Where it lives. On the machine, a box is
~/muxen/boxes/<id>/: its checkout (repo/, at the same path inside the box, so each box's agent continues its own conversation), the agent's home (home/, at/home/box) and its record. Delete removes the container and that folder, with any work that wasn't pushed. Its branch on GitHub stays. - Machines. Linux, and Macs with Docker Desktop, OrbStack or Colima. Windows machines can't run boxes yet.
muxin box new acme/api "Add rate limit headers to every response, with tests, and open a pull request"
muxin box new acme/api "Fix the flaky webhook test" --agent codex --on beelink
muxin box new ~/code/app "Finish this refactor" --on beelink # a checkout there, with its uncommitted work
muxin box ls # every box: working, waiting, idle or paused, and its git
muxin box send box-7k2m9q "Also update the API docs" # starts it again if it's paused
muxin box attach box-7k2m9q # its agent, in this terminal
muxin box shell box-7k2m9q # a shell in the box, in this terminal
muxin box pause box-7k2m9q
muxin box rm box-7k2m9q
Agents use box_create, box_list, box_send, box_pause and box_destroy; session_read works on a running box's session.
Sharing a session or a machine
Show someone a session, or a whole machine, straight from your computer. They join from Muxin or from any browser; nothing to install.
- Share. On a session's page, click Share: the link is made and copied, ready to paste anywhere (
https://muxin.dev/s#1.…). By default you let each person in, they can only watch, and it lasts an hour; change any of that in the same window, while it runs: let them type, let anyone with the link watch without asking, or make it last longer. - Share a machine. On a machine's page, Share does the same for all of its sessions: guests see the sessions running there (and ones started later) and open any of them. In the same window, share its desktop (View, or Control for people you let in) and pick which of its servers they can open (Servers: what's listening there, web servers first). Everything else stays off: no files, no shell, no other ports.
- Let people in. When someone opens it, a card over the page shows their name and a 6-digit code; they see the same code. Ask them to read it out, then Let in. A link that leaked shows a code nobody reads to you.
- While you share. The header says who's there (Shared · Sam watching). Click it to let someone type or stop them, let them use the desktop or stop them, remove them, copy the link, add an hour, or stop sharing. A shared session has an eye in the sidebar; a dot means someone is waiting.
- Joining. The link opens a page that asks for their name, then joins right there in the browser (or in Muxin, if they have it). In Muxin, ⇧⌘P › Join a share… takes a link too. Shares are listed under Shared with you, sessions shown at the size the sharer's terminal is. A shared machine's page lists its sessions, its screen and its servers; Open puts a server at
localhoston the guest's computer (in Muxin; a browser can't open ports). - Peer to peer. The two computers connect directly (WebRTC): over your network or Tailscale when they share one, across the internet otherwise, and through an encrypted relay only when nothing direct works. muxin.dev only introduces them, with two short messages: the part of the link after
#(the share's secret) never reaches it, and the guest checks that it reached the sharing computer's own certificate, so the site can't listen in or join. - What a guest can do. Only what's shared, and type, use the desktop or open servers only while you let them. Muxin enforces it on your computer, and the agent on the machine attaches a watcher that can't type or resize. Guests never reach the machine itself, its files or a shell.
- It ends when its time runs out, when you Stop sharing, or when you quit Muxin. The link stops working then, for good.
To introduce them through a server of your own instead (share-server/ in this repository), set [settings.share] server = "https://share.example.com" in config.toml.
Connections and desktops
Muxin first reaches a machine with ssh, installs its small agent there, and from then on talks to that agent over one live connection instead of a new ssh connection per request: requests take milliseconds instead of ~0.4 s, terminals open instantly, and the sidebar updates the moment a session changes.
- Over ssh (the default): one ssh connection per machine, kept open and reconnected when it drops.
- Direct: on a machine's page, Connect directly pairs the app with its agent (each trusts only the other's certificate, swapped over ssh) and runs the agent's listener as a user service there (systemd or launchd) on UDP port 47821. Muxin then connects over QUIC, falling back to ssh whenever the direct connection is down.
MUXEN_NO_LINK=1turns all of this off: one ssh connection per request, as before.- Disconnect (a machine's right-click menu, or its Connection section) stops all of it for that machine: Muxin closes the connection and stops checking it and reading its sessions, which keep running there. It shows as Disconnected until you Connect (its page, its menu, or search). It's kept in
config.tomlasdisconnected = true.
Servers. A machine's page lists what's listening there: web servers first, with their page's title (a dev server, a Docker container's site), then its other ports. Open puts one on this computer at localhost (the same port number when it's free) and opens it in your browser; no desktop needed. Each connection goes through the machine's live connection, so it works over ssh or direct alike, even for servers that listen only on the machine itself. Open ports are listed under their machine in the sidebar (click to open, × to close) and come back when Muxin starts. Open a port takes any port number. From a terminal: muxin ports <machine> and muxin forward <machine> <port>.
Desktop. On a Linux machine with an X11 desktop, a Mac, or a Windows PC someone is signed in to, Show desktop (on its page, or its right-click menu) shows its screen live and sends your mouse and keyboard to it. On Linux ⌘ works as Ctrl; on a Mac it stays ⌘. An open desktop is listed under its machine in the sidebar (and keeps streaming while you look elsewhere); close it there.
Nobody signed in. Muxin shows the screen of the account it connects as, so that account has to be signed in there. Servers often have nobody signed in, and a Remote Desktop window closed without signing out leaves a session with no screen. Muxin says so right away and offers Open with Remote Desktop (Windows), Open with Screen Sharing (Mac) or Open with RDP or VNC (Linux); the machine's right-click menu has it too. It opens the machine's own remote desktop in your app for it: Windows App or Remote Desktop Connection, Screen Sharing, Remmina or FreeRDP. That shows the sign-in screen, so you can sign in. It goes through Muxin's connection to the machine, so it works away from home too and nothing has to be opened in a firewall. Here it's at localhost:3390 (VNC: localhost:5901), listed under Servers. The machine needs it turned on:
- Windows: Remote Desktop, in Settings › System › Remote Desktop (on Windows Server: Server Manager › Local Server). Windows Home can't be reached this way. Windows Server allows two admin sessions at once without extra licenses.
- Mac: Screen Sharing, in System Settings › General › Sharing.
- Linux: xrdp, GNOME's Remote Desktop, or a VNC server such as x11vnc.
From a terminal: muxin desktop rdp <machine> or muxin desktop vnc <machine>.
Monitors, real and virtual. A machine with more than one monitor gets a picker above its desktop: show one monitor at a time (on Linux, or all of them). Add monitor (or Add virtual monitor… in the machine's right-click menu) plugs in a monitor that isn't there, the way DeskPad does on a Mac: pick a name and a size (720p to 4K), and it joins the desktop like a real one, to the right of the others. Windows move onto it, the machine's own tools (System Settings, RustDesk) see it, and while the machine's desktop is open, Muxin lists it under the Desktop item in the sidebar to open it directly. It starts at the main monitor's size and offers every common one (720p to 4K). Above a monitor, pick its resolution, and on Linux desktops that offer it, its scale: 200% makes things twice as big and just as sharp, so a 4K monitor reads like 1080p (the stream is always the screen's own size, so it stays crisp). Right-click a monitor (in the picker or the sidebar) to rename or remove it, and in the all-screens view, click a monitor's name to open it. On Cinnamon each virtual monitor gets copies of the main monitor's panels (menu, clock, dock with the same pinned apps), so it's usable on its own. It stays until you remove it (Remove monitor) or the machine restarts. Handy on a machine with no screen (a dummy HDMI plug, a server), or to give an agent a monitor of its own. On a Mac it's a CGVirtualDisplay. On Linux (X11) it's a software dummy plug: Muxin plugs a made-up monitor (at the size you picked) into a video output with nothing connected, and the desktop sets it up like a real one. That takes root, so when sudo wants a password Muxin asks for yours, only then, sends it to sudo over its encrypted connection, and keeps it in memory only until you quit. Nothing is installed.
muxin desktop displays beelink # its monitors (virtual ones marked)
muxin desktop add beelink --size 2560x1440 # another monitor, "Display 2"
muxin desktop shot beelink --display DisplayPort-0 # a screenshot of just that one
muxin desktop set beelink HDMI-A-0 --size 3840x2160 --scale 2 # 4K, things twice as big
muxin desktop remove beelink DisplayPort-0
Apps in windows of their own. Above a machine's desktop, Apps lists the apps open there (Windows, Macs, and Linux on X11). Pick one, and it opens here as a window of its own, at its size there, with nothing around it but its own title bar: drag that to move the window, double-click it to zoom. The pointer takes the app's shapes (a text cursor over text, a hand over links). Click and type as usual: the app comes to the front there first, so keys never land in another app. Resize either window and the other follows; minimize or close the app there and its window here does the same. Once the picture is still, it's sent again sharp. While nothing covers the app there, its menus and dialogs show too. On a Mac, an app's menus stay in the menu bar there.
muxin desktop windows win11 # its apps' windows
muxin desktop shot win11 --display window:1312130 # a screenshot of just one
-
Macs ask once, on their own screen, to allow
muxen-agentunder Privacy & Security › Screen Recording (to see it) and Accessibility (to control it). The screen goes over ssh to the agent's background service in your session there, so no other network permission is needed. Release builds sign the agent with a Developer ID, so the permissions survive updates. -
Pick 720p, 1080p, 1440p, 4K or Native from the bar above it. On a local network it starts at the screen's own resolution, further away at 1080p.
-
Open in window gives it a window of its own (put it on another screen, or full screen).
-
On an agent session's page, Desktop shows the machine's screen beside the terminal (drag the divider to resize), to check what the agent did without leaving it.
-
The bar says how it travels: direct or over ssh, and on which network (local network, Tailscale, internet). Paired machines are reached on their local-network address first, so a machine at home isn't reached through a VPN.
-
Only changed parts of the screen are sent (captured through shared memory, compressed on all of the machine's cores), so a still screen costs nothing.
muxin connection beelink # how it's reached, and how fast
muxin connection beelink --direct on # pair and connect directly
muxin desktop shot beelink -o screen.jpg
muxin desktop input beelink '[{"type":"click","x":100,"y":200},{"type":"text","text":"hello"}]'
AI agents get the same: machine_connection, direct_connection, desktop_screenshot (an image they can look at) and desktop_input.
When the connection drops (another network, a hiccup, the machine's agent restarting), terminals and the desktop pick themselves back up ("Reconnecting…") instead of stopping. A machine that's shut down is noticed within seconds and shown as offline.
Tailscale and moving between networks
If Tailscale is on your Mac, Muxin uses it to keep machines reachable away from home, with nothing to set up: it only reads Tailscale's status and never changes its settings.
- Home network first. A paired machine is tried on its local-network address first, and through its Tailscale address a moment later; the first to answer wins. At home that's the local network; at a café it's Tailscale.
- Moving. When your Mac changes networks, connections that no longer work are rebuilt the best way from where you are, and ones that went through Tailscale move back to the local network when you're home again. Open terminals and desktops carry on.
- ssh too. If a machine's host only works at home (a local IP in
config.tomlor your ssh config), ssh goes to its tailnet address instead when the usual one doesn't answer. - Offline answers. Tailscale's view tells Muxin when a machine is back, whether Tailscale lost it too, or that Tailscale is off on this Mac (with Open Tailscale).
- The Connection card says which way it goes (Local network, or Tailscale peer-to-peer or through a relay), whether the machine is on your tailnet, and offers Set up Tailscale on Linux machines that aren't (the install command, typed in a shell there for you to run).
- Adding machines: the Add machine dialog lists the computers on your tailnet; one added by its tailnet name is reachable from anywhere.
Logs
A machine's logs, live: Logs on its page (or right-click it, or ⌘P › Logs) opens them, and they stay under the machine in the sidebar until you close them.
- System: the systemd journal and the kernel's messages on Linux, the unified log on a Mac. Without the
systemd-journalgroup Linux shows only your own; Muxin says so. - Files:
/var/log,~/Library/Logs, and log files written lately under your home folder (an app'sstorage/logs, a runner's_diag), newest first, or any path you type. Root-only ones are marked. - Docker containers, and running services (systemd units, yours and the system's).
- The last 500 lines, then new ones as they're written; a filter, Pause, Follow (scrolling up stops it) and Copy. Errors are red and warnings amber.
muxin logs beelink --list # what there is
muxin logs beelink --unit nginx -n 100 # a service's last lines
muxin logs beelink --file '~/app/storage/logs/laravel.log' --grep error
muxin logs beelink --container postgres --follow # keep printing (Ctrl-C to stop)
If Muxin itself crashes, it writes what happened to crash.log in its config folder (~/.config/muxin, or %APPDATA%\muxin on Windows). The agent on a machine writes to ~/.muxen/crash.log.
Services and containers
A machine's services, and its Docker containers: Services on its page (or right-click it, or ⌘P › Services). Failed ones come first, then running ones; Find narrows the list.
-
Linux: systemd services, the system's and your own ("yours"), with whether each starts at boot (click At boot to change it). Start, Stop, Restart. The system's take root: when sudo wants your password, Muxin asks for it there, once, and keeps it in memory until you quit.
-
A Mac: Homebrew's services (
brew services: Postgres, Redis, nginx, ...). -
What they use: CPU and memory for each running service and container; sort by them to find what's busy.
-
Docker, all of it:
- Containers: run one (image, name, ports, environment, volumes, restart policy, command), start, stop, restart, remove, a shell inside it (a terminal session), its log.
- Compose: each project Docker knows, with Up, Down, Restart, Pull, its log, and Edit (its compose file in your editor, in a terminal on the machine). New project makes
~/compose/<name>/compose.yamlto start from. Click a project to see it three ways: a Picture (its services as boxes, an arrow to what each waits for, green when it waits until that's healthy; the ports each opens on the machine, its networks as colored tags, the files it mounts, its volumes at the right; each box with the image, state, health, CPU and memory), a List (the same as a table, with Start, Stop and Restart for each service, then its volumes, mounted files and networks), and its Logs (every service's lines in time order, each in its color, with a chip to show one service's). - Images: pull one, run it, remove it, or remove every unused one.
- Pulls, runs and Compose up/down run as operations: their output shows as they go, and in Activity.
-
Stop, Restart, Remove and Down ask first, and say so when stopping one (ssh, Tailscale, the network) could cut Muxin off from the machine. The log button opens its log in Logs.
-
Processes: the machine's busiest few hundred processes, with CPU (percent of one core), memory, how long each has run and who runs it; Stop sends SIGTERM, Kill SIGKILL (both ask first). Another user's takes root, as for system services. NVIDIA, AMD (Linux) and Apple GPUs show above the list, with how busy and how much memory.
muxin services beelink # services and containers
muxin services beelink restart nginx
muxin services beelink stop postgres --container
Files and the clipboard
Copying files. Copy files on a machine's page (or its right-click menu) opens two panes: the machine with the files on the left, where they go on the right, each a folder you can browse. Pick files and folders, pick a folder, copy. Dropping files from the Finder onto a machine in the sidebar opens it ready to send them there.
- Files go through Muxin as a tar stream between the two machines' agents, so the machines never need to reach each other or share ssh keys. Folders come along whole, with permissions and links. Your Mac is a machine like the others, so this uploads and downloads too.
- Files with the same names in the destination folder are replaced; the dialog says so first.
- Progress, speed and Stop are in Activity.
- Both ends hold back to what the other can take, so a slow machine doesn't pile data up anywhere.
muxin files beelink:~/build
muxin cp beelink:~/build/app.tar.gz adibs-macbook-pro:~/Downloads
muxin cp adibs-macbook-pro:~/Projects/site beelink:~/www --no-wait
Shared clipboard. Turn it on in Settings › Clipboard. Text you copy on your Mac can then be pasted on your Linux desktops, Windows PCs and other Macs, and what you copy there lands on your Mac (and on the other machines). Passwords copied from password managers (marked private on the clipboard) aren't shared. Neither is text a program in a terminal copies. One exception: the app on Linux can't tell which copies on its own computer are passwords.
Cloud machines
Need a machine you don't have? Muxin can make one in your DigitalOcean account. Connect in Settings › Cloud with an API token (kept in the macOS Keychain), the browser sign-in, or doctl's login. Then pick New cloud machine… in the Add machine dialog: a name, a region (the nearest is preselected) and a size with its price. Muxin creates the droplet with your user and SSH key, installs what you chose (Docker, git and the GitHub CLI; Node with Claude Code and Codex; Tailscale), and adds it to your machines. Then it's like any other machine: terminals, agent sessions, files, workspaces.
DigitalOcean bills a droplet by the second while it exists, powered on or off, up to its monthly price; only destroying it stops the charges. Each cloud machine's page shows its rate, what it has cost this month and since it was created, and what this month comes to if you keep it, with Power on/off and Destroy. Settings › Cloud › Usage and cost adds them up: what you're paying per hour now, this month so far (machines destroyed this month included), the month's total if nothing changes, and your whole DigitalOcean bill this month (when Muxin may read it: sign in again in the browser, or use a token with billing:read). Settings › Cloud also says what happens when one sits idle: nothing, a reminder, power off, or destroy, after the hours you choose.
pbpaste | muxin cloud login --token - # the token on stdin, not in your shell history
muxin cloud options
muxin cloud create dev-1 --size s-2vcpu-4gb
muxin cloud usage # what they cost
muxin cloud destroy dev-1
VMs on your machines
Need a clean Windows to try an installer, or a throwaway Linux? New VM… (in the Add machine dialog, the command palette, or a machine's right-click menu) makes one on a machine you already have:
- Windows 11, 10, Server 2025 or 2022, in Docker with KVM (dockur/windows) on a Linux machine (x86-64). It downloads Windows and installs it by itself, 15 to 30 minutes the first time, then turns on OpenSSH with your key. Watch the install from its page. It runs unactivated until you enter a key.
- Linux (Ubuntu, Debian, Fedora, Alpine or Arch) as a container with ssh, on any machine with Docker, this Mac included. Ready in under a minute. It shares its host's kernel (no systemd).
It joins your machines under the one it runs on, with Muxin's agent: sessions, files, the desktop and workspaces work like anywhere, and a UDP port on its host is forwarded to it, so Connect directly works too. Stop and Start it from its page; Destroy deletes its container and disk. Your AI agents can do the same through MCP: make a Windows VM for a test, use it, destroy it.
muxin vm options # where VMs can run, and what
muxin vm create win-test --system windows-11 --on beelink
muxin vm create scratch --system ubuntu-24.04 # on the machine with the most free memory
muxin power win-test off
muxin vm destroy win-test
Schedules
A schedule runs a command, or starts an agent session, on one of your machines at set times: every few minutes, every hour, every day, weekdays, or some days of the week, in that machine's own time. It's kept on the machine and run by its own scheduler (cron, launchd or Task Scheduler), so it runs even when Muxin isn't open. The Schedules page lists them with their last run, runs one now, pauses one, and shows each run's output. An agent schedule ("every morning, go through new issues") starts a session you find under the machine, waiting for you.
muxin schedule add beelink --name "Disk report" --every weekdays --at 09:00 --command "df -h /"
muxin schedule add beelink --name Triage --every day --at 08:30 --agent claude --prompt "Label new issues in acme/api"
muxin schedule ls
muxin schedule log beelink s-ab12cd
How checks and installs work
- Checks are read-only. A small script is sent over
ssh(shon macOS and Linux, PowerShell on Windows), or run directly forhost = "local". It reports CPU, memory, disk, uptime and load, and finds the installed runners, their versions, their services and whether they're running. Checks run on a schedule (every 15 minutes by default) or on request. - Installs only happen when you ask. Muxin checks the machine, gets a short-lived registration token from GitHub, and installs each runner in one of these modes (
--mode/mode, defaultauto):- service: downloads the latest
actions-runnerfor the machine's platform into~/actions-runner/<name>, runsconfig.sh --unattended, and installs a service: launchd on macOS (the user must be logged in), systemd on Linux (needs passwordless sudo forsvc.sh), a Windows service on Windows. - docker: one container per runner,
muxen-<name>, from GitHub's official image (ghcr.io/actions/actions-runner:<latest runner version>, or--image). The runner's files live in a named volume of the same name, registration happens in a throwaway container that reads the token from stdin (so it never shows up indocker inspector a process list), and the container runs with--restart unless-stopped, so it comes back with the Docker daemon. No sudo needed; the user just has to be in thedockergroup. The runners get thedockerlabel, and jobs run in a clean Ubuntu userland.--docker-socketshares the host's Docker socket so jobs can use Docker; that's root-equivalent access to the machine, so only use it for trusted workflows. - background:
run.shstarted withnohup; no root needed, but it doesn't come back after a reboot (--no-serviceis the same). - auto picks service when the machine allows it (macOS, Windows, Linux with passwordless sudo or as root), else docker when Docker is usable, else background, and says which it picked in the operation log.
- service: downloads the latest
- Remove stops the runner, uninstalls its service (or removes its container) and deregisters it with a removal token. It deletes the folder (or the container's volume) only if you ask.
- Docker runners show up in checks with their container's state; a container that keeps restarting is flagged with the
docker logscommand to look at. - Registration and removal tokens are masked in all output and never logged.
sshruns withBatchMode=yes, so a machine that needs a password just shows up as unreachable. Make suressh <host>works with keys first.
Windows
Windows machines are managed like the others, over OpenSSH (Settings › System › Optional features › OpenSSH Server, then key-based login; an administrator account for services and runners). Muxin installs its agent in %USERPROFILE%\.muxen\bin and works with PowerShell or cmd as sshd's shell:
- Sessions keep running after Muxin closes (ConPTY, in the agent's session server).
- Desktop and clipboard: the screen, mouse and keyboard of the account Muxin connects as, while it's signed in; Muxin starts its helper in its session through a one-off scheduled task (no window flashes). With nobody signed in, use Open with Remote Desktop (see Desktop above).
- Pages: Processes and GPUs, Services (Windows services; "at boot" is the startup type), Servers, Logs (the System, Application and Security event logs, a service's events, files), Usage, Copy files, git, Run (PowerShell), workspaces (sync copies through the agent; it doesn't delete).
- Checks report admin rights, Docker, the network card (for Wake on LAN), pending reboots and failed services.
- Direct connections run
listenas a scheduled task at sign-in, with a Windows Firewall rule for the agent.
Not yet on Windows: Docker runners and Docker workspaces, adding virtual monitors.
The app on Windows is built on Windows (GPUI compiles its shaders with the Windows SDK's fxc.exe): install Rust and Visual Studio's C++ build tools with the Windows SDK, run scripts/build-agents.sh on a Mac or Linux (it makes the Windows agent too, with cargo-zigbuild), then scripts\package-windows.ps1 on Windows. That makes dist\Muxin-<version>-windows-x64-setup.exe (arm64 on Windows on Arm: an installer, with Inno Setup: for this user, no administrator needed, a Start menu entry, optionally muxin on the PATH, an uninstaller) and dist\Muxin-<version>-windows-x64.zip (muxin.exe and its agents\). Started from Explorer it shows no console window; from a terminal it's the same CLI as elsewhere. Secrets go in Windows' Credential Manager.
Develop
cargo test # unit + demo-mode integration tests
cargo run -- --demo # the window, simulated machines
cargo run -- status --demo --json
Source layout:
agent/: the agent that runs on each machine (sessions, the live link, direct connections, desktops, files, clipboard).src/share: sharing sessions by link (the host's gateway, joining, WebRTC);share-server/: the server that introduces the two sides and serves the browser's join page.src/fleet: the engine and snapshot model;link.rsanddirect.rs(connections),tailscale.rsandengine/roaming.rs(moving between networks),files.rs,clipboard.rs,discover.rs(machines on this network).src/probe: machine checks.src/github: the GitHub API client.src/ops: installs and runner control.src/fleet/workspaces/: agent workspaces (host and Docker).src/api.rs: the agent API.src/mcp.rs: the MCP server.src/ui: the GPUI window.
Cargo.lock pins libc to 0.2.189: GPUI's HTTP client pulls in xattr 0.2, which doesn't build on Linux against newer libc releases. Don't run a blanket cargo update without rebuilding on Linux.
Contributing
Issues and pull requests are welcome: see CONTRIBUTING.md. To report a security problem, see SECURITY.md instead of opening an issue.
License
Muxin is open source under the Apache License 2.0, copyright 2026 Lumary Labs LLC (see NOTICE). The Muxin name and logo are Lumary Labs' trademarks; the license doesn't cover them.
It includes third-party components under their own licenses, listed in THIRD_PARTY_NOTICES.md: the Geist fonts (SIL Open Font License, assets/fonts/OFL.txt), the Lucide icons (ISC, assets/icons/LICENSE.txt), the Phosphor, Hugeicons and Fluent icons (MIT), the MingCute icons (Apache-2.0) and the Solar icons (CC BY 4.0), with their licenses in assets/icons/, GPUI (Apache-2.0) and the Rust crates in Cargo.lock.