Introduction
Monarch is a four-part Linux virtualization and host management stack. Each piece has a narrow job and works standalone or together:
| Component | Stack | Role | Repository |
|---|---|---|---|
| Monarch.linux | Arch + CachyOS generic x86-64, Nuxt 4 | Live ISO, browser-based installer, firstboot provisioning, dm-cache SMART guard |
monarch/linux |
| Monarch.panel | Nuxt 4, Nitro, node:sqlite |
Single-admin web control plane for VMs, storage, networking, logs, Caddy, certs, and alerts | monarch/panel |
| Monarch.daemon | .NET 10 (C#) | Root agent running on each node; connects outbound over WSS /ws/daemon |
monarch/daemon |
| Monarch.android | Kotlin, Jetpack Compose | Phone companion with QR pairing, cert pinning, VM power control, and alert polling | monarch/android |
Design principles
- No inbound ports or SSH keys on managed nodes.
monarch-daemondials out to the panel overWSS /ws/daemonusing an ECDSA P-256 key pair and SHA-256 certificate pinning. If a host sits behind NAT or CGNAT, it still connects. - Generic x86-64 compatibility.
Monarch.linuxuses Arch core/extra plus the CachyOS generic x86-64 repository — nox86-64-v3orv4packages — so older server CPUs without AVX2 (such as Xeon E5-2680 v2) run cleanly. - No shell interpolation for system actions. Both the web installer (
runner.ts) andmonarch-daemonexecute external tools using argv arrays (shell: false), passing passwords and secrets over stdin or0600files. - Standard Arch maintenance. Once installed, a Monarch host updates with
yay -Syu./etc/os-release(ID=monarch,ID_LIKE=arch) is protected viaNoUpgradeinpacman.conf.
Quick start paths
- Bare-metal KVM host: Boot the
Monarch.linuxISO via USB or IPMI/iDRAC, open the printed LAN URL, verify the certificate fingerprint, enter the one-time access code, and run the wizard. See OS & Live Installer. - Existing Linux server: Run
Monarch.panelon a control host (yay -S monarch-panelor from source on port4382), then installmonarch-daemonon any Linux box you want to manage. See Panel Setup and Node Agent (Daemon). - Full development workspace: Clone all repositories and the shared
Monarch.graphknowledge graph in one command:
curl -fsSL "https://code.weexnes.dev/monarch/~files/main/setup.sh?raw=true" | bash
Pass --deps to also install npm dependencies (Monarch.panel, Monarch.linux/installer) and restore .NET packages (Monarch.daemon).