Homelab and local machines
MZPanel is built for a fleet of Linux servers, and a server does not have to be a rented VPS. A mini PC under the desk, a Raspberry Pi, a VM on your Proxmox host or the GPU desktop you also game on can join the same fleet as your VPSes. Your AI agent then deploys onto both.
The agent already works behind NAT: it dials out to MZPanel over WebSocket, so the
dashboard, terminal, File Manager, MCP and the REST API reach the box without any open port.
What a home connection cannot do is take inbound traffic, so apps on a homelab box are
published through a Cloudflare Tunnel on your own Cloudflare account instead of an
instant *.box URL.
What is supported
Section titled “What is supported”| Target | Status | Guide |
|---|---|---|
| Linux on bare metal: Ubuntu 24.04+, Debian 12/13 (amd64, arm64) | Supported | Linux, Proxmox and Raspberry Pi |
| AlmaLinux / Rocky Linux 9/10 (amd64, arm64) | Beta (same as on a VPS) | Linux, Proxmox and Raspberry Pi |
| Ubuntu/Debian derivatives (Linux Mint, Pop!_OS, Raspberry Pi OS) and other RHEL clones | Best effort: the installer warns but continues | Linux, Proxmox and Raspberry Pi |
| A Linux VM on Proxmox, ESXi, Hyper-V, libvirt | Supported (the guest is plain Linux) | Linux, Proxmox and Raspberry Pi |
| Raspberry Pi 4/5 with a 64-bit OS | Supported (as Ubuntu or Debian arm64) | Linux, Proxmox and Raspberry Pi |
| Windows 10/11 through WSL2 with systemd | Beta, docs only | Windows with WSL2 |
| macOS through a Linux VM (OrbStack, Lima, UTM, Multipass) | Docs only | macOS |
Not supported: Windows or macOS without a Linux VM, Docker Desktop as the Docker engine, LXC/LXD containers, older releases (Ubuntu 22.04, Debian 11, EL8 — refused at install), other families (Fedora, Arch, openSUSE, Alpine), and any Linux without systemd as PID 1. See What MZPanel does not do.
Quota: a homelab box counts as a server like any other (Free 1, Plus 3, Pro 10, Max 25).
Requirements
Section titled “Requirements”- One of the Linux systems above, with systemd running as PID 1 (
ps -p 1 -o comm=printssystemd). - 1 CPU and 1 GB RAM minimum; 2 GB+ RAM and 10 GB+ free disk if you build apps on the box.
- Outbound HTTPS (port 443) to the Internet. No inbound port, public IP or domain is needed.
- Root (
sudo). - For public app URLs: a domain on Cloudflare (the free plan is enough) and a Cloudflare API token with Cloudflare Tunnel: Edit (see Cloudflare Tunnel).
Install with the homelab profile
Section titled “Install with the homelab profile”-
In the dashboard, Servers > Add server, name the box and click Generate install command (leave the components empty: the homelab profile picks Docker + Nginx).
-
On the box, add
MZ_PROFILE=homelabto the command:Terminal window curl -fsSL https://get.mzpanel.com | sudo INSTALL_TOKEN=<install-token> MZ_PROFILE=homelab bash
The homelab profile installs the agent, Docker and Nginx for the app loop and leaves the machine’s own setup alone:
| The standard profile may… | The homelab profile |
|---|---|
| enable UFW/firewalld and Fail2ban | never touches the firewall |
| switch SSH to key-only | never touches sshd |
| enable automatic security updates | leaves updates to you |
| change the timezone | leaves the timezone |
enable disk quotas in /etc/fstab | leaves /etc/fstab |
set /home to traverse-only, blacklist kernel modules | leaves /home and modules |
| install the full web stack (Nginx, PHP, MariaDB, Redis) | installs Docker + Nginx (add more from Extensions) |
The installer looks at the machine first. On WSL or a machine with a desktop session
it refuses to run without MZ_PROFILE=homelab, because the standard profile could break a
computer you also use for other things. On a machine with no public IPv4 it prints a hint
and continues (cloud VMs often have private-only interfaces too). Run mzagent detect-host
after the install to see what it found.
Homelab boxes in the dashboard
Section titled “Homelab boxes in the dashboard”A box installed with the homelab profile is marked Homelab (a badge on the server card). You can also switch it on or off in Server > Settings > Homelab & Cloudflare Tunnel. A homelab box:
- may go offline. A laptop that sleeps or a WSL distro that stops is expected, so MZPanel sends no “Server offline” / “Server back online” notifications for it. Developer webhooks still fire, and uptime monitors on its public URLs still alert.
- never gets an instant
*.boxURL. Its address is a home connection, so MZPanel never publishes it in DNS. - is skipped by automatic placement (
apps_fleet_deploy) unless it has a Cloudflare Tunnel. You can still deploy to it by name.
Publishing apps
Section titled “Publishing apps”| Box | apps_deploy without a domain | Direct upload (apps_source_upload) |
|---|---|---|
| Homelab box with a Cloudflare Tunnel | https://<app>.<your zone>, routed through the tunnel | through the tunnel, max 100 MB per upload |
| Homelab box without a tunnel | the app runs, but only on your LAN: http://<app>.home.arpa (point that name at the box’s LAN IP in your hosts file or local DNS) | refused with 409 tunnel_required; deploy from Git instead |
Set up the tunnel in Cloudflare Tunnel.
What MZPanel does not do
Section titled “What MZPanel does not do”- Install or start WSL, a VM, or anything on Windows or macOS.
- Keep your machine awake or start it after a power cut.
- Open ports on your router, set up port forwarding or dynamic DNS.
- Install GPU drivers or the NVIDIA Container Toolkit (bring them; the box then runs GPU containers like any server).
- Tunnel traffic through MZPanel’s own network. The tunnel always runs on your Cloudflare account; an MZPanel-hosted tunnel may come later as a paid add-on.
Remove a homelab box
Section titled “Remove a homelab box”Server > Settings > Danger zone > Remove from account. The agent uninstalls itself and the tunnel connector, and a few seconds later MZPanel deletes the server’s Cloudflare Tunnel and the DNS records it created for it in your Cloudflare account. Your apps, data and Docker stay on the machine.
To keep the server but stop publishing it, use Server > Settings > Homelab & Cloudflare Tunnel > Remove tunnel instead.
MZPanel only deletes a DNS record while it is still the exact record it created: a CNAME on that hostname pointing at this tunnel. A record you changed or replaced since is left alone, and nothing outside the hostname’s own zone is touched.
Automate it
Section titled “Automate it”| Tool (MCP) | REST | What |
|---|---|---|
servers_list | GET /v1/servers | homelab: true on homelab boxes |
servers_update | PATCH /v1/servers/{id} | {name, homelab} switches the flag |
servers_tunnel_get | GET /v1/servers/{id}/tunnel | tunnel state and routes |
servers_tunnel_create | POST /v1/servers/{id}/tunnel | create the tunnel, install the connector (async) |
servers_tunnel_route_add | POST /v1/servers/{id}/tunnel/routes | route a hostname |
servers_tunnel_route_delete | DELETE /v1/servers/{id}/tunnel/routes/{hostname} | remove a hostname |
servers_tunnel_delete | DELETE /v1/servers/{id}/tunnel | remove the tunnel |
An AI agent can walk a user through the whole setup with the homelab box playbook.